/* ============ 基礎 ============ */
:root {
  --brand: #ff2e4d;
  --brand-2: #ff7a3d;
  --ink: #17171c;
  --ink-2: #45454f;
  --muted: #9a9aa6;
  --line: #ececf1;
  --bg: #f6f7f9;
  --radius: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #08080c;
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
img { display: block; }
h1, h2, h3, h4, p { margin: 0; }

.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1100px 620px at 50% -10%, rgba(255, 46, 77, .22), transparent 62%),
    radial-gradient(900px 700px at 92% 112%, rgba(120, 60, 255, .18), transparent 60%),
    #08080c;
}

.phone {
  position: relative;
  width: 420px;
  height: min(880px, calc(100dvh - 48px));
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .09);
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

@media (max-width: 560px) {
  .stage { padding: 0; }
  .phone { width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; }
}

/* ============ 屏幕 ============ */
.screen { position: absolute; inset: 0; display: none; background: #000; }
.screen.is-active { display: block; }
.screen-light { background: var(--bg); }

.light-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
}
.light-scroll::-webkit-scrollbar { display: none; }

/* ============ 首頁資訊流 ============ */
.feed-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 10px;
  pointer-events: none;
}
.feed-tabs { display: flex; align-items: center; gap: 20px; pointer-events: auto; }
.feed-tab {
  position: relative;
  border: 0;
  background: none;
  padding: 2px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, .58);
  transition: color .2s;
}
.feed-tab.is-on { color: #fff; font-size: 17px; }
.feed-tab.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 3px;
  margin-left: -8px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff3b5c, #ff8a3d);
}
.top-icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.top-icon svg { width: 19px; height: 19px; }
.top-icon:active { transform: scale(.93); }

/* 在線人數徽章：紅點呼吸 + 金色數字，黑金風格半透明膠囊 */
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 200, 120, .22);
  border-radius: 999px;
  background: rgba(10, 8, 6, .45);
  backdrop-filter: blur(10px);
  font-size: 11px;
  line-height: 1;
  color: rgba(255, 235, 200, .72);
  pointer-events: auto;
  white-space: nowrap;
}
.online-badge .online-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, .9);
  animation: onlineDotPulse 1.6s ease-in-out infinite;
}
.online-badge b {
  font-size: 12px;
  font-weight: 700;
  color: #ffd591;
  font-variant-numeric: tabular-nums;
}
@keyframes onlineDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

.feed-scroller {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.feed-scroller::-webkit-scrollbar { display: none; }

.feed-item {
  position: relative;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000 center/cover no-repeat;
  color: #fff;
}
.feed-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.feed-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, .68) 80%, rgba(0, 0, 0, .94) 100%);
}
.drama-watermark,
.sv-watermark {
  --watermark-gap: 16px;
  position: absolute;
  top: var(--watermark-gap);
  left: var(--watermark-gap);
  z-index: 2;
  display: block;
  height: auto;
  transform: translate(0, 0);
  will-change: transform;
  pointer-events: none;
  user-select: none;
}
.drama-watermark {
  width: clamp(104px, 20%, 150px);
}
.dd-player > .drama-watermark {
  width: clamp(112px, 15%, 170px);
}
.sv-watermark {
  width: clamp(88px, 26%, 130px);
}

/* 聲音提示 */
.sound-pill {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  left: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 30px;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  transform: translateX(-50%);
  transition: opacity .25s, transform .25s;
}
.sound-pill svg { width: 15px; height: 15px; }
.sound-pill.is-hidden { opacity: 0; transform: translate(-50%, -8px); pointer-events: none; }

/* 播放狀態 */
.play-flash {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s;
}
.play-flash svg {
  width: 72px; height: 72px;
  color: rgba(255, 255, 255, .88);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
}
.play-flash.show { opacity: 1; }

/* 右側操作欄 */
.rail {
  position: absolute;
  right: 10px;
  bottom: 146px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.rail-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
  transition: transform .15s, background .2s;
}
.rail-ico svg { width: 23px; height: 23px; }
.rail-btn:active .rail-ico { transform: scale(.9); }
.rail-btn.on { color: #ff5470; }
.rail-btn.on .rail-ico {
  background: rgba(255, 46, 77, .2);
  border-color: rgba(255, 100, 128, .55);
  color: #ff5470;
}
.rail-btn.on .rail-ico svg { fill: currentColor; }
.rail-btn.avatar-btn .rail-ico {
  width: 42px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .7);
  overflow: hidden;
}
.rail-btn.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* 底部資訊 */
.feed-meta {
  position: absolute;
  left: 0; right: 0; bottom: 80px;
  z-index: 3;
  padding: 0 82px 10px 16px;
}
.feed-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed-title { font-size: 18px; font-weight: 700; letter-spacing: .2px; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.ep-chip {
  padding: 2px 8px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff2e4d, #ff6b3d);
  font-size: 11px;
  font-weight: 700;
}
.feed-desc {
  display: -webkit-box;
  max-width: 92%;
  margin-top: 8px;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.feed-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.feed-tags span {
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .14);
  font-size: 11px;
}
.feed-more { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .68); }
.feed-more b { color: #ffc3ce; font-weight: 600; }
.feed-more .dot { opacity: .5; }
.feed-more button {
  border: 0;
  background: none;
  padding: 0;
  color: #ffb0be;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- 廣告位 ---------- */
.ad-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .45);
  color: rgba(255, 255, 255, .95);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  backdrop-filter: blur(4px);
  vertical-align: middle;
}

/* 資訊流廣告卡片 */
.feed-ad {
  position: relative;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  color: #fff;
}
.ad-video, .ad-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.feed-ad .ad-chip {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 60px);
  left: 16px;
  z-index: 6;
}
.ad-close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  right: 14px;
  z-index: 6;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(8px);
  color: #fff;
}
.ad-close svg { width: 14px; height: 14px; }
.ad-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 84px;
  z-index: 3;
}
.ad-brand {
  display: block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .78);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.ad-title {
  margin-top: 6px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
.ad-desc {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .85);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 14px;
  padding: 10px 22px;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(90deg, #ff2e4d, #ff6b3d);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 46, 77, .42);
}
.ad-cta svg { width: 14px; height: 14px; }
.ad-cta:active { transform: scale(.96); }

/* 劇場頁橫幅廣告 / 我的頁廣告卡片 */
.ad-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 2px;
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(249, 236, 192, .05);
  cursor: pointer;
  text-align: left;
}
.ad-banner > img {
  width: 106px;
  height: 68px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}
.ad-banner .ad-chip,
.mine-ad .ad-chip,
.side-ad .ad-chip {
  background: rgba(201, 169, 106, .10);
  border: 1px solid rgba(201, 169, 106, .22);
  color: var(--ink-2);
  letter-spacing: 1px;
}
.ad-banner-info { flex: 1; min-width: 0; }
.ad-banner-info h3 {
  margin-top: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-banner-info h4 {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-banner-info p {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 7px 13px;
  border-radius: 18px;
  background: linear-gradient(90deg, #ff2e4d, #ff6b3d);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.ad-banner-cta svg { width: 12px; height: 12px; }
.mine-ad {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 16px 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(249, 236, 192, .05);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease;
}
.mine-ad:hover { transform: translateY(-2px); border-color: rgba(201, 169, 106, .34); }
.mine-ad > img {
  width: 96px;
  height: 64px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}
.mine-ad-cta {
  flex: none;
  padding: 7px 13px;
  border-radius: 18px;
  background: rgba(201, 169, 106, .10);
  border: 1px solid rgba(201, 169, 106, .22);
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 700;
}

/* 桌面端側欄廣告 */
.side-ad { cursor: pointer; }
.side-ad .side-title { display: flex; align-items: center; gap: 8px; }
.side-ad-img {
  width: 100%;
  height: 118px;
  border-radius: 12px;
  object-fit: cover;
}
.side-ad h4 { margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.side-ad-desc { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.side-ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 18px;
  background: rgba(201, 169, 106, .10);
  border: 1px solid rgba(201, 169, 106, .22);
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 700;
}
.side-ad-cta svg { width: 12px; height: 12px; }

/* 桌面端公告欄下方 · 活動廣告（App 圖標跑馬燈：無縫橫向滾動） */
.activity-ad {
  overflow: hidden;
  margin: 14px 0 0;
  padding: 12px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(249, 236, 192, .05);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
@keyframes aaTrackScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.aa-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 0 10px;
  will-change: transform;
  animation: aaTrackScroll 40s linear infinite;
}
/* 懸停暫停滾動，方便點擊 */
.activity-ad:hover .aa-track {
  animation-play-state: paused;
}
/* 廣告數少於 4 條時不做滾動，居中展示 */
.aa-track-static {
  width: 100%;
  justify-content: center;
  animation: none;
}
.aa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border: 0;
  background: none;
  cursor: pointer;
  flex: none;
}
.aa-icon-wrap {
  position: relative;
  line-height: 0;
}
.aa-icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  object-fit: cover;
  border: 1px solid rgba(249, 236, 192, .18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
  transition: transform .18s ease;
}
.aa-item:hover .aa-icon { transform: translateY(-3px) scale(1.04); }
.aa-item:active .aa-icon { transform: scale(.95); }
.aa-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  padding: 1px 5px;
  border: 1px solid rgba(249, 236, 192, .28);
  border-radius: 6px;
  background: rgba(0, 0, 0, .62);
  color: rgba(255, 255, 255, .92);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.4;
}
.aa-name {
  max-width: 86px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 進度條 */
.seek {
  position: absolute;
  left: 0; right: 0; bottom: 62px;
  z-index: 7;
  height: 16px;
  cursor: pointer;
}
.seek::before {
  content: "";
  position: absolute;
  top: 7px; left: 0; right: 0;
  height: 2px;
  background: rgba(255, 255, 255, .24);
}
.seek-fill {
  position: absolute;
  top: 7px; left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff3b5c, #ff8a3d);
}
.seek-fill::after {
  content: "";
  position: absolute;
  top: -2px; right: -3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 90, 120, .9);
}

/* ============ 底部導航 ============ */
.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(10, 10, 14, .74);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, .07);
  transition: transform .3s ease;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .55);
  font-size: 10px;
  transition: color .2s;
}
.tab svg { width: 23px; height: 23px; }
.tab.is-on { color: #ff4d6d; }

.app.light .tabbar {
  background: rgba(255, 255, 255, .93);
  border-top: 1px solid var(--line);
}
.app.light .tab { color: #a2a2ad; }
.app.light .tab.is-on { color: var(--brand); }
.app.page-open .tabbar { transform: translateY(130%); }

/* ============ 頁面通用（劇場 / 我的） ============ */
.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 18px 6px;
}
.page-top h1 { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.top-icon.dark {
  border-color: #e9e9ef;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(20, 20, 30, .06);
}

/* 繼續觀看 */
.continue {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 4px;
  padding: 12px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(120deg, #2a1220, #3d1a2c 55%, #221019);
  color: #fff;
  box-shadow: 0 14px 30px rgba(60, 15, 35, .18);
  text-align: left;
}
.continue::after {
  content: "";
  position: absolute;
  right: -30px; top: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 78, 108, .38), transparent 68%);
}
.continue img {
  width: 62px; height: 82px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
}
.continue-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.continue-info em {
  font-style: normal;
  font-size: 11px;
  color: #ffb0be;
  letter-spacing: 1px;
}
.continue-info h3 {
  margin: 4px 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.continue-info p { font-size: 12px; color: rgba(255, 255, 255, .6); }
.continue-play {
  position: relative;
  z-index: 1;
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2e4d, #ff7a3d);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 46, 77, .38);
}
.continue-play svg { width: 17px; height: 17px; margin-left: 2px; }

/* 分類 chips */
.chips-row {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 7px 15px;
  border: 1px solid #ececf1;
  border-radius: 20px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  transition: all .18s;
}
.chip.is-on {
  border-color: transparent;
  background: linear-gradient(135deg, #ff2e4d, #ff6b3d);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(255, 46, 77, .28);
}
/* 手機端分類芯片自動換行，避免右側被截斷 */
@media (max-width: 560px) {
  .chips-row {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 12px 16px 2px;
  }
  .chips-row .chip {
    padding: 6px 12px;
    font-size: 12.5px;
  }
}

/* 移動端熱門標籤橫欄 */
.tags-bar-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 4px;
}
.tags-bar-title {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #241b08;
  letter-spacing: .3px;
}
.tags-bar-title svg { width: 14px; height: 14px; }
.tags-bar-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  flex: 1;
}
.tags-bar-scroll::-webkit-scrollbar { display: none; }
.tag-chip {
  flex: none;
  padding: 7px 15px;
  border: 1px solid rgba(201, 169, 106, .2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
  transition: all .15s;
  white-space: nowrap;
}
.tag-chip.is-on {
  background: var(--gold-grad);
  border-color: transparent;
  color: #241b08;
  font-weight: 700;
}
/* 手機端熱門標籤換行，避免右側被截斷 */
@media (max-width: 560px) {
  .tags-bar-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }
}
.tag-filter-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 16px 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(201, 169, 106, .12), rgba(201, 169, 106, .04));
  font-size: 12px;
  color: #55555f;
}
.tag-filter-tip b { color: #8a6e34; font-weight: 700; }
.tag-filter-tip button {
  margin-left: auto;
  padding: 2px 8px;
  border: 0;
  border-radius: 10px;
  background: rgba(201, 169, 106, .18);
  color: #8a6e34;
  font-size: 11px;
  font-weight: 600;
}

/* 板塊 */
.block { padding: 6px 16px 4px; }
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 10px 0 12px;
}
.block-head h2 { font-size: 17px; font-weight: 800; letter-spacing: .3px; }
.block-head span { font-size: 11.5px; color: var(--muted); }

/* 熱播榜 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 0 6px;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  box-shadow: 0 6px 18px rgba(24, 24, 40, .05);
}
.rank-no {
  width: 22px;
  flex: none;
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  color: #c9c9d4;
  text-align: center;
}
.rank-row:nth-child(1) .rank-no { color: #ff3b5c; }
.rank-row:nth-child(2) .rank-no { color: #ff8a3d; }
.rank-row:nth-child(3) .rank-no { color: #ffb43d; }
.rank-row img {
  width: 50px; height: 66px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}
.rank-info { flex: 1; min-width: 0; }
.rank-info h3 {
  font-size: 14.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-info p { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.rank-info .sec { color: #ff7a3d; font-weight: 600; margin-right: 6px; }
.rank-go {
  flex: none;
  padding: 6px 12px;
  border-radius: 16px;
  background: #fff0f3;
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
}

/* 劇集卡片網格 */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}
.drama-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  border: 0;
  background: var(--card, #fff);
  padding: 8px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(24, 24, 40, .06);
  transition: transform .25s, box-shadow .25s;
}
.drama-card .poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  background: #e9e9ef;
}
.drama-card .poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 豎版海報（9:16）放進 3:4 卡片時對齊頂部，避免裁掉人物頭部 */
  object-position: center top;
  background: #e9e9ef;
}
.drama-card .poster img:not([src]),
.drama-card .poster img[src=""] {
  background: linear-gradient(135deg, #e9e9ef, #d0d0d8);
}
/* 圖片載入失敗：改用品牌 logo 兜底展示 */
img[data-fallback="1"] {
  object-fit: contain !important;
  background: radial-gradient(circle at 50% 42%, #211a10 0%, #0b0b0d 75%) !important;
}
/* 海報容器內讓兜底 logo 完整鋪滿（父級高度由 aspect-ratio 決定） */
.poster img[data-fallback="1"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.drama-card .badge {
  position: absolute;
  top: 6px; left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff2e4d, #ff6b3d);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.drama-card .poster-score {
  position: absolute;
  top: 8px; right: 8px;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(8, 8, 12, .68);
  color: #f4d78a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px;
  backdrop-filter: blur(4px);
}
.drama-card .poster-score em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  opacity: .8;
}
.drama-card .poster-ep {
  position: absolute;
  right: 8px; bottom: 8px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(8, 8, 12, .72);
  color: #ece7db;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
}
.drama-card .drama-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 4px 2px;
}
.drama-card h3 {
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drama-card .drama-year {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.drama-card .drama-score {
  margin-top: 4px;
}
.drama-card .score-num {
  font-size: 18px;
  font-weight: 900;
  color: #ff8a3d;
}
.drama-card .drama-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.drama-card .drama-tags span {
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 138, 61, .1);
  color: #ff8a3d;
  font-size: 10px;
}
.drama-card .drama-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.drama-card .drama-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.drama-card .ep-info { color: #ff8a3d; font-weight: 600; }

/* 空狀態 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 20px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}
.empty .empty-ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #f0f0f5;
  color: #b9b9c6;
}
.empty .empty-ico svg { width: 26px; height: 26px; }

/* ============ 我的 ============ */
.mine-head {
  position: relative;
  padding: calc(env(safe-area-inset-top, 0px) + 30px) 18px 20px;
  color: var(--ink);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(201, 169, 106, .22), transparent 55%),
    radial-gradient(80% 70% at -10% 115%, rgba(201, 169, 106, .10), transparent 60%),
    linear-gradient(150deg, #17130c 0%, #100e0a 55%, #0c0b09 100%);
  border-bottom: 1px solid rgba(201, 169, 106, .16);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.mine-head::before {
  content: "";
  position: absolute;
  top: -70px; right: -50px;
  width: 210px; height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 217, 174, .26), transparent 70%);
}
.mine-user { position: relative; display: flex; align-items: center; gap: 14px; }
.mine-user img {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(236, 217, 174, .75);
  box-shadow: 0 0 0 3px rgba(201, 169, 106, .16), 0 8px 20px rgba(0, 0, 0, .45);
  object-fit: cover;
}
/* 未设置自定义头像时展示昵称首字 */
.avatar-initial {
  display: flex;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #000;
  color: #d4af37;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}
.mine-avatar .avatar-initial {
  width: 58px; height: 58px;
  font-size: 22px;
  border: 2px solid rgba(236, 217, 174, .75);
  box-shadow: 0 0 0 3px rgba(201, 169, 106, .16), 0 8px 20px rgba(0, 0, 0, .45);
}
.mine-user h2 { font-size: 19px; font-weight: 800; letter-spacing: .5px; color: #f3ead8; }
.mine-user p { margin-top: 5px; font-size: 11.5px; letter-spacing: .3px; color: rgba(236, 231, 219, .55); }

/* 頭像快捷菜單 */
.mine-avatar-wrap { position: relative; flex: none; }
.mine-avatar {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  line-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mine-avatar img { transition: transform .18s ease, box-shadow .18s ease; }
.mine-avatar:active img { transform: scale(.95); }
.mine-avatar:focus-visible { outline: 2px solid rgba(236, 217, 174, .8); outline-offset: 3px; }
.mine-avatar:hover img { box-shadow: 0 0 0 4px rgba(201, 169, 106, .24), 0 8px 20px rgba(0, 0, 0, .45); }
.mine-account-menu {
  position: absolute;
  top: 2px;
  left: calc(100% + 12px);
  min-width: 210px;
  padding: 6px;
  border: 1px solid rgba(201, 169, 106, .28);
  border-radius: 14px;
  background: rgba(24, 20, 16, .96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px) scale(.97);
  transform-origin: top left;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.mine-avatar-wrap.is-open .mine-account-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}
.mine-account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: rgba(243, 234, 216, .88);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  text-align: left;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.mine-account-item:hover { background: rgba(201, 169, 106, .14); color: #f3ead8; }
.mine-account-item.is-danger { color: rgba(255, 138, 144, .92); }
.mine-account-item.is-danger:hover { background: rgba(255, 77, 79, .16); color: #ff9ea2; }
.mine-account-item .ma-ico { display: inline-flex; flex: none; width: 16px; height: 16px; color: rgba(236, 217, 174, .82); }
.mine-account-item .ma-ico svg { width: 16px; height: 16px; }
.mine-account-head {
  padding: 8px 10px 9px;
  border-bottom: 1px solid rgba(201, 169, 106, .16);
}
.mine-account-name {
  font-size: 14px;
  font-weight: 700;
  color: #f3ead8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mine-account-email {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(236, 231, 219, .48);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mine-account-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.mine-account-tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(201, 169, 106, .12);
  color: rgba(236, 217, 174, .78);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .4px;
}
.mine-account-tag.is-vip { background: rgba(255, 184, 77, .16); color: #ffc46b; }
.mine-account-tag.is-creator { background: rgba(201, 169, 106, .2); color: #eed9a4; }
.mine-account-list { padding: 5px 0; }
.mine-account-foot { padding: 5px 0 1px; border-top: 1px solid rgba(201, 169, 106, .16); }
.mine-head.is-menu-open { overflow: visible; }

.mine-stats {
  position: relative;
  display: flex;
  margin-top: 22px;
  padding: 14px 0;
  border: 1px solid rgba(201, 169, 106, .22);
  border-radius: 16px;
  background: rgba(201, 169, 106, .06);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(249, 236, 192, .06);
}
.mine-stats > * { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mine-stats > * + * { border-left: 1px solid rgba(201, 169, 106, .14); }
.mine-stat {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: opacity .15s;
}
.mine-stat b { transition: color .15s; }
.mine-stat:hover b { color: #f4e5bf; }
.mine-stat:active { opacity: .7; }
.mine-stat-wallet span { display: inline-flex; align-items: center; gap: 4px; }
.mine-stats .mine-charge-tag {
  padding: 1px 5px;
  border: 1px solid rgba(201, 169, 106, .42);
  border-radius: 999px;
  background: rgba(201, 169, 106, .16);
  color: #f0d9a4;
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.35;
  letter-spacing: .5px;
  transition: background .15s, color .15s;
}
.mine-stat-wallet:hover .mine-charge-tag { background: rgba(201, 169, 106, .3); color: #fff3d6; }
.mine-stats .mine-stat-approx {
  font-size: 9.5px;
  font-style: normal;
  color: rgba(236, 231, 219, .42);
  letter-spacing: .2px;
  white-space: nowrap;
}
.mine-stats b { font-size: 19px; font-weight: 800; color: var(--brand-2); }
.mine-stats span { font-size: 11px; letter-spacing: 1.5px; color: var(--muted); }

.mine-sec { padding: 22px 16px 0; }
.mine-sec .sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mine-sec .sec-head h2 { position: relative; padding-left: 12px; font-size: 16.5px; font-weight: 800; }
.mine-sec .sec-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: var(--gold-grad);
  box-shadow: 0 0 6px rgba(201, 169, 106, .4);
}
.mine-sec .sec-head span { font-size: 11.5px; color: var(--muted); }
.mine-sec .sec-head .sec-count {
  padding: 3px 9px;
  border: 1px solid rgba(201, 169, 106, .22);
  border-radius: 999px;
  background: rgba(201, 169, 106, .1);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--brand-2);
  white-space: nowrap;
}

/* 我的劇單：分段 Tab */
.mine-lib { padding-top: 20px; }
.mine-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(201, 169, 106, .18);
  border-radius: 14px;
  background: rgba(201, 169, 106, .05);
}
.mine-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.mine-tab:hover { color: var(--ink-2); }
.mine-tab.is-active {
  background: var(--gold-grad);
  color: #241d0e;
  box-shadow: 0 6px 16px rgba(156, 124, 70, .26);
}
.mine-tab-count {
  min-width: 17px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(201, 169, 106, .14);
  color: var(--brand-2);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.mine-tab.is-active .mine-tab-count {
  background: rgba(36, 29, 14, .16);
  color: #241d0e;
}
.mine-tab-panel { padding-top: 14px; }

/* 我的：消費記錄 */
.mine-spend { padding-bottom: 6px; }
.mine-spend-list {
  border: 1px solid rgba(201, 169, 106, .18);
  border-radius: 14px;
  background: rgba(201, 169, 106, .04);
  overflow: hidden;
}
.mine-spend-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
}
.mine-spend-row + .mine-spend-row { border-top: 1px solid rgba(201, 169, 106, .12); }
.msr-ico {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(201, 169, 106, .12);
  color: var(--brand-2);
}
.msr-ico svg { width: 15px; height: 15px; }
.msr-body { flex: 1; min-width: 0; }
.msr-body h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msr-body p { margin-top: 3px; font-size: 11px; color: var(--muted); }
.msr-amount { flex: none; font-size: 13.5px; font-weight: 800; color: #ff6b81; letter-spacing: .2px; }
.mine-spend-tip { padding: 16px 13px; font-size: 12px; color: var(--muted); text-align: center; }

/* 空狀態：緊湊虛線引導卡 */
.mine-empty-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 1px dashed rgba(201, 169, 106, .3);
  border-radius: 14px;
  background: rgba(201, 169, 106, .04);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .3px;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.mine-empty-cta > svg { width: 17px; height: 17px; flex: none; color: var(--brand); }
.mine-empty-cta .mec-arrow { margin-left: auto; display: inline-flex; color: rgba(201, 169, 106, .5); }
.mine-empty-cta .mec-arrow svg { width: 15px; height: 15px; }
.mine-empty-cta:hover {
  border-color: rgba(201, 169, 106, .55);
  background: rgba(201, 169, 106, .08);
  color: var(--ink-2);
}
/* 觀看歷史標題右側：計數 + 清空圖標 */
.sec-head-right { display: flex; align-items: center; gap: 10px; }
.sec-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transition: color .15s, border-color .15s, background .15s, transform .1s;
}
.sec-clear svg { width: 14px; height: 14px; }
.sec-clear:hover { color: var(--brand); border-color: rgba(201, 169, 106, .45); background: rgba(201, 169, 106, .1); }
.sec-clear:active { transform: scale(.92); }

.h-scroll {
  display: flex;
  gap: 12px;
  margin: 0 -16px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-item { position: relative; flex: none; width: 104px; }
.hi-main {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.h-item .poster {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  background: #e9e9ef;
  border: 1px solid rgba(201, 169, 106, .16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.h-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.h-item:hover .poster img { transform: scale(1.06); }
.h-item .h-ep {
  position: absolute;
  left: 7px; bottom: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(8, 7, 6, .62);
  backdrop-filter: blur(4px);
  color: rgba(243, 234, 216, .92);
  font-size: 10px;
  line-height: 1.5;
}
.h-item .h-fav {
  position: absolute;
  top: 6px; left: 6px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(8, 7, 6, .6);
  backdrop-filter: blur(4px);
  color: var(--brand-2);
}
.h-item .h-fav svg { width: 12px; height: 12px; }
.h-item .h-del {
  position: absolute;
  top: 5px; right: 5px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 7, 6, .66);
  backdrop-filter: blur(4px);
  color: rgba(255, 122, 122, .95);
  cursor: pointer;
  opacity: .92;
  transition: background .18s, color .18s, transform .15s;
}
.h-item .h-del:hover { background: rgba(255, 77, 79, .9); color: #fff; transform: scale(1.06); }
.h-item .h-del:active { transform: scale(.92); }
.h-item .h-del svg { width: 13px; height: 13px; }
.h-item .h-del:disabled { opacity: .5; pointer-events: none; }
.h-item h4 {
  margin-top: 8px;
  min-height: 34px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(249, 236, 192, .05);
  transition: transform .18s ease, border-color .18s ease;
}
.history-row:hover { transform: translateY(-2px); border-color: rgba(201, 169, 106, .34); }
.hr-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.history-row img {
  width: 56px; height: 76px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(201, 169, 106, .14);
}
.hr-del {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 77, 79, .1);
  color: #ff4d4f;
  cursor: pointer;
  transition: background .18s, transform .15s;
}
.hr-del:hover { background: rgba(255, 77, 79, .22); transform: scale(1.06); }
.hr-del:active { transform: scale(.92); }
.hr-del svg { width: 15px; height: 15px; }
.grain-fx { position: fixed; z-index: 9999; pointer-events: none; }
.history-info { flex: 1; min-width: 0; }
.history-info h4 {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-info p { margin-top: 5px; font-size: 11px; color: var(--muted); }
.history-info .hr-meta { display: flex; align-items: center; gap: 6px; }
.hr-meta .hr-ep { color: var(--brand-2); font-weight: 600; }
.hr-meta i { font-style: normal; opacity: .75; }
.hr-meta i::before { content: "·"; margin-right: 6px; opacity: .6; }
.bar { margin-top: 8px; height: 4px; overflow: hidden; border-radius: 4px; background: #f0f0f5; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ff2e4d, #ff8a3d); }

.mine-menu {
  margin: 22px 16px 8px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(24, 24, 40, .05);
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 14px;
  color: var(--ink);
  transition: background .18s ease;
}
.menu-row { position: relative; }
.menu-row:hover { background: rgba(201, 169, 106, .05); }
.menu-row:active { background: rgba(201, 169, 106, .09); }
.menu-row + .menu-row::before {
  content: "";
  position: absolute;
  top: 0; left: 56px; right: 16px;
  height: 1px;
  background: rgba(201, 169, 106, .08);
}
.menu-ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: #fff0f3;
  color: var(--brand);
}
.menu-ico svg { width: 15px; height: 15px; }
.menu-row .chev { margin-left: auto; color: #c9c9d4; }
.menu-row .chev svg { width: 15px; height: 15px; }
.menu-version { margin-left: auto; font-size: 12px; color: var(--muted); }

/* 開通會員行：金色高亮 */
.menu-row-vip {
  background: linear-gradient(90deg, rgba(201, 169, 106, .14), rgba(201, 169, 106, .03) 70%);
}
.menu-row-vip:hover { background: linear-gradient(90deg, rgba(201, 169, 106, .2), rgba(201, 169, 106, .07) 70%); }
.menu-row-vip .menu-ico { background: var(--gold-grad); color: #241d0e; border-color: transparent; }
.menu-vip-tag {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #241d0e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 3px 10px rgba(201, 169, 106, .25);
}
.menu-row-vip .chev { margin-left: 8px; }

/* ============ 詳情頁 ============ */
.page {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.32, .72, .3, 1);
}
.page.is-open { transform: none; }

#pageDetail { background: #fff; padding-bottom: 30px; }
.detail-hero { position: relative; height: 46vh; min-height: 300px; max-height: 420px; }
.detail-hero > img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, transparent 30%, rgba(255, 255, 255, 0) 62%, #fff 100%);
}
.detail-top {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 12px; right: 12px;
  display: flex;
  justify-content: space-between;
}
.round-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(0, 0, 0, .34);
  backdrop-filter: blur(10px);
  color: #fff;
}
.round-btn svg { width: 19px; height: 19px; }
.detail-card { position: relative; margin-top: -34px; padding: 0 18px; }
.detail-card h1 { font-size: 23px; font-weight: 800; line-height: 1.28; letter-spacing: .2px; }
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
}
.detail-meta .score { color: #ff7a3d; font-weight: 800; font-size: 13px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.detail-tags span {
  padding: 4px 10px;
  border-radius: 20px;
  background: #f6f6fa;
  color: #5b5b68;
  font-size: 11.5px;
}
.detail-desc { margin-top: 13px; font-size: 13px; line-height: 1.7; color: #55555f; }
.detail-cta { display: flex; gap: 10px; margin-top: 18px; }
.btn-main {
  flex: 1;
  padding: 13px 0;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff2e4d, #ff6b3d);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 12px 24px rgba(255, 46, 77, .28);
}
.btn-main:active { transform: scale(.985); }
.btn-follow {
  flex: none;
  padding: 13px 18px;
  border: 1px solid #ffd5dd;
  border-radius: 14px;
  background: #fff5f7;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}
.btn-follow.is-on { background: #fff0f3; border-color: #ffc1cd; }

.detail-sec { padding: 26px 18px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sec-head h2 { font-size: 17px; font-weight: 800; }
.sec-head span { font-size: 11.5px; color: var(--muted); }
.ep-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.ep-btn {
  padding: 10px 0;
  border: 1px solid #eeeef3;
  border-radius: 10px;
  background: #f8f8fb;
  color: #5b5b68;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  transition: all .15s;
}
.ep-btn.is-on {
  border-color: transparent;
  background: linear-gradient(135deg, #ff2e4d, #ff6b3d);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(255, 46, 77, .26);
}

.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: #f8f8fb;
  text-align: left;
}
.rec-item img { width: 46px; height: 60px; flex: none; border-radius: 9px; object-fit: cover; }
.rec-item .ri { flex: 1; min-width: 0; }
.rec-item h4 {
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rec-item p { margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.rec-item .ri .tags { display: flex; gap: 6px; margin-top: 7px; }
.rec-item .ri .tags span {
  padding: 2px 7px;
  border-radius: 6px;
  background: #fff;
  color: #8a8a99;
  font-size: 10px;
}

/* ============ 搜尋頁 ============ */
.page-search { display: flex; flex-direction: column; }
.search-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 12px;
  background: #fff;
  border-bottom: 1px solid #f3f3f7;
}
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  border-radius: 20px;
  background: #f4f4f8;
}
.search-box > svg { width: 17px; height: 17px; color: #9a9aa6; flex: none; }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--ink);
}
.search-box input::placeholder { color: #b0b0bb; }
.search-clear {
  width: 18px; height: 18px;
  border: 0;
  border-radius: 50%;
  background: #d9d9e2;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: none;
  flex: none;
}
.search-clear.show { display: block; }
.search-cancel { border: 0; background: none; font-size: 14px; color: #55555f; padding: 6px 2px; }
.search-body { flex: 1; overflow-y: auto; padding: 6px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }

.search-sec { padding-top: 18px; }
.search-sec > h3 { font-size: 14.5px; font-weight: 800; margin-bottom: 12px; }
.hot-words { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-words button {
  padding: 7px 14px;
  border: 0;
  border-radius: 18px;
  background: #f4f4f8;
  color: #55555f;
  font-size: 12.5px;
}
.hot-words button:nth-child(-n+3) { color: var(--brand); background: #fff0f3; }

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #f5f5f9;
  background: none;
  text-align: left;
}
.search-row img { width: 52px; height: 68px; flex: none; border-radius: 10px; object-fit: cover; }
.search-row .sr { flex: 1; min-width: 0; }
.search-row h4 {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-row p { margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.search-row .tags { display: flex; gap: 6px; margin-top: 6px; }
.search-row .tags span {
  padding: 2px 7px;
  border-radius: 6px;
  background: #f5f5f9;
  color: #8a8a99;
  font-size: 10px;
}
.play-mini {
  flex: none;
  padding: 6px 13px;
  border-radius: 15px;
  background: #fff0f3;
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
}

/* ============ 評論彈層 ============ */
.sheet-mask {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.sheet-mask.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  height: 68%;
  padding: 6px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: #fff;
  transform: translateY(102%);
  transition: transform .34s cubic-bezier(.32, .72, .3, 1);
}
.sheet.is-open { transform: translateY(0); }
.sheet-grip {
  width: 36px; height: 4px;
  margin: 2px auto 8px;
  border-radius: 4px;
  background: #e6e6ee;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; }
.sheet-head h3 { font-size: 15px; font-weight: 800; }
.sheet-head h3 span { margin-left: 4px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.sheet-close {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f4f4f8;
  color: #7c7c88;
}
.sheet-close svg { width: 15px; height: 15px; }
.sheet-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 8px;
  border-top: 1px solid #f4f4f8;
}
.comment {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f7f7fa;
}
.c-avatar {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb3c1, #ffd0a8);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.c-avatar.has-img { background-size: cover; background-position: center; }
.c-main { flex: 1; min-width: 0; }
.c-main h5 { font-size: 12px; font-weight: 600; color: #6d6d7a; }
.c-main p { margin-top: 5px; font-size: 13px; line-height: 1.55; color: #26262e; word-break: break-word; }
.c-foot { display: flex; align-items: center; gap: 14px; margin-top: 7px; font-size: 11px; color: #b0b0bb; }
.c-foot .c-like { display: inline-flex; align-items: center; gap: 3px; }
.c-foot svg { width: 13px; height: 13px; }
.c-empty {
  padding: 26px 0;
  color: #9a9aa6;
  font-size: 12.5px;
  text-align: center;
}
.c-mine {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #fff0f3;
  color: var(--brand);
  font-size: 9.5px;
}
.sheet-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid #f2f2f7;
}
.sheet-input input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 19px;
  background: #f4f4f8;
  outline: none;
  font-size: 13px;
  color: var(--ink);
}
.sheet-input button {
  flex: none;
  padding: 9px 16px;
  border: 0;
  border-radius: 19px;
  background: linear-gradient(135deg, #ff2e4d, #ff6b3d);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* 雙擊點讚的愛心動畫 */
.like-burst {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 9;
  pointer-events: none;
  color: #ff5470;
  transform: translate(-50%, -50%);
}
.like-burst svg {
  width: 92px;
  height: 92px;
  fill: currentColor;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .4));
}

/* ============ 提示 / 開屏 ============ */
.toast {
  position: absolute;
  left: 50%;
  bottom: 120px;
  z-index: 95;
  max-width: 76%;
  padding: 9px 16px;
  border-radius: 20px;
  background: rgba(20, 20, 26, .88);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12.5px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 登入 / 會員彈窗 */
.auth-mask {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(6, 6, 8, .62);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.auth-mask.show { opacity: 1; pointer-events: auto; }
.auth-modal {
  position: relative;
  width: min(330px, 100%);
  padding: 30px 26px 24px;
  border: 1px solid var(--line, rgba(201, 169, 106, .16));
  border-radius: 22px;
  background: linear-gradient(180deg, #1a1815, #121110);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .55);
  text-align: center;
  transform: translateY(14px) scale(.96);
  transition: transform .28s cubic-bezier(.22, 1.2, .36, 1);
}
.auth-mask.show .auth-modal { transform: none; }
.auth-modal h3 { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.auth-modal p { margin-top: 10px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2, #b9ae97); }
.auth-confirm { width: 100%; margin-top: 20px; }
.auth-later {
  margin-top: 12px;
  padding: 8px;
  background: none;
  border: none;
  font-size: 12.5px;
  color: var(--muted, #7d7462);
}

/* 真實登入表單 */
.auth-form { margin-top: 16px; }
.auth-input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 169, 106, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink-1, #f3ead8);
  font-size: 13px;
  outline: none;
}
.auth-input:focus { border-color: rgba(201, 169, 106, .55); }
.auth-input::placeholder { color: #7d7462; }
.auth-modal .auth-error {
  min-height: 16px;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #ff6b6b;
}
.auth-modal .auth-support {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  text-align: center;
  color: var(--gold, #d3b678);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-modal .auth-support[hidden] { display: none; }
.fb-textarea {
  min-height: 96px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}
/* 會員支付彈窗（參考設計） */
.auth-modal.is-pay {
  width: min(400px, 100%);
  padding: 22px 20px 24px;
  border-color: rgba(255, 255, 255, .07);
  border-radius: 20px;
  background: #15181f;
  text-align: left;
}
.auth-grabber {
  display: none;
  position: absolute;
  top: 9px;
  left: 50%;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(217, 184, 118, .5);
  transform: translateX(-50%);
}
.auth-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #9aa0ab;
  cursor: pointer;
}
.auth-close svg { width: 16px; height: 16px; }
.auth-modal.is-pay .auth-grabber { display: block; }
.auth-modal.is-pay .auth-close { display: grid; place-items: center; }
.auth-modal.is-pay h3 { display: inline-block; font-size: 19px; color: #fff; letter-spacing: .3px; }
.auth-modal.is-pay > p { display: inline-block; margin: 0 0 0 8px; font-size: 12px; color: #8b8f9a; }

.pay-panel { display: none; }
.pay-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  background: #1d2028;
}
.pay-plan-name { font-size: 15px; font-weight: 800; color: #fff; }
.pay-plan-desc { margin-top: 6px; font-size: 12px; line-height: 1.5; color: #8b8f9a; }
.pay-plan-price {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(201, 169, 106, .16);
  color: #e3c88c;
  font-size: 16px;
  font-weight: 800;
}
.pay-method-title { margin-top: 18px; font-size: 13px; font-weight: 700; color: #e8e2d4; }
.pay-methods { display: grid; gap: 10px; margin-top: 10px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: #1d2028;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.pay-method.is-on { border-color: #d9b876; background: rgba(217, 184, 118, .07); }
.pay-method-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #26a17b;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.pay-notice {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  font-size: 11.5px;
  line-height: 1.7;
  color: #a7abb5;
}
.pay-balance { margin-top: 14px; font-size: 12px; color: #8b8f9a; }
.pay-balance b { color: #e3c88c; font-weight: 700; }
.auth-modal .pay-error {
  min-height: 16px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #ff6b6b;
}
.auth-modal.is-pay .auth-confirm {
  margin-top: 18px;
  padding: 14px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #241b08;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 12px 26px rgba(201, 169, 106, .22);
}
.auth-switch {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px;
  background: none;
  border: none;
  font-size: 12.5px;
  color: var(--gold, #d3b678);
}

/* 選集鎖定態 */
.ep-btn.is-lock, .dd-ep.is-lock { opacity: .42; }
.ep-btn.is-lock svg, .dd-ep.is-lock svg { width: 10px; height: 10px; margin-left: 3px; vertical-align: -1px; }

/* 我的 · 登入態 */
.mine-login {
  margin-left: auto;
  padding: 8px 22px;
  border: none;
  border-radius: 999px;
  background: var(--gold-grad, linear-gradient(135deg, #f4e5bf, #d3b678, #9c7c46));
  color: #241b08;
  font-size: 13px;
  font-weight: 800;
}
.vip-badge {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-grad, linear-gradient(135deg, #f4e5bf, #d3b678, #9c7c46));
  color: #241b08;
  font-size: 10px;
  font-weight: 800;
  vertical-align: 2px;
}

.creator-badge {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  vertical-align: 2px;
}

/* 創作者申請狀態卡片 */
.creator-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff8f0;
}
.creator-card-ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
}
.creator-card-info { flex: 1; min-width: 0; }
.creator-card-info h4 { margin: 0; font-size: 14px; font-weight: 700; color: #1a1a1a; }
.creator-card-info p { margin: 3px 0 0; font-size: 12px; color: #888; line-height: 1.5; }
.creator-card-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5a3c, #ff2e4d);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.creator-approved { background: #f0f7ff; }
.creator-approved .creator-card-ico { background: #dbeafe; color: #2563eb; }
.creator-approved .creator-card-info h4 { color: #1e40af; }

.creator-pending { background: #fffbeb; }
.creator-pending .creator-card-ico { background: #fef3c7; color: #d97706; }
.creator-pending .creator-card-info h4 { color: #92400e; }

.creator-rejected { background: #fef2f2; }
.creator-rejected .creator-card-ico { background: #fee2e2; color: #dc2626; }
.creator-rejected .creator-card-info h4 { color: #991b1b; }

/* 菜單狀態標籤 */
.menu-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, .6);
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.menu-reject-tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 10px;
  font-weight: 600;
}

/* 發佈影片彈窗 */
.upload-field {
  display: block;
  margin-top: 10px;
}
.upload-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
}
.upload-field input[type="file"] {
  display: none;
}
.upload-field::after {
  content: '點擊選擇';
  display: inline-block;
  padding: 7px 14px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .2s;
}
.upload-field:hover::after { border-color: #ff5a3c; color: #ff5a3c; }
.upload-filename {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #999;
  word-break: break-all;
}
.pv-progress {
  margin-top: 12px;
}
.pv-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: #f0f0f0;
  overflow: hidden;
}
.pv-progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--pv, 0%);
  background: linear-gradient(90deg, #ff5a3c, #ff2e4d);
  transition: width .3s;
}
.pv-progress-text {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #888;
}

.splash {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(150deg, #ff2e4d 0%, #ff5a3c 55%, #ff8a3d 100%);
  color: #fff;
  transition: opacity .45s ease;
}
.splash.is-hidden { opacity: 0; pointer-events: none; }
.splash-logo {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 8px 26px rgba(120, 10, 30, .3);
}
.splash-logo span { font-size: 22px; font-weight: 700; opacity: .92; margin-left: 2px; letter-spacing: 4px; }
.splash p { font-size: 12.5px; letter-spacing: 3px; opacity: .82; }

/* ============ 桌面端佈局 ============ */
.dheader, .desktop-home { display: none; }

.dc-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(0, 0, 0, .18);
}
.dc-progress i {
  display: block;
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #ff2e4d, #ff8a3d);
}

/* ============ 輪播圖後台 ============ */
.page-admin { background: var(--bg); }
.admin-wrap {
  min-height: 100%;
  padding: 16px 16px calc(40px + env(safe-area-inset-bottom, 0px));
}
.admin-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: #333;
  font-size: 13px;
}
.admin-back svg { width: 16px; height: 16px; }
.admin-top h1 { font-size: 18px; }
.admin-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
}
.admin-intro h2 { margin-bottom: 6px; font-size: 16px; }
.admin-intro p { max-width: 620px; font-size: 12px; line-height: 1.7; color: #8a8a96; }
.admin-upload {
  flex: none;
  padding: 10px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff2e4d, #ff8a3d);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0;
  font-size: 12.5px;
  color: #777782;
}
.admin-bar b { color: var(--brand); }
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-tool {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-size: 12px;
  color: #55555f;
}
.admin-list { display: grid; gap: 10px; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}
.admin-row.is-off { opacity: .6; }
.admin-thumb {
  width: 96px;
  aspect-ratio: 16 / 9;
  flex: none;
  object-fit: cover;
  border-radius: 9px;
  background: #f0f0f5;
}
.admin-fields { flex: 1; min-width: 0; display: grid; gap: 6px; }
.admin-title {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.admin-sub { display: flex; align-items: center; gap: 8px; }
.admin-sub select {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}
.admin-state { flex: none; font-size: 11px; color: #9a9aa6; }
.admin-note { font-size: 11px; color: #b0b0ba; }
.admin-ops { display: grid; grid-template-columns: repeat(2, auto); gap: 6px; flex: none; }
.admin-op {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7fa;
  font-size: 12px;
  color: #55555f;
}
.admin-op.is-on { border-color: #ffd0d9; background: #fff0f3; color: var(--brand); }
.admin-op.danger { color: #e0475f; }
.admin-op:disabled { opacity: .35; }
.admin-empty {
  padding: 60px 20px;
  border-radius: 14px;
  background: #fff;
  color: #aaa;
  font-size: 13px;
  text-align: center;
}

@media (min-width: 820px) {
  html, body { overflow-y: auto; overflow-x: hidden; background: var(--bg); }
  .stage { display: block; min-height: 100dvh; padding: 0; background: var(--bg); }
  .phone {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    border-radius: 0;
    background: var(--bg);
    box-shadow: none;
  }
  .app {
    height: auto;
    min-height: 100dvh;
    padding-top: 64px;
    overflow: visible;
    background: var(--bg);
  }

  /* 頂部導航 */
  .dheader {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    height: 64px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
  }
  .dh-inner {
    display: flex;
    align-items: center;
    gap: 36px;
    max-width: none;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(24px, 3vw, 64px);
  }
  .dh-logo {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
  }
  .dh-logo img {
    display: block;
    width: auto;
    height: 58px;
    object-fit: contain;
  }
  .dh-nav { display: flex; gap: 4px; }
  .dh-nav button {
    padding: 10px 20px;
    border: 0;
    border-radius: 22px;
    background: none;
    color: #55555f;
    font-size: 15px;
    font-weight: 600;
    transition: background .18s, color .18s;
  }
  .dh-nav button:hover { background: #f4f4f8; }
  .dh-nav button.is-on { background: #fff0f3; color: var(--brand); }
  /* 桌面端白色導航欄上的在線徽章：淡金色變體 */
  .dheader .online-badge {
    background: rgba(180, 130, 40, .08);
    border-color: rgba(180, 130, 40, .26);
    color: #8a6a2f;
    backdrop-filter: none;
  }
  .dheader .online-badge b { color: #b8860b; }
  .dh-search {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 380px;
    height: 42px;
    margin-left: auto;
    padding: 0 16px;
    border: 1px solid #e9e9ef;
    border-radius: 22px;
    background: #f7f7fa;
    color: #9a9aa6;
    font-size: 14px;
    text-align: left;
    transition: border-color .18s, background .18s;
  }
  .dh-search svg { width: 17px; height: 17px; flex: none; }
  .dh-search:hover { border-color: #ffc1cd; background: #fff; }
  .dh-user {
    width: 38px; height: 38px;
    flex: none;
    padding: 0;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #f0f0f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  }
  .dh-user img { width: 100%; height: 100%; object-fit: cover; }
  .dh-user .avatar-initial { font-size: 15px; }
  .dh-user.is-login {
    width: auto;
    height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
  }

  /* 屏幕容器 */
  .screen {
    position: relative;
    inset: auto;
    display: none;
    min-height: calc(100dvh - 64px);
    background: var(--bg);
  }
  .screen.is-active { display: block; }
  #screen-feed { background: var(--bg); }
  .feed-top, .feed-scroller { display: none; }
  .desktop-home { display: block; }
  .light-scroll {
    height: auto;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 8px clamp(24px, 3vw, 64px) 80px;
    overflow: visible;
  }
  .tabbar { display: none; }

  /* 輪播圖後台 */
  .admin-wrap { max-width: 1240px; margin: 0 auto; padding: 26px 32px 80px; }
  .admin-intro { padding: 26px 28px; }
  .admin-thumb { width: 180px; }
  .admin-row { padding: 12px; }
  .admin-ops { display: flex; }

  /* 浮層頁面 */
  .page {
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    z-index: 40;
  }
  .splash { position: fixed; }
  .toast { position: fixed; bottom: 54px; }
  .auth-mask { position: fixed; }
  .sheet-mask { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; }
  .sheet {
    position: fixed;
    left: 50%;
    bottom: 32px;
    width: 560px;
    height: 640px;
    max-height: calc(100dvh - 120px);
    padding: 18px 20px 16px;
    border-radius: 20px;
    transform: translate(-50%, 130%);
  }
  .sheet.is-open { transform: translate(-50%, 0); }
  .sheet-grip { display: none; }

  /* 首頁 */
  .dhome { width: 100%; max-width: none; margin: 0 auto; padding: 28px clamp(24px, 3vw, 64px) 80px; }
  .dhome-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 34px;
    min-height: 500px;
    padding: 16px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(145deg, #2a1a12, #140c08);
    color: #fff;
    box-shadow:
      0 24px 60px rgba(0, 0, 0, .55),
      inset 0 0 0 1px rgba(201, 169, 106, .35),
      inset 0 0 0 4px rgba(0, 0, 0, .4);
  }
  .dhome-carousel {
    position: relative;
    /* 高度隨寬度等比放大，讓主卡片貼近 16:9，避免 cover 裁掉人物頭部 */
    height: clamp(520px, 38.5vw, 780px);
    max-width: 1800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    background: #1c1016;
    perspective: 1400px;
    perspective-origin: 50% 50%;
  }
  /* 兩側模糊虛化背景：映射當前居中劇集的海報大圖 */
  .dhome-carousel .carousel-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(16, 10, 12, .38), rgba(16, 10, 12, .62)), var(--hero-backdrop, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(30px) saturate(1.15) brightness(.72);
    transform: scale(1.4);
  }
  .dhome-carousel .hero-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72%;
    height: 100%;
    min-height: 0;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    visibility: hidden;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1), opacity .5s ease;
    transform-style: preserve-3d;
    will-change: transform, opacity;
  }
  .dhome-carousel .hero-slide.is-on {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    z-index: 3;
  }
  .dhome-carousel .hero-slide.pos-prev {
    transform: translate(calc(-50% - 42%), -50%) scale(0.72) rotateY(26deg);
    opacity: .5;
    visibility: visible;
    z-index: 2;
  }
  .dhome-carousel .hero-slide.pos-next {
    transform: translate(calc(-50% + 42%), -50%) scale(0.72) rotateY(-26deg);
    opacity: .5;
    visibility: visible;
    z-index: 2;
  }
  .dhome-carousel .hero-slide.pos-far {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 1;
  }
  .hero-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(12, 8, 10, .42);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    backdrop-filter: blur(8px);
    transition: background .18s, transform .18s;
  }
  .hero-nav:hover { background: rgba(12, 8, 10, .72); transform: scale(1.06); }
  .hero-nav.prev { left: 4px; }
  .hero-nav.next { right: 4px; }
  .hero-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 62%;
    transform: translateX(-50%);
  }
  .hero-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .38);
    transition: width .25s, background .25s;
  }
  .hero-dot.is-on { width: 20px; border-radius: 4px; background: #fff; }

  .dhome-hero-bg {
    position: absolute;
    inset: 16px;
    background-color: #1a1410;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 1;
    filter: none;
    transform: none;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  }
  /* 竖版图片（如短剧封面）完整展示，避免被 cover 裁切放大 */
  .dhome-carousel .hero-slide.is-portrait .dhome-hero-bg { background-size: contain; }
  .dhome-hero::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 7, 12, .1) 0%, rgba(18, 7, 12, .2) 40%, rgba(18, 7, 12, .55) 70%, rgba(18, 7, 12, .95) 100%);
    pointer-events: none;
  }
  .dhome-hero-poster { display: none; }
  .dhome-hero-info {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    align-self: flex-end;
    padding: 0 12px 4px;
  }
  .dhome-badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff2e4d, #ff7a3d);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  .dhome-hero-info h1 {
    margin: 14px 0 12px;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: .5px;
    line-height: 1.25;
  }
  .dhome-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: rgba(255, 255, 255, .72); }
  .dhome-meta .score { color: #ffb43d; font-weight: 800; }
  .dhome-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .dhome-tags span {
    padding: 4px 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    font-size: 12.5px;
    color: rgba(255, 255, 255, .9);
  }
  .dhome-desc {
    max-width: 720px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .7);
  }
  .dhome-actions { display: flex; gap: 12px; margin-top: 24px; }
  .dhome-actions .btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: none;
    padding: 13px 34px;
  }
  .dhome-actions .btn-main svg { width: 16px; height: 16px; }
  .dhome-actions .btn-follow { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; }

  .dhome-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    margin-top: 34px;
  }

  /* 熱門標籤橫欄 */
  .dhome-tags-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(201, 169, 106, .04);
    box-shadow: none;
  }
  .dhome-tags-title {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: none;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--gold-grad);
    color: #241b08;
    letter-spacing: .3px;
  }
  .dhome-tags-title svg { width: 14px; height: 14px; }
  .dhome-tags-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
  }
  .dhome-tags-scroll::-webkit-scrollbar { display: none; }
  .dhome-tag {
    flex: none;
    padding: 8px 18px;
    border: 1px solid rgba(201, 169, 106, .2);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all .15s;
    white-space: nowrap;
  }
  .dhome-tag:hover {
    border-color: var(--brand);
    color: var(--brand-2);
  }
  .dhome-tag.is-on {
    background: var(--gold-grad);
    border-color: transparent;
    color: #241b08;
    font-weight: 700;
  }

  /* 標籤篩選提示 */
  .dhome-tag-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(201, 169, 106, .12), rgba(201, 169, 106, .04));
    color: #55555f;
    font-size: 13px;
  }
  .dhome-tag-notice b { color: #8a6e34; font-weight: 700; }
  .dhome-tag-notice button {
    margin-left: auto;
    padding: 3px 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(201, 169, 106, .18);
    color: #8a6e34;
    font-size: 12px;
    font-weight: 600;
  }

  /* 滾動公告 */
  .dhome-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(201, 169, 106, .12), rgba(201, 169, 106, .04) 55%, rgba(201, 169, 106, .1));
    overflow: hidden;
  }
  .notice-badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--gold-grad);
    color: #241b08;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
  }
  .notice-badge svg { width: 13px; height: 13px; }
  .notice-scroll {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .notice-track {
    display: inline-flex;
    white-space: nowrap;
    animation: noticeScroll 26s linear infinite;
  }
  .dhome-notice:hover .notice-track { animation-play-state: paused; }
  .notice-item {
    padding-right: 64px;
    font-size: 14px;
    color: var(--ink-2);
  }
  @keyframes noticeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .dhome-section { margin-bottom: 36px; }
  .dhome-section:last-child { margin-bottom: 0; }
  .dhome-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .dhome-sec-head h2 { font-size: 23px; font-weight: 800; letter-spacing: .3px; }
  .dhome-sec-head span { font-size: 13px; color: var(--muted); }
  .sec-more {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(201, 169, 106, .08);
    color: var(--brand-2);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .15s;
  }
  .sec-more:hover { background: rgba(201, 169, 106, .16); }
  .sec-more:active { transform: scale(.96); }
  .sec-more svg { width: 13px; height: 13px; }
  .dhome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .dhome-grid .drama-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(24, 24, 40, .12);
  }
  .dhome-grid .drama-card h3 { font-size: 17px; }

  /* 「新劇上線」上方雙廣告位 */
  .home-ads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
  }
  .home-ad {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(249, 236, 192, .05);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s;
  }
  .home-ad:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 169, 106, .4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(249, 236, 192, .05);
  }
  .home-ad:active { transform: scale(.985); }
  .home-ad-img {
    width: 168px;
    aspect-ratio: 16 / 9;
    flex: none;
    border-radius: 12px;
    object-fit: cover;
    background: #181611;
  }
  .home-ad-info { flex: 1; min-width: 0; }
  .home-ad-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border: 1px solid rgba(201, 169, 106, .35);
    border-radius: 4px;
    background: rgba(201, 169, 106, .14);
    color: var(--brand-2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
  }
  .home-ad-info h3 {
    margin-top: 6px;
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-ad-info p {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .home-ad-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--gold-grad);
    color: #241b08;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
  }
  .home-ad-cta svg { width: 13px; height: 13px; }
  /* 頁面底部雙廣告位：與主列對齊（右側讓出側欄 340px + 間距 40px） */
  .home-ads-bottom { margin: 36px 380px 0 0; }

  /* 「即將上線」預告專區：同樣與主列對齊 */
  .coming-section { margin: 36px 380px 0 0; }
  .coming-card .badge { background: linear-gradient(135deg, #c9a96a, #8f6f2f); }
  .coming-date {
    position: absolute;
    right: 6px;
    bottom: 6px;
    left: 6px;
    padding: 3px 0;
    border-radius: 6px;
    background: rgba(8, 8, 12, .72);
    color: #f6e7c2;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    text-align: center;
  }
  .coming-want b { color: var(--brand-2); font-weight: 700; }
  .coming-reserve {
    margin-top: 10px;
    width: 100%;
    padding: 8px 0;
    border: 1px solid rgba(201, 169, 106, .45);
    border-radius: 10px;
    background: rgba(201, 169, 106, .12);
    color: var(--brand-2);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .15s;
  }
  .coming-reserve:hover { background: rgba(201, 169, 106, .22); }
  .coming-reserve:active { transform: scale(.98); }
  .coming-reserve.is-on {
    border-color: transparent;
    background: var(--gold-grad);
    color: #241b08;
  }

  /* 「原創大作」專區：同樣與主列對齊 */
  .originals-section { margin: 36px 380px 0 0; }
  .original-card .badge { background: linear-gradient(135deg, #b3121f, #e0b25a); }
  .original-mark {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(8, 8, 12, .62);
    color: #f6e7c2;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .5px;
  }

  .dhome-side { position: sticky; top: 88px; align-self: start; }
  .side-card {
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24, 24, 40, .06);
  }
  .side-card + .side-card { margin-top: 20px; }
  .side-title { margin-bottom: 12px; font-size: 17px; font-weight: 800; }
  .side-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 0;
    border: 0;
    background: none;
    text-align: left;
  }
  .side-rank + .side-rank { border-top: 1px solid #f5f5f9; }
  .side-rank .no {
    width: 20px;
    flex: none;
    color: #c9c9d4;
    font-size: 16px;
    font-weight: 900;
    font-style: italic;
    text-align: center;
  }
  .side-rank:nth-child(2) .no { color: #ff3b5c; }
  .side-rank:nth-child(3) .no { color: #ff8a3d; }
  .side-rank:nth-child(4) .no { color: #ffb43d; }
  .side-rank img { width: 46px; height: 62px; flex: none; border-radius: 8px; object-fit: cover; }
  .side-rank .sr-info { flex: 1; min-width: 0; }
  .side-rank h4 {
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .side-rank p { margin-top: 4px; font-size: 12px; color: var(--muted); }
  .side-rank .sr-progress {
    display: block;
    margin-top: 6px;
    height: 3px;
    border-radius: 3px;
    background: #f0f0f5;
    overflow: hidden;
  }
  .side-rank .sr-progress i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #ff2e4d, #ff7a3d);
  }
  .side-tip { font-size: 13.5px; line-height: 1.9; color: #7c7c88; }

  /* 劇場 / 我的 */
  .page-top { padding: 26px 0 8px; }
  .page-top h1 { font-size: 32px; }
  .continue { max-width: 640px; margin: 14px 0 0; }
  .chips-row { padding: 20px 0 16px; }
  .block { padding: 6px 0 0; }
  .block-head { margin: 12px 0 16px; }
  .block-head h2 { font-size: 22px; }
  .drama-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .drama-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(24, 24, 40, .12); }
  .drama-card { padding: 10px; gap: 10px; border-radius: 18px; }
  .drama-card .poster { border-radius: 12px; }
  .drama-card .poster .badge { padding: 3px 8px; font-size: 11px; }
  .drama-card .poster-score { top: 10px; right: 10px; padding: 4px 10px; font-size: 15px; }
  .drama-card .poster-score em { font-size: 11px; }
  .drama-card .poster-ep { right: 10px; bottom: 10px; padding: 4px 10px; font-size: 12px; }
  .drama-card h3 { font-size: 18px; }
  .drama-card .drama-year { font-size: 13px; }
  .drama-card .drama-score { margin-top: 6px; }
  .drama-card .score-num { font-size: 24px; }
  .drama-card .drama-tags { gap: 7px; margin-top: 9px; }
  .drama-card .drama-tags span { padding: 3px 10px; font-size: 12px; }
  .drama-card .drama-desc { margin-top: 7px; font-size: 13.5px; line-height: 1.7; -webkit-line-clamp: 2; }
  .drama-card .drama-foot { padding-top: 10px; font-size: 13px; }
  .drama-card .dc-stats { gap: 6px 16px; padding-top: 10px; margin-top: 10px; font-size: 13px; }
  .drama-card .dc-stats svg { width: 15px; height: 15px; }
  .drama-card .dc-stat { font-size: 13px; }
  .rank-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .rank-row {
    padding: 14px;
    box-shadow: 0 8px 22px rgba(24, 24, 40, .06);
    transition: transform .2s, box-shadow .2s;
  }
  .rank-row:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(24, 24, 40, .1); }

  .mine-head { margin-top: 18px; border-radius: 22px; padding: 34px 36px 28px; }
  .mine-user img { width: 72px; height: 72px; }
  .mine-user h2 { font-size: 24px; }
  .mine-user p { font-size: 13px; }
  .mine-stats { max-width: 460px; margin-top: 24px; }
  .mine-stats b { font-size: 22px; }
  .mine-sec { padding: 28px 0 0; }
  .mine-sec .sec-head h2 { font-size: 19px; }
  .h-scroll {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .h-item { width: auto; }
  .history-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .mine-menu { margin: 30px 0 0; max-width: 780px; }
  .empty { padding: 56px 20px; }

  /* 搜尋頁 */
  .page-search { background: var(--bg); }
  .search-head {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 26px 0 16px;
    border-bottom: 0;
    background: transparent;
  }
  .search-box { height: 46px; border-radius: 23px; background: #fff; box-shadow: 0 6px 20px rgba(24, 24, 40, .06); }
  .search-body { width: 100%; max-width: 1000px; margin: 0 auto; padding: 6px 0 50px; }
  .search-sec > h3 { font-size: 17px; }
  .hot-words button { padding: 9px 18px; font-size: 13px; }
  .search-row {
    margin-bottom: 10px;
    padding: 12px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(24, 24, 40, .05);
  }
  .search-row img { width: 60px; height: 80px; }
  .search-row h4 { font-size: 15px; }

  /* 詳情頁（桌面） */
  #pageDetail { background: var(--bg); color: var(--ink); }
  #pageDetail.desktop { padding-bottom: 0; }
  .dd-wrap { width: 100%; max-width: none; margin: 0 auto; padding: 20px clamp(24px, 3vw, 64px) 70px; }
  .dd-topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 14px; }
  .dd-back, .dd-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #e9e9ef;
    border-radius: 20px;
    background: #fff;
    color: #55555f;
    font-size: 13px;
  }
  .dd-back svg, .dd-share svg { width: 15px; height: 15px; }
  .dd-back:hover, .dd-share:hover { border-color: #ffc1cd; color: var(--brand); }
  .dd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; }
  .dd-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 20px 46px rgba(18, 18, 35, .16);
  }
  .dd-player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
  .dd-now {
    position: absolute;
    left: 16px; bottom: 52px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    pointer-events: none;
  }
  .dd-info {
    margin-top: 22px;
    padding: 28px 30px 26px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24, 24, 40, .05);
  }
  .dd-info-main {
    display: flex;
    gap: 28px;
    align-items: flex-start;
  }
  .dd-info-cover {
    position: relative;
    flex: 0 0 200px;
    width: 200px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  }
  .dd-info-cover img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
  }
  .dd-cover-vip {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff7a3d, #ff2e4d);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(255, 46, 77, .4);
  }
  .dd-info-detail {
    flex: 1;
    min-width: 0;
  }
  .dd-info-head h1 { font-size: 28px; font-weight: 900; letter-spacing: .3px; }
  .dd-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
  .dd-meta .score { color: #ff7a3d; font-weight: 800; }
  .dd-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 20px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e8e8ef;
  }
  .dd-grid-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
  }
  .dd-grid-item label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .5px;
  }
  .dd-grid-item span {
    font-size: 14px;
    font-weight: 600;
    color: #2d2d36;
  }
  .dd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #f0f0f5; }
  .dd-tags span { padding: 4px 11px; border-radius: 20px; background: #f6f6fa; color: #5b5b68; font-size: 12px; }
  .dd-desc { margin-top: 16px; font-size: 14px; line-height: 1.85; color: #55555f; }
  .dd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
  .dd-actions .btn-main,
  .dd-actions .btn-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    gap: 6px;
    height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
  }
  .dd-actions .btn-main { padding: 0 30px; font-size: 15px; font-weight: 700; }
  .dd-actions .btn-main svg,
  .dd-actions .js-like svg,
  .dd-actions .js-comment svg { width: 16px; height: 16px; flex: none; }
  .dd-actions b { font-size: 13px; font-weight: 600; opacity: .8; }
  .dd-side {
    align-self: start;
    position: sticky;
    top: 88px;
    max-height: calc(100dvh - 120px);
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(24, 24, 40, .07);
  }
  .dd-side-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
  .dd-side-head h2 { font-size: 18px; font-weight: 800; }
  .dd-side-head span { font-size: 11.5px; color: var(--muted); }
  .dd-eps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    overflow-y: auto;
    padding-right: 4px;
  }
  .dd-eps::-webkit-scrollbar { width: 4px; }
  .dd-eps::-webkit-scrollbar-thumb { background: #e2e2ea; border-radius: 3px; }
  .dd-ep {
    padding: 10px 0;
    border: 1px solid #eeeef3;
    border-radius: 9px;
    background: #f8f8fb;
    color: #5b5b68;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    transition: all .15s;
  }
  .dd-ep:hover { border-color: #ffc1cd; color: var(--brand); }
  .dd-ep.is-on {
    border-color: transparent;
    background: linear-gradient(135deg, #ff2e4d, #ff6b3d);
    color: #fff;
    font-weight: 700;
  }
  .dd-ep-tip { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f4f4f8; font-size: 11.5px; color: var(--muted); }
  .dd-sec { margin-top: 38px; }
  .dd-sec .sec-head h2 { font-size: 20px; }
  .dd-recs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* ============ 黑金主題（歐美風 · 高級質感） ============ */
:root {
  --brand: #c9a96a;
  --brand-2: #ecd9ae;
  --ink: #ece7db;
  --ink-2: #b9ae97;
  --muted: #7d7462;
  --line: rgba(201, 169, 106, .16);
  --bg: #0a0a0c;
  --card: #131214;
  --gold-grad: linear-gradient(135deg, #f4e5bf 0%, #d3b678 42%, #9c7c46 100%);
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
}

.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%),
    #050506;
}

/* 頁面背景：深黑底 + 多層次金色氛圍光 */
.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%),
    linear-gradient(180deg, #0c0c0e 0%, #0a0a0c 40%, #0b0b0d 100%);
  color: var(--ink);
}

/* 卡片：啞光深黑 + 細金邊 + 微光 */
.top-icon.dark, .chip, .rank-row, .history-row, .mine-menu, .search-head, .sheet,
.search-box, .hot-words button, .admin-back, .admin-intro, .admin-tool, .admin-row,
.admin-empty, .admin-title, .admin-sub select {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}
.rank-row, .history-row, .mine-menu { box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(249, 236, 192, .05); }
.search-head { border-width: 0 0 1px; }
.admin-back { color: var(--ink-2); }
.admin-note { color: #7c6f52; }
.admin-state { color: var(--muted); }

/* 文字顏色 */
.detail-desc, .dd-desc, .search-cancel, .c-main p { color: var(--ink-2); }
.c-main h5 { color: var(--muted); }
.rec-item .ri .tags span, .dd-tags span {
  background: rgba(201, 169, 106, .08);
  border: 1px solid rgba(201, 169, 106, .12);
  color: var(--ink-2);
}
.hot-words button { color: var(--ink-2); }
.empty .empty-ico { background: #171512; color: #6b5f45; border: 1px solid var(--line); }
.h-item .poster { background: #171512; }

/* 內容文字補色（黑底可讀） */
.drama-card h3, .side-rank h4, .rank-info h3, .history-info h4, .h-item h4,
.rec-item h4, .search-row h4, .dd-now strong, .admin-top h1, .admin-intro h2 {
  color: var(--ink);
}
.drama-card p, .side-rank p, .rank-info p, .history-info p, .h-item p,
.rec-item p, .search-row p, .admin-intro p {
  color: var(--muted);
}

/* 金色淺底（會員感淺金霧面） */
.rank-go, .menu-ico, .c-mine, .hot-words button:nth-child(-n+3), .admin-op.is-on {
  background: rgba(201, 169, 106, .10);
  border: 1px solid rgba(201, 169, 106, .22);
  color: var(--brand-2);
}
.admin-op { background: #171512; border-color: var(--line); color: var(--ink-2); }
.admin-op.is-on { border-color: rgba(201, 169, 106, .45); }
.btn-follow.is-on { background: rgba(201, 169, 106, .10); border-color: rgba(201, 169, 106, .38); color: var(--brand-2); }

/* 分割線與深色小件 */
.bar { background: #241d0e; }
.sheet-grip { background: #2f2b1e; }
.sheet-close { background: #171512; color: var(--ink-2); border: 1px solid var(--line); }
.sheet-input input { background: #f4f4f8; color: #17171c; }
.sheet-input input::placeholder { color: #8f8f9a; }
.sheet-list { border-top-color: var(--line); }
.comment { border-bottom-color: rgba(201, 169, 106, .08); }
.side-rank + .side-rank { border-top-color: rgba(201, 169, 106, .08); }
.menu-row .chev { color: #6b5f45; }
.rank-no, .side-rank .no { color: #5d543c; }

/* 金屬金漸變（按鈕 / 標籤 / 進度條） */
.feed-tab.is-on::after, .seek-fill, .bar i, .dc-progress i {
  background: linear-gradient(90deg, #ecd9ae, #c9a96a 60%, #9c7c46);
  box-shadow: 0 0 8px rgba(201, 169, 106, .35);
}
.ep-chip, .drama-card .badge, .dhome-badge, .continue-play, .chip.is-on,
.ep-btn.is-on, .dd-ep.is-on, .sheet-input button, .btn-main, .admin-upload {
  background: var(--gold-grad);
  color: #241d0e;
  text-shadow: 0 1px 0 rgba(255, 250, 230, .3);
  box-shadow: 0 6px 18px rgba(201, 169, 106, .18), inset 0 1px 0 rgba(255, 248, 220, .4);
}
.chip.is-on { box-shadow: 0 6px 16px rgba(201, 169, 106, .22), inset 0 1px 0 rgba(255, 248, 220, .4); }

/* 強調色 */
.tab.is-on { color: var(--brand-2); }
.rank-row:nth-child(1) .rank-no, .side-rank:nth-child(2) .no { color: #ecd9ae; }
.rank-row:nth-child(2) .rank-no, .side-rank:nth-child(3) .no { color: #c9a96a; }
.rank-row:nth-child(3) .rank-no, .side-rank:nth-child(4) .no { color: #8f7340; }
.rank-info .sec, .detail-meta .score, .dd-meta .score { color: var(--brand-2); }

/* 歐美風排版：襯線大標題 + 寬字距 */
.dhome-hero-info h1, .dd-info h1, .dh-logo, .splash-logo {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(115deg, #f4e5bf 15%, #c9a96a 48%, #8f7340 78%, #ecd9ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.dhome-badge, .ep-chip, .drama-card .badge {
  letter-spacing: 2px;
  font-weight: 600;
}
.block-head h2, .sec-head h2, .dhome-sec-head h2, .dd-side-head h2, .admin-top h1 {
  letter-spacing: .8px;
}
.btn-main, .admin-upload { letter-spacing: 2px; border-radius: 10px; }
.block-head span, .sec-head span, .dhome-sec-head span, .dd-side-head span {
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* 開屏：冷調深邃黑金 */
.splash { background: linear-gradient(165deg, #08080a 0%, #14120d 55%, #201a10 100%); }

@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%),
      #060607;
  }
  .dheader { background: rgba(8, 8, 10, .92); border-bottom: 1px solid var(--line); }
  .dh-nav button { color: var(--ink-2); }
  .dh-nav button:hover { background: rgba(201, 169, 106, .07); }
  .dh-nav button.is-on { background: rgba(201, 169, 106, .12); color: var(--brand-2); }
  .dh-search { background: #0f0e0c; border-color: var(--line); }
  .dh-search:hover { border-color: rgba(201, 169, 106, .4); background: #151310; }
  .dh-user { border-color: rgba(201, 169, 106, .35); background: #171512; box-shadow: 0 0 0 2px rgba(201, 169, 106, .08); color: var(--ink); }
  .dh-user:hover { border-color: rgba(201, 169, 106, .6); color: var(--brand-2); }
  .dh-user-wrap { position: relative; flex: none; }
  .dh-user { cursor: pointer; }
  .dh-user-wrap.is-open .dh-user { border-color: rgba(236, 217, 174, .7); box-shadow: 0 0 0 3px rgba(201, 169, 106, .18); }
  .dh-user-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 232px;
    padding: 6px;
    border: 1px solid rgba(201, 169, 106, .28);
    border-radius: 14px;
    background: rgba(24, 20, 16, .97);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .6);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(.98);
    transform-origin: top right;
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 70;
  }
  .dh-user-wrap.is-open .dh-user-menu { opacity: 1; visibility: visible; transform: none; }
  .dh-menu-head { padding: 10px 10px 9px; border-bottom: 1px solid rgba(201, 169, 106, .16); }
  .dh-menu-name { font-size: 14px; font-weight: 700; color: #f3ead8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dh-menu-email { margin-top: 3px; font-size: 11px; color: rgba(236, 231, 219, .45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dh-menu-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
  .dh-menu-tag { padding: 2px 6px; border-radius: 5px; background: rgba(201, 169, 106, .12); color: rgba(236, 217, 174, .75); font-size: 10px; font-weight: 600; letter-spacing: .4px; }
  .dh-menu-tag.is-vip { background: rgba(255, 184, 77, .15); color: #ffc46b; }
  .dh-menu-tag.is-creator { background: rgba(201, 169, 106, .18); color: #e8cf94; }
  .dh-menu-list { padding: 5px 0; }
  .dh-menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: rgba(243, 234, 216, .85); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .3px; text-align: left; cursor: pointer; transition: background .14s, color .14s; }
  .dh-menu-item:hover { background: rgba(201, 169, 106, .14); color: #f3ead8; }
  .dh-menu-ico { display: inline-flex; flex: none; width: 16px; height: 16px; color: rgba(236, 217, 174, .75); }
  .dh-menu-ico svg { width: 16px; height: 16px; }
  .dh-menu-foot { padding: 5px 0 1px; border-top: 1px solid rgba(201, 169, 106, .16); }
  .dh-menu-item.is-danger { color: rgba(255, 138, 144, .92); }
  .dh-menu-item.is-danger:hover { background: rgba(255, 77, 79, .16); color: #ff9ea2; }

  .side-card, .dd-info, .dd-side, .search-row {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(249, 236, 192, .05);
  }
  .dhome-hero, .dhome-carousel { background: #0e0d0b; }
  .dhome-hero { border: 1px solid rgba(201, 169, 106, .18); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
  .hero-dot { background: rgba(201, 169, 106, .25); }
  .hero-dot.is-on { background: linear-gradient(90deg, #f9ecc0, #d4af37); box-shadow: 0 0 8px rgba(201, 169, 106, .5); }
  .hero-nav { border-color: rgba(201, 169, 106, .3); color: var(--brand-2); }
  .hero-nav:hover { background: rgba(20, 15, 6, .8); }

  .dd-back, .dd-share { background: var(--card); border-color: var(--line); color: var(--ink-2); }
  .dd-back:hover, .dd-share:hover { border-color: rgba(201, 169, 106, .4); color: var(--brand-2); }
  .dd-ep { background: #181611; border-color: var(--line); color: var(--ink-2); }
  .dd-ep:hover { border-color: rgba(201, 169, 106, .4); color: var(--brand-2); }
  .dd-eps::-webkit-scrollbar-thumb { background: #2f2b1e; }
  .dd-ep-tip { border-top-color: var(--line); }
  .search-box { background: var(--card); box-shadow: none; border: 1px solid var(--line); }
  .dd-info-grid { border-top-color: var(--line); }
  .dd-grid-item span { color: var(--ink); }
  .dd-tags { border-top-color: var(--line); }
  .dd-tags span { background: #1a1814; color: var(--ink-2); }
  .dd-desc { color: var(--ink-2); }
  .dd-info-cover { box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
}

/* ============ 劇集卡片：熱度統計 + 快捷操作 ============ */
.drama-card { cursor: pointer; }
.dc-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--line, rgba(0, 0, 0, .06));
  font-size: 11px;
  color: var(--muted);
}
.dc-stats svg { width: 13px; height: 13px; }
.dc-heat { display: inline-flex; align-items: center; gap: 3px; color: #ff7a45; }
.dc-heat b { font-weight: 700; }
.dc-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  margin: -2px -6px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.dc-stat:hover { background: rgba(201, 169, 106, .10); color: var(--brand-2); }
.dc-stat.on { color: #ff5470; }
.dc-stat.on svg { fill: currentColor; }
.dc-stat.dc-fav.on { color: var(--brand-2); }

/* 移動端詳情頁互動數據行 */
.detail-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.detail-stats svg { width: 15px; height: 15px; }
.detail-stats .dc-heat { gap: 4px; }
.detail-stats .dc-heat b { margin-right: 2px; }
.dstat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
}
.dstat.on { color: #ff5470; }
.dstat.on svg { fill: currentColor; }
.dstat.js-fav.on { color: var(--brand-2); }

/* 桌面端詳情頁點贊按鈕裏的圖標 */
.dd-actions .js-like { display: inline-flex; align-items: center; gap: 6px; }
.dd-actions .js-like svg { width: 15px; height: 15px; }
.dd-actions .js-like.is-on svg { fill: currentColor; }

/* ============ 短劇管理後台 ============ */
.admin-thumb.dadmin-cover { width: 60px; aspect-ratio: 3 / 4; }
.dadmin-row .admin-fields { gap: 4px; }
.dadmin-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.dadmin-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid rgba(201, 169, 106, .25);
  border-radius: 6px;
  background: rgba(201, 169, 106, .12);
  color: var(--brand-2);
  font-size: 10px;
  font-weight: 400;
  vertical-align: 2px;
}

/* 發佈 / 編輯表單 */
.dform {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.dform-cover { display: flex; gap: 14px; margin-bottom: 16px; }
.dform-cover img {
  flex: none;
  width: 96px;
  height: 128px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #171512;
}
.dform-cover-ops { flex: 1; min-width: 0; display: grid; gap: 8px; align-content: start; }
.dform-up { display: inline-flex; justify-content: center; cursor: pointer; }
.dform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dform-item { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.dform-item.span2 { grid-column: span 2; }
.dform-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171512;
  color: var(--ink);
  font-size: 13px;
  outline: none;
}
.dform-input:focus { border-color: rgba(201, 169, 106, .5); }
textarea.dform-input { resize: vertical; font-family: inherit; line-height: 1.6; }
select.dform-input { appearance: auto; }
.dform-foot { display: flex; gap: 10px; margin-top: 18px; }
.dform-foot .btn-main { flex: none; padding: 11px 26px; }

@media (max-width: 560px) {
  .dform-grid { grid-template-columns: 1fr; }
  .dform-item.span2 { grid-column: auto; }
}

/* ============ 播放設定面板 ============ */
.player-settings {
  position: absolute;
  right: 16px;
  bottom: 78px;
  z-index: 20;
  width: 288px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(22, 18, 14, .96);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #e8e4dc;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  backdrop-filter: blur(10px);
}
.player-settings.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.ps-title { font-size: 13px; font-weight: 600; color: #c9a96a; margin-bottom: 12px; }
.ps-row { margin-bottom: 14px; }
.ps-row:last-child { margin-bottom: 0; }
.ps-label { font-size: 11px; color: #9a9488; margin-bottom: 8px; display: block; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chip {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  color: #e8e4dc;
  font-size: 12px;
  transition: all .15s;
}
.ps-chip:hover { border-color: rgba(201, 169, 106, .4); }
.ps-chip.is-on { background: #c9a96a; color: #161208; border-color: #c9a96a; }
.ps-switch {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
}
.ps-switch span { font-size: 12px; color: #e8e4dc; }
.ps-toggle {
  position: relative;
  width: 36px; height: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .15);
  border: 0;
  transition: background .2s;
}
.ps-toggle::after {
  content: ""; position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.ps-toggle.on { background: #c9a96a; }
.ps-toggle.on::after { transform: translateX(16px); }

/* 桌面端自定義播放器控制欄（騰訊影片風格） */
.dd-player-wrap { position: relative; }
.dd-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 20px 46px rgba(18, 18, 35, .16);
  cursor: pointer;
}
.dd-player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.dd-now {
  position: absolute;
  left: 16px; bottom: 56px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s;
  z-index: 3;
}

/* 控制欄 */
.dd-player-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .35) 40%, transparent 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  z-index: 4;
  pointer-events: none;
}
.dd-player-bar.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 進度條 */
.pb-progress {
  position: relative;
  height: 4px;
  margin: 8px 0;
  cursor: pointer;
  border-radius: 4px;
  background: rgba(255, 255, 255, .2);
  transition: height .2s;
}
.pb-progress:hover { height: 6px; }
.pb-buffer {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(255, 255, 255, .35);
  border-radius: inherit;
  width: 0;
}
.pb-played {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #ff4d4f, #ff7a3d);
  border-radius: inherit;
  width: 0;
}
.pb-thumb {
  position: absolute;
  left: 0; top: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, .6);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.pb-progress:hover .pb-thumb { opacity: 1; }
.pb-thumb i { display: none; }

/* 按鈕行 */
.pb-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 2px 6px;
}
.pb-btn {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 0;
  background: none;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.pb-btn:hover { background: rgba(255, 255, 255, .15); }
.pb-btn:active { transform: scale(.92); }
.pb-btn svg { width: 18px; height: 18px; }
.pb-btn#pbPlay svg { width: 22px; height: 22px; }
.pb-speed-btn {
  width: auto;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5px;
}

/* 時間顯示 */
.pb-time {
  font-size: 12px;
  color: rgba(255, 255, 255, .85);
  margin: 0 8px 0 2px;
  font-variant-numeric: tabular-nums;
}
.pb-time b { font-weight: 600; color: #fff; }
.pb-time em { font-style: normal; margin: 0 3px; color: rgba(255, 255, 255, .4); }

/* 音量 */
.pb-volume { display: flex; align-items: center; gap: 4px; }
.pb-vol-slider {
  position: relative;
  width: 0; height: 4px;
  background: rgba(255, 255, 255, .25);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: width .2s;
}
.pb-volume:hover .pb-vol-slider { width: 70px; }
.pb-vol-slider i {
  display: block;
  height: 100%;
  background: #fff;
  width: 80%;
  border-radius: 3px;
}

/* 倍速下拉 */
.pb-speed { position: relative; }
.pb-speed-list {
  position: absolute;
  bottom: 44px;
  right: 50%;
  transform: translateX(50%);
  min-width: 72px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(28, 28, 32, .95);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  backdrop-filter: blur(10px);
  z-index: 10;
}
.pb-speed-list.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(50%) translateY(-4px);
}
.pb-speed-list button {
  display: block;
  width: 100%;
  padding: 7px 14px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pb-speed-list button:hover {
  background: rgba(255, 77, 79, .18);
  color: #ff6b7a;
}

/* 鍵盤快捷鍵提示 */
.kbd-hint {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 28px; font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 6;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.kbd-hint.show { opacity: 1; }

/* ============ 會員購買頁 ============ */
.vip-page {
  padding: 0 0 34px;
  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%);
  color: #fff;
  min-height: 100%;
  overflow-y: auto;
}

/* 頂部主視覺 */
.vip-hero {
  position: relative;
  padding: 34px 24px 30px;
  text-align: center;
  overflow: hidden;
}
.vip-hero--premium {
  padding: 40px 24px 26px;
  background:
    radial-gradient(340px 190px at 50% -10%, rgba(255, 198, 112, .32), transparent 72%),
    linear-gradient(180deg, rgba(64, 40, 18, .8) 0%, rgba(24, 17, 12, .25) 68%, transparent 100%);
}
.vip-hero--premium::before {
  content: "";
  position: absolute;
  left: 50%; top: -150px;
  width: 380px; height: 380px;
  transform: translateX(-50%);
  background: conic-gradient(from 0deg,
    rgba(255, 212, 145, .12), transparent 18%,
    rgba(255, 160, 80, .12) 34%, transparent 52%,
    rgba(255, 212, 145, .12) 68%, transparent 86%,
    rgba(255, 212, 145, .12));
  -webkit-mask: radial-gradient(circle, #000 0 34%, transparent 68%);
  mask: radial-gradient(circle, #000 0 34%, transparent 68%);
  animation: vip-ray-spin 26s linear infinite;
  pointer-events: none;
}
@keyframes vip-ray-spin { to { transform: translateX(-50%) rotate(360deg); } }
.vip-back {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .34);
  color: #fff;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.vip-back svg { width: 20px; height: 20px; }
.vip-crown {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(150deg, #ffe9b8 0%, #ffc568 42%, #ff8a45 100%);
  align-items: center; justify-content: center;
  box-shadow:
    0 10px 30px rgba(255, 150, 60, .42),
    inset 0 1px 2px rgba(255, 255, 255, .7),
    inset 0 -5px 10px rgba(170, 66, 8, .35);
  margin-bottom: 26px;
}
.vip-crown::before,
.vip-crown::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.vip-crown::before { inset: -10px; border: 1px solid rgba(255, 210, 140, .30); }
.vip-crown::after { inset: -22px; border: 1px solid rgba(255, 210, 140, .12); }
.vip-crown svg { width: 34px; height: 34px; color: #3a1e04; position: relative; z-index: 1; }
.vip-crown img { width: 46px; height: 46px; object-fit: contain; position: relative; z-index: 1; }
.vip-hero-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3.5px;
  color: rgba(255, 208, 145, .62);
}
.vip-hero h1 {
  font-size: 24px; font-weight: 800; letter-spacing: .8px;
  background: linear-gradient(135deg, #fff4da 0%, #ffd489 38%, #ff9d4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.vip-hero--premium h1 { font-size: 26px; }
.vip-hero p { color: rgba(255, 236, 214, .55); font-size: 12.5px; letter-spacing: .6px; }

/* 權益 */
.vip-benefits {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 4px 20px 22px;
  position: relative;
  z-index: 1;
}
.vip-benefit {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 214, 158, .13);
  font-size: 12px; color: rgba(255, 255, 255, .82);
}
.vip-benefit-ic {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(255, 202, 125, .22), rgba(255, 122, 61, .10));
  border: 1px solid rgba(255, 205, 140, .20);
}
.vip-benefit svg { width: 16px; height: 16px; color: #ffca7d; flex-shrink: 0; }

.vip-plans { padding: 0 20px; position: relative; z-index: 1; }
.vip-plans-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.vip-plans h2 { font-size: 15px; font-weight: 700; letter-spacing: .5px; color: rgba(255, 255, 255, .9); }
.vip-plans-hint { font-size: 11px; color: rgba(255, 255, 255, .32); }
.vip-plans-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vip-plan {
  position: relative;
  display: flex; flex-direction: column;
  gap: 3px;
  padding: 12px 13px 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .075) 0%, rgba(255, 255, 255, .025) 62%, rgba(255, 255, 255, .012) 100%);
  border: 1px solid rgba(255, 255, 255, .085);
  cursor: pointer;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.vip-plan::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .10) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .75s ease;
  pointer-events: none;
}
.vip-plan:hover { transform: translateY(-2px); border-color: rgba(255, 190, 110, .38); }
.vip-plan:hover::after { transform: translateX(130%); }
.vip-plan.is-on {
  border-color: rgba(255, 200, 125, .85);
  background: linear-gradient(160deg, rgba(255, 180, 88, .20) 0%, rgba(255, 122, 61, .09) 58%, rgba(255, 255, 255, .02) 100%);
  box-shadow: 0 12px 30px rgba(255, 140, 60, .24), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.vip-plan.is-on:not(.is-featured)::before {
  content: "";
  position: absolute;
  top: -46px; right: -34px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 118, .34), transparent 70%);
  pointer-events: none;
}
/* 主推年卡：彩蛇跑馬燈描邊，勻速旋轉 */
@property --vip-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.vip-plan.is-featured {
  border-color: rgba(255, 206, 130, .28);
  background:
    radial-gradient(130% 100% at 100% 0%, rgba(255, 196, 110, .24), transparent 62%),
    linear-gradient(160deg, rgba(255, 190, 105, .14) 0%, rgba(255, 122, 61, .06) 52%, rgba(255, 255, 255, .02) 100%);
  box-shadow: 0 10px 26px rgba(255, 150, 60, .16), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.vip-plan.is-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 0; right: 0;
  width: auto; height: auto;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--vip-angle),
    #ff5f6d 0deg 40deg,
    #ffb347 40deg 80deg,
    #ffe66d 80deg 120deg,
    #4ade80 120deg 160deg,
    #38bdf8 160deg 200deg,
    #a78bfa 200deg 240deg,
    #ff5f6d 240deg 280deg,
    rgba(255, 255, 255, .06) 280deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: vip-border-rotate 6s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes vip-border-rotate {
  from { --vip-angle: 0deg; }
  to { --vip-angle: 360deg; }
}
.vip-plan.is-featured.is-on { border-color: #ffd89a; }
.vip-plan.is-featured .vip-plan-badge {
  color: #2a1705;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 175, 70, .6);
}
.vip-plan.is-featured .vip-plan-name { color: #ffe6b8; }
.vip-plan.is-featured .vip-plan-price b { font-size: 30px; }
.vip-plan-aura {
  position: absolute;
  right: 4px; bottom: 4px;
  width: 56px; height: 56px;
  color: #ffc46e;
  opacity: .12;
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 0;
}
.vip-plan-aura svg { width: 100%; height: 100%; }
.vip-plan-badge,
.vip-plan-hd,
.vip-plan-price { position: relative; z-index: 1; }
.vip-plan-badge {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .4px;
  line-height: 1.25;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}
.vip-plan-badge.is-empty { visibility: hidden; }
.vip-plan-check {
  position: absolute;
  top: 11px; right: 11px;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ffe6b4, #ffab52);
  color: #2a1705;
  box-shadow: 0 3px 10px rgba(255, 170, 60, .45);
  opacity: 0;
  transform: scale(.55);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 1;
}
.vip-plan-check svg { width: 12px; height: 12px; stroke-width: 3.2; }
.vip-plan.is-on .vip-plan-check { opacity: 1; transform: scale(1); }
.vip-plan-hd { margin-top: 6px; }
.vip-plan-name { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.vip-plan.is-on .vip-plan-name { color: #ffe3b0; }
.vip-plan-desc {
  font-size: 11px; color: rgba(255, 255, 255, .46);
  margin-top: 3px;
  line-height: 1.45;
  min-height: 32px;
}
.vip-plan.is-on .vip-plan-desc { color: rgba(255, 230, 200, .66); }
.vip-plan-price {
  display: flex; align-items: baseline; gap: 2px;
  margin-top: auto;
  padding-top: 8px;
  font-variant-numeric: tabular-nums;
}
.vip-plan-price b {
  font-size: 26px; font-weight: 800; letter-spacing: -.5px;
  line-height: 1;
  background: linear-gradient(135deg, #ffe9bd 0%, #ffbe6d 55%, #ff8a45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vip-plan-price b i { font-size: 13px; font-style: normal; font-weight: 600; margin-right: 1px; }
.vip-plan-price small { font-size: 11px; color: rgba(255, 255, 255, .36); }

.vip-pay {
  position: relative;
  margin: 20px 20px 0;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028));
  border: 1px solid rgba(255, 210, 155, .14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.vip-pay-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, .10);
  font-size: 12px; letter-spacing: .5px;
  color: rgba(255, 255, 255, .5);
}
.vip-pay-hd b {
  font-size: 26px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(135deg, #ffe9bd, #ffab52);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vip-pay-btns { display: flex; gap: 10px; }
.vip-pay-btn {
  --shimmer-color: #fff;
  --shimmer-size: 2px;
  --shimmer-radius: 100px;
  --shimmer-duration: 3s;
  --shimmer-bg: #000;

  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px;
  border-radius: var(--shimmer-radius);
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--shimmer-bg);
  color: #fff;
  font-size: 14.5px; font-weight: 700; letter-spacing: .4px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: scale .15s ease;
}
/* ShimmerButton 的旋轉光弧：整圈掃過按鈕邊緣 */
.vip-pay-btn::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 160%; aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(from 225deg, transparent 0deg, var(--shimmer-color) 45deg, transparent 90deg);
  filter: blur(2px);
  animation: vip-shimmer-spin var(--shimmer-duration) linear infinite;
  z-index: -2;
}
/* 內層黑色遮罩：只露出 --shimmer-size 寬的流光描邊 */
.vip-pay-btn::after {
  content: "";
  position: absolute;
  inset: var(--shimmer-size);
  border-radius: var(--shimmer-radius);
  background: var(--shimmer-bg);
  z-index: -1;
}
@keyframes vip-shimmer-spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}
.vip-pay-btn:active { scale: .97; }
.vip-agree {
  text-align: center; font-size: 11px;
  color: rgba(255, 255, 255, .3); margin-top: 12px;
  line-height: 1.65;
}
@media (min-width: 820px) {
  .vip-page { padding-top: 18px; }
  .vip-hero,
  .vip-benefits,
  .vip-plans { width: 100%; max-width: 520px; margin-left: auto; margin-right: auto; }
  .vip-hero { border-radius: 22px; }
  .vip-pay { width: 100%; max-width: 480px; margin: 20px auto 0; }
}

/* ============ 追劇更新提醒 ============ */
.side-rank.has-update { border-left: 3px solid #ff4d4f; }
.side-rank .update-badge {
  flex: none;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff4d4f, #ff7a3d);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(255, 77, 79, .35);
  align-self: center;
  animation: badge-pop 2.4s ease-in-out infinite;
}
@keyframes badge-pop {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.08); }
}
.side-rank { position: relative; }
.side-rank .sr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.side-rank h4 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 每日簽到 ============ */
.checkin-card {
  margin: 16px; padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f1a14, #2a1e12);
  border: 1px solid rgba(255, 200, 100, .15);
  color: #fff;
}
.checkin-hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.checkin-hd h3 { font-size: 15px; font-weight: 600; }
.checkin-streak {
  font-size: 12px; color: #ffb84d;
  display: flex; align-items: center; gap: 4px;
}
.checkin-streak svg { width: 14px; height: 14px; }
.checkin-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.checkin-day {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: all .2s;
}
.checkin-day .cd-name { font-size: 10px; color: rgba(255, 255, 255, .5); margin-bottom: 4px; }
.checkin-day .cd-reward { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .4); }
.checkin-day.is-checked {
  background: linear-gradient(135deg, #c9a96a, #8a6a3a);
  border-color: #c9a96a;
}
.checkin-day.is-checked .cd-reward { color: #fff; }
.checkin-day.is-today {
  border-color: #ffb84d;
  box-shadow: 0 0 0 2px rgba(255, 184, 77, .2);
}
.checkin-day.is-future .cd-reward { color: rgba(255, 255, 255, .3); }
.checkin-day.is-missed { opacity: .4; }

.checkin-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffb84d, #ff7a3d);
  color: #1a1006;
  font-size: 14px; font-weight: 700;
  border: 0; cursor: pointer;
  transition: transform .15s;
}
.checkin-btn:active { transform: scale(.98); }
.checkin-btn:disabled {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .4);
  cursor: not-allowed;
}

/* 我的頁面裏的簽到入口 */
.mine-checkin-entry {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d170c, #131009);
  border: 1px solid rgba(201, 169, 106, .28);
  box-shadow: inset 0 1px 0 rgba(249, 236, 192, .05);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.mine-checkin-entry:hover { transform: translateY(-1px); border-color: rgba(201, 169, 106, .45); }
.mce-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--gold-grad);
  box-shadow: 0 4px 14px rgba(201, 169, 106, .28), inset 0 1px 0 rgba(255, 248, 220, .4);
}
.mce-icon svg { width: 22px; height: 22px; color: #241d0e; }
.mce-info { flex: 1; }
.mce-info h4 { font-size: 13px; font-weight: 700; letter-spacing: .3px; color: var(--ink); }
.mce-info p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.mce-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-grad);
  font-size: 11px; font-weight: 700; color: #241d0e;
  letter-spacing: 1px;
}

/* ============ 關於我們 About Section ============ */
.about-section {
  display: none;
}

/* 「我的」頁不展示關於我們區塊 */
.app[data-screen="mine"] #aboutSection {
  display: none;
}

@media (min-width: 820px) {
  .about-section {
    display: block;
    position: relative;
    padding: 72px clamp(24px, 3vw, 64px) 56px;
    background:
      radial-gradient(600px 300px at 85% 20%, rgba(201, 169, 106, .07), transparent 65%),
      linear-gradient(180deg, #0a0a0c 0%, #08080a 100%);
    border-bottom: 1px solid rgba(201, 169, 106, .08);
    overflow: hidden;
  }
  .about-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 106, .25) 50%, transparent);
  }
  .about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: none;
    align-items: center;
    padding: 36px 0;
  }

  /* 左側文字 */
  .about-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
  }
  .about-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.64px;
    color: #ff4a7b;
    margin: 0;
  }
  .about-title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 2px;
    color: #fff;
    text-align: left;
  }
  .about-intro {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #fff;
  }
  .about-desc {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: #c8c8c8;
  }
  .about-slogan {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: #fff;
  }

  /* 右側圖片展示 */
  .about-right {
    position: relative;
    min-width: 0;
    display: flex;
    justify-content: center;
  }
  .about-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1218;
  }
  .about-visual-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1a1218;
  }
  .about-visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .about-visual-fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
  }
  .about-visual-fallback span {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(115deg, #f4e5bf, #c9a96a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .about-visual-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, .3);
  }
  .about-visual-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }
  .about-visual-item {
    width: 150px;
    min-width: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 32px 22px;
    border-radius: 19px;
    border: 1px solid #ffd23f;
    background: rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .about-visual-item h3 {
    margin: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: #ffb92b;
  }
  .about-visual-item p {
    margin: 12px 0 0;
    text-align: justify;
    font-size: 14px;
    line-height: 20px;
    color: rgba(255, 255, 255, .6);
  }

  /* 大屏適配 */
  @media (min-width: 1500px) {
    .about-section { padding: 88px 64px 68px; }
    .about-inner { gap: 80px; max-width: 1600px; margin: 0 auto; }
    .about-stats { padding: 36px; gap: 20px; }
    .stat-item b { font-size: 36px; }
  }
}

/* ============ 全站底部 Footer ============ */
.site-footer {
  display: none;
}

@media (min-width: 820px) {
  .site-footer {
    display: block;
    position: relative;
    margin-top: 60px;
    padding: 48px clamp(24px, 3vw, 64px) 36px;
    background:
      linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgba(8, 8, 10, .95) 20%),
      linear-gradient(180deg, #0a0a0c 0%, #060607 100%);
    border-top: 1px solid rgba(201, 169, 106, .12);
    color: var(--ink-2);
  }
  .site-footer::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 106, .35) 50%, transparent);
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    align-items: start;
    gap: 48px;
    max-width: none;
  }
  .footer-col { min-width: 0; }

  /* 品牌區 */
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
  }
  .footer-logo svg { width: 34px; height: 34px; }
  .footer-logo img { display: block; width: auto; height: 52px; object-fit: contain; }
  .footer-logo span {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: linear-gradient(115deg, #f4e5bf 15%, #c9a96a 48%, #8f7340 78%, #ecd9ae 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .footer-legal {
    font-size: 11px;
    line-height: 1.8;
    color: rgba(201, 169, 106, .55);
    margin-bottom: 14px;
    max-width: 360px;
  }
  /* 備用地址區塊：淺色標籤 + 金色鏈接 */
  .footer-urls { font-size: 13px; line-height: 2.2; max-width: none; }
  .fl-row { display: flex; align-items: baseline; gap: 2px; }
  .fl-label { color: rgba(236, 231, 219, .88); }
  .fl-link {
    color: #e3bd6d;
    text-decoration: none;
    transition: color .2s;
  }
  .fl-link:hover { color: #f4e5bf; text-decoration: underline; }
  .footer-copy {
    font-size: 11px;
    color: rgba(201, 169, 106, .4);
  }

  /* 導航鏈接 */
  .footer-nav-wrap { padding-top: 4px; }
  .footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
  }
  .footer-nav li {
    padding-right: 14px;
    margin-right: 14px;
    border-right: 1px solid rgba(201, 169, 106, .18);
  }
  .footer-nav li:last-child { border-right: none; padding-right: 0; margin-right: 0; }
  .footer-nav a {
    font-size: 13px;
    color: rgba(236, 217, 174, .75);
    text-decoration: none;
    letter-spacing: .5px;
    transition: color .2s;
  }
  .footer-nav a:hover {
    color: var(--brand-2);
  }

  /* 聯繫我們 */
  .footer-contact { padding-top: 4px; }
  .footer-contact-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-2);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .footer-contact-line {
    /* 與下方社交圖標行同寬：4 × 38px 圖標 + 3 × 12px 間距 = 188px */
    width: 188px;
    max-width: 100%;
    height: 2px;
    margin-bottom: 18px;
    background: linear-gradient(90deg, #c9a96a, transparent 85%);
  }
  .footer-socials {
    display: flex;
    gap: 12px;
  }
  .social-ico {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(201, 169, 106, .06);
    border: 1px solid rgba(201, 169, 106, .15);
    color: rgba(236, 217, 174, .8);
    text-decoration: none;
    transition: all .2s;
  }
  .social-ico:hover {
    background: rgba(201, 169, 106, .15);
    border-color: rgba(201, 169, 106, .45);
    color: var(--brand-2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 169, 106, .15);
  }
  .social-ico svg { width: 16px; height: 16px; }

  /* App下載按鈕 */
  .footer-app {
    padding-top: 4px;
    align-self: start;
  }
  .footer-app-btn {
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff2e4d, #ff7a3d);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(255, 46, 77, .35);
    transition: transform .2s, box-shadow .2s;
  }
  .footer-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 46, 77, .45);
  }
  .footer-app-btn svg { width: 22px; height: 22px; }

  /* 大屏適配 */
  @media (min-width: 1500px) {
    .footer-inner {
      grid-template-columns: 1.4fr 1fr 1fr auto;
      gap: 64px;
      max-width: 1600px;
      margin: 0 auto;
    }
    .site-footer { padding: 56px 64px 42px; }
  }
}

/* ============ 大屏：首頁卡片整體放大、封面更清晰 ============ */
@media (min-width: 1500px) {
  .dhome-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .dhome-grid .drama-card { padding: 10px; gap: 10px; border-radius: 18px; }
  .dhome-grid .drama-card .poster { border-radius: 12px; }
  .dhome-grid .drama-card .poster-score { font-size: 15px; }
  .dhome-grid .drama-card .poster-score em { font-size: 11px; }
  .dhome-grid .drama-card .poster .badge { padding: 3px 8px; font-size: 11px; }
  .dhome-grid .drama-card h3 { font-size: 18px; }
  .dhome-grid .drama-card .drama-year { font-size: 13px; }
  .dhome-grid .drama-card .drama-tags { gap: 7px; margin-top: 9px; }
  .dhome-grid .drama-card .drama-tags span { padding: 3px 10px; font-size: 12px; }
  .dhome-grid .drama-card .drama-desc {
    margin-top: 7px;
    font-size: 13.5px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
  }
  .dhome-grid .drama-card .drama-foot { padding-top: 10px; font-size: 13px; }
  .dhome-grid .drama-card .dc-stats { gap: 6px 12px; padding-top: 10px; margin-top: 10px; font-size: 12px; }
  .dhome-grid .drama-card .dc-stats svg { width: 14px; height: 14px; }
  .dhome-grid .drama-card .dc-stat { font-size: 12px; }
}

/* ============ 聯繫我們頁 ============ */
.page-contact {
  background: #060607;
  color: #ece9e3;
  display: flex;
  flex-direction: column;
}
.page-contact .contact-wrap {
  width: 100%;
  padding-bottom: 44px;
}
.page-contact .site-footer { margin: auto 0 0; }
.contact-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px clamp(20px, 4vw, 64px) 72px;
}

/* ============ 關於我們頁 ============ */
.page-about {
  background: #060607;
  color: #ece9e3;
  display: flex;
  flex-direction: column;
}
.about-page-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px clamp(20px, 4vw, 64px) 72px;
}
.page-about .site-footer { margin: auto 0 0; }
.page-about .about-section {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  overflow: visible;
}
.page-about .about-section::before { display: none; }
.page-about .about-inner { padding: 8px 0 0; }

.contact-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.contact-back {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border: 1px solid rgba(201, 169, 106, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  color: #c9a96a;
  transition: background .2s, border-color .2s;
}
.contact-back:hover { background: rgba(201, 169, 106, .1); border-color: rgba(201, 169, 106, .5); }
.contact-back svg { width: 17px; height: 17px; }
.contact-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
}
.contact-head p {
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(201, 169, 106, .55);
}

/* 諮詢表單使用說明 */
.contact-notice {
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  background: #0b0b0e;
  overflow: hidden;
}
.contact-notice-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: none;
  color: #e9e6e0;
  font-size: 13px;
}
.contact-notice-toggle:hover { background: rgba(255, 255, 255, .025); }
.cn-chev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}
.cn-chev svg { width: 12px; height: 12px; transition: transform .25s; transform: rotate(90deg); }
.contact-notice.is-open .cn-chev svg { transform: rotate(-90deg); }
.contact-notice-body {
  display: none;
  padding: 0 18px 16px;
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .5);
}
.contact-notice.is-open .contact-notice-body { display: block; }
.contact-notice-body h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
}
.contact-notice-body p { margin: 0 0 10px; }
.contact-notice-body ol {
  margin: 0 0 14px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.contact-notice-meta {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .35);
}

/* 客服回复查询 */
.contact-query {
  margin-bottom: 18px;
  padding: 18px 20px 20px;
}
.contact-query h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f2f0eb;
}
.cq-desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .45);
}
.cq-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.cq-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: #141418;
  color: #f2f0eb;
  font: inherit;
  font-size: 13px;
  letter-spacing: .5px;
  outline: none;
  transition: border-color .2s;
}
.cq-row input::placeholder { color: rgba(255, 255, 255, .28); letter-spacing: 0; }
.cq-row input:focus { border-color: rgba(201, 169, 106, .55); }
.cq-row button {
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--gold-grad, linear-gradient(135deg, #f4e5bf, #d3b678, #9c7c46));
  color: #241b08;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cq-row button:active { transform: scale(.98); }
.cq-result {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .72);
}
.cq-result[hidden] { display: none; }
.cq-code { font-size: 13px; color: #e9d5a6; }
.cq-code b { font-size: 15px; letter-spacing: 1px; }
.cq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cq-head b { font-size: 13px; color: #f2f0eb; }
.cq-head em {
  flex: none;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .65);
}
.cq-head em.is-new {
  color: #f5c26b;
  background: rgba(245, 158, 11, .14);
  border-color: rgba(245, 158, 11, .38);
}
.cq-head em.is-processing {
  color: #7dd3fc;
  background: rgba(56, 189, 248, .14);
  border-color: rgba(56, 189, 248, .38);
}
.cq-head em.is-resolved {
  color: #86efac;
  background: rgba(16, 185, 129, .14);
  border-color: rgba(16, 185, 129, .38);
}
.cq-msg { margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; }
.cq-tip { margin: 8px 0 0; color: rgba(255, 255, 255, .45); }
.cq-time { margin: 8px 0 0; font-size: 11px; color: rgba(255, 255, 255, .35); }

/* 表單 + 商務合作 */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}
.contact-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: #0b0b0e;
}
.contact-form { padding: 22px 24px 24px; }
.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.cf-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .66);
}
.cf-field > span i {
  margin-left: 2px;
  color: #ff3b5c;
  font-style: normal;
}
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: #141418;
  color: #f2f0eb;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: rgba(255, 255, 255, .28); }
.cf-field input:focus,
.cf-field textarea:focus {
  border-color: rgba(255, 59, 92, .55);
  background: #17171c;
}
.cf-field textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.cf-full { grid-column: 1 / -1; }

.cf-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 18px;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .5);
  cursor: pointer;
}
.cf-agree input { margin-top: 2px; accent-color: #2ecc71; }
.cf-agree a { color: #5fd08a; text-decoration: none; }
.cf-agree a:hover { text-decoration: underline; }

.contact-submit {
  padding: 11px 36px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(90deg, #ff4d6d, #a855f7);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 10px 24px rgba(168, 85, 247, .25);
  transition: transform .18s, box-shadow .2s;
}
.contact-submit:hover { box-shadow: 0 12px 30px rgba(168, 85, 247, .38); }
.contact-submit:active { transform: scale(.98); }

.contact-coop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px;
  text-align: center;
}
.contact-coop h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #efece5;
}
.coop-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}
.coop-links a {
  padding: 7px 10px;
  border-radius: 7px;
  background: #1b1b1e;
  color: #c9c9cd;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.coop-links a:hover { background: #242428; color: #f0ede6; }
.coop-links-alt { gap: 10px 14px; font-size: 12px; }
.coop-links-alt a {
  padding: 0;
  border-radius: 0;
  background: none;
  color: #c9a96a;
}
.coop-links-alt a:hover { background: none; color: #f4e5bf; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-coop { padding: 22px 20px; }
}
@media (max-width: 620px) {
  .contact-wrap { padding: 24px 16px 48px; }
  .cf-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 18px 16px 20px; }
  .contact-head h1 { font-size: 22px; }
  .contact-head p { letter-spacing: 1px; }
}

/* ============ 現正熱映 / 最新上線專欄頁（modules/Now showing · Newly Released） ============ */
.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%),
    linear-gradient(180deg, #0c0c0e 0%, #0a0a0c 40%, #0b0b0d 100%);
  color: var(--ink);
}
.ns-wrap {
  max-width: none;
  margin: 0 auto;
  padding: 28px clamp(24px, 3vw, 64px) 80px;
}
.ns-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 12px;
  color: var(--muted);
}
.ns-crumb-home {
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  color: var(--muted);
  transition: color .2s;
}
.ns-crumb-home:hover { color: var(--brand-2); }
.ns-crumb-sep { color: rgba(201, 169, 106, .4); }
.ns-crumb-cur { color: #c9a96a; }
.ns-hero h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1px;
  color: var(--ink);
}
.ns-emoji {
  margin-right: 10px;
  font-size: .8em;
  vertical-align: 3px;
}
.ns-eyebrow {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(201, 169, 106, .6);
  text-transform: uppercase;
}
.ns-intro {
  max-width: 1020px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}
.ns-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 28px 0 26px;
}
.ns-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ns-chip {
  padding: 9px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--ink-2);
  transition: color .2s, border-color .2s, background .2s;
}
.ns-chip:hover { border-color: rgba(201, 169, 106, .45); color: var(--brand-2); }
.ns-chip.is-on {
  background: var(--gold-grad);
  border-color: transparent;
  color: #241b08;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(201, 169, 106, .22);
}
.ns-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.ns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 18px;
}
.ns-grid .drama-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(249, 236, 192, .05);
}
/* 網格中間插入的整行圖片廣告 */
.ns-grid > .home-image-ads {
  grid-column: 1 / -1;
  margin: 0;
}
.page-now-showing .site-footer,
.page-newly-released .site-footer { margin-top: 0; }

/* 專欄頁分頁 */
.ns-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 38px;
}
.ns-pager:empty { display: none; }
.ns-wrap > .home-image-ads { margin: 36px 0 0; }
.ns-page-nums { display: flex; gap: 8px; }
.ns-page-btn,
.ns-page-num {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: var(--ink-2);
  font-size: 13px;
  transition: color .2s, border-color .2s, background .2s;
}
.ns-page-btn:hover:not(:disabled),
.ns-page-num:hover { border-color: rgba(201, 169, 106, .45); color: var(--brand-2); }
.ns-page-num.is-on {
  background: var(--gold-grad);
  border-color: transparent;
  color: #241b08;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(201, 169, 106, .22);
}
.ns-page-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 900px) {
  .ns-pager { margin-top: 26px; gap: 6px; }
  .ns-page-nums { gap: 6px; }
  .ns-page-btn, .ns-page-num { min-width: 36px; height: 36px; padding: 0 10px; font-size: 12.5px; }
}

/* 純圖片廣告位（兩欄大圖） */
.home-image-ads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.home-image-ad {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #181611;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(249, 236, 192, .05);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.home-image-ad:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 169, 106, .4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(249, 236, 192, .05);
}
.home-image-ad:active { transform: scale(.985); }
.home-image-ad img {
  display: block;
  width: 100%;
  aspect-ratio: 416 / 119;
  object-fit: cover;
  background: #181611;
  transition: transform .35s;
}
.home-image-ad:hover img { transform: scale(1.04); }
.home-image-ad-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 7px;
  border: 1px solid rgba(201, 169, 106, .35);
  border-radius: 4px;
  background: rgba(11, 11, 16, .62);
  color: var(--brand-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  backdrop-filter: blur(4px);
}
.home-image-ad-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #241b08;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
}
.home-image-ad-cta svg { width: 13px; height: 13px; }
.home-image-ad:hover .home-image-ad-cta { opacity: 1; transform: none; }

/* 通欄橫幅廣告（圖片廣告位下方） */
.home-banner-ad {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #181611;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(249, 236, 192, .05);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.home-banner-ad:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 169, 106, .4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(249, 236, 192, .05);
}
.home-banner-ad:active { transform: scale(.99); }
.home-banner-ad > img {
  display: block;
  width: 100%;
  aspect-ratio: 1180 / 300;
  object-fit: cover;
  transition: transform .35s;
}
.home-banner-ad:hover > img { transform: scale(1.03); }
.home-banner-ad::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 12, .82), rgba(8, 8, 12, .35) 52%, rgba(8, 8, 12, 0) 78%);
  pointer-events: none;
}
.home-banner-ad-info {
  position: absolute;
  top: 50%;
  left: 26px;
  right: 160px;
  z-index: 1;
  transform: translateY(-50%);
}
.home-banner-ad-chip {
  display: inline-flex;
  padding: 2px 7px;
  border: 1px solid rgba(201, 169, 106, .35);
  border-radius: 4px;
  background: rgba(11, 11, 16, .62);
  color: var(--brand-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
.home-banner-ad-info h3 {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  color: #f6f2e8;
}
.home-banner-ad-info p {
  margin-top: 6px;
  font-size: 13.5px;
  color: rgba(246, 242, 232, .75);
}
.home-banner-ad-cta {
  position: absolute;
  top: 50%;
  right: 26px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #241b08;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transform: translateY(-50%);
}
.home-banner-ad-cta svg { width: 14px; height: 14px; }
/* 首頁底部通欄橫幅（全寬） */
.home-banner-ad-bottom { margin: 36px 0 0; }
.home-banner-ad-bottom > img { aspect-ratio: 1520 / 360; }
@media (max-width: 1400px) {
  .home-banner-ad-info { left: 20px; right: 130px; }
  .home-banner-ad-info h3 { font-size: 19px; }
  .home-banner-ad-info p { font-size: 12.5px; }
  .home-banner-ad-cta { right: 20px; padding: 8px 16px; font-size: 12.5px; }
}
@media (max-width: 820px) {
  .home-banner-ad { margin-bottom: 22px; }
  .home-banner-ad > img { aspect-ratio: 16 / 7; }
  .home-banner-ad-info { right: 118px; }
  .home-banner-ad-info h3 { font-size: 16px; }
  .home-banner-ad-info p { display: none; }
  .home-banner-ad-cta { padding: 7px 12px; font-size: 12px; }
}

@media (max-width: 820px) {
  .home-image-ads { grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
  .home-image-ad img { aspect-ratio: 16 / 7; }
  .home-image-ad-cta { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .ns-wrap { padding: 20px 16px 56px; }
  .ns-crumb { margin-bottom: 22px; }
  .ns-hero h1 { font-size: 26px; }
  .ns-intro { font-size: 13px; }
  .ns-count { margin-left: 0; width: 100%; }
  .ns-grid { grid-template-columns: 1fr; }
}

/* ---------- 在線客服（實時對話） ---------- */
.support-panel {
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  height: min(560px, 82vh);
  overflow: hidden;
  border: 1px solid var(--line, rgba(201, 169, 106, .16));
  border-radius: 20px;
  background: linear-gradient(180deg, #1a1815, #121110);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .55);
  transform: translateY(14px) scale(.97);
  transition: transform .28s cubic-bezier(.22, 1.2, .36, 1);
}
.auth-mask.show .support-panel { transform: none; }

.support-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line, rgba(201, 169, 106, .16));
  background: linear-gradient(180deg, rgba(201, 169, 106, .07), transparent);
}
.support-agent {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #241d0e;
  box-shadow: 0 6px 18px rgba(201, 169, 106, .22);
}
.support-agent svg { width: 21px; height: 21px; }
.support-agent-info { min-width: 0; }
.support-agent-info h3 { font-size: 14.5px; font-weight: 700; color: var(--ink, #ece7db); letter-spacing: .5px; }
.support-agent-info p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted, #7d7462);
}
.support-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 7px rgba(53, 208, 127, .8);
}
.support-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid var(--line, rgba(201, 169, 106, .16));
  border-radius: 50%;
  background: #171512;
  color: var(--ink-2, #b9ae97);
}
.support-close svg { width: 14px; height: 14px; }

.support-list {
  flex: 1;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  background: #0f0e0c;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 106, .22) transparent;
}
.support-list::-webkit-scrollbar { width: 5px; }
.support-list::-webkit-scrollbar-track { background: transparent; }
.support-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(201, 169, 106, .22);
}
.support-list::-webkit-scrollbar-thumb:hover { background: rgba(201, 169, 106, .38); }
.support-tip {
  margin: 6px 8px;
  padding: 10px 12px;
  border: 1px dashed rgba(201, 169, 106, .2);
  border-radius: 12px;
  background: rgba(201, 169, 106, .04);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted, #7d7462);
  text-align: center;
}
.support-msg {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}
.support-msg.is-group-start { margin-top: 12px; }
.support-list > .support-msg:first-child,
.support-day + .support-msg { margin-top: 0; }
.support-msg.is-user { align-items: flex-end; }
.support-msg.is-staff { align-items: flex-start; }
.support-bubble {
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  word-break: break-word;
  white-space: normal;
}
.support-msg.is-user .support-bubble {
  border-bottom-right-radius: 5px;
  background: var(--gold-grad);
  color: #241d0e;
  box-shadow: 0 6px 18px rgba(201, 169, 106, .18);
}
.support-msg.is-staff .support-bubble {
  border: 1px solid rgba(201, 169, 106, .18);
  border-bottom-left-radius: 5px;
  background: #171512;
  color: var(--ink, #ece7db);
}
.support-time {
  margin-top: 4px;
  padding: 0 4px;
  font-size: 10px;
  color: #6b6455;
}
.support-read {
  margin-left: 6px;
  font-style: normal;
  color: #6b6455;
}
.support-read.is-read { color: rgba(201, 169, 106, .9); }

@keyframes supportMsgIn {
  from {
    opacity: 0;
    transform: translateY(7px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.support-msg-in { animation: supportMsgIn .24s cubic-bezier(.16, 1, .3, 1) both; }
.support-msg.is-pending .support-bubble { opacity: .62; transition: opacity .2s ease; }

.support-day {
  display: flex;
  justify-content: center;
  margin: 8px 0 10px;
}
.support-day span {
  padding: 2px 10px;
  border: 1px solid rgba(201, 169, 106, .16);
  border-radius: 999px;
  background: rgba(201, 169, 106, .06);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .3px;
  color: #8b8170;
}

@media (prefers-reduced-motion: reduce) {
  .support-msg-in { animation: none; }
}

.support-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line, rgba(201, 169, 106, .16));
  background: #141210;
}
.support-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(201, 169, 106, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink, #ece7db);
  font-size: 12.5px;
  outline: none;
}
.support-form input:focus { border-color: rgba(201, 169, 106, .55); }
.support-form input::placeholder { color: #7d7462; }
.support-form button {
  height: 38px;
  padding: 0 18px;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  background: var(--gold-grad);
  color: #241d0e;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(201, 169, 106, .18);
}
.support-form button:disabled { opacity: .55; }
.support-form .support-image-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 169, 106, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--gold, #c9a96a);
  box-shadow: none;
}
.support-form .support-image-btn:hover { border-color: rgba(201, 169, 106, .5); }
.support-form .support-image-btn svg { width: 17px; height: 17px; }
.support-form .support-image-btn:disabled { opacity: .5; }
.support-bubble.is-image { padding: 4px; }
.support-image {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 190px;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
}
.support-image-preview {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(4px);
}
.support-image-preview.show { display: flex; }
.support-image-preview img {
  max-width: min(80vw, 900px);
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  cursor: zoom-out;
}

@media (max-width: 520px) {
  .auth-mask { padding: 18px; }
  .support-panel { width: 100%; height: min(600px, 86vh); border-radius: 18px; }
  .support-bubble { max-width: 86%; }
}

/* ============ 「我的」頁面優化 ============ */
/* 移動端：雙列容器退化為單列流式佈局，保持原有排版 */
.mine-layout { display: block; }
.mine-main, .mine-side { display: contents; }

/* 創作者狀態卡：黑金質感（金色漸變描邊 + 內高光） */
.creator-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(201, 169, 106, .18), transparent 55%),
    linear-gradient(135deg, #14110b 0%, #0a0908 55%, #100e09 100%);
  border: 1px solid rgba(201, 169, 106, .16);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(249, 236, 192, .07);
  transition: box-shadow .2s ease;
}
/* 1px 金色漸變描邊 */
.creator-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(249, 236, 192, .55), rgba(201, 169, 106, .08) 42%, rgba(201, 169, 106, .45) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.creator-card:hover {
  box-shadow:
    0 20px 42px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(201, 169, 106, .22),
    inset 0 1px 0 rgba(249, 236, 192, .1);
}
.creator-card-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f9ecc0, #c9a96a 48%, #8f7340);
  border: 1px solid rgba(255, 245, 214, .55);
  color: #21180a;
  box-shadow: 0 8px 18px rgba(201, 169, 106, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.creator-card-ico svg { width: 21px; height: 21px; }
.creator-card-info h4 { color: #f3ead8; letter-spacing: .4px; }
.creator-card-info p { color: rgba(236, 231, 219, .5); }
.creator-card-btn {
  background: var(--gold-grad);
  color: #241d0e;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 6px 16px rgba(201, 169, 106, .2);
}
.creator-approved {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(201, 169, 106, .2), transparent 55%),
    radial-gradient(90% 130% at 100% 100%, rgba(180, 130, 40, .12), transparent 60%),
    linear-gradient(135deg, #15120c 0%, #0a0908 55%, #12100a 100%);
}
.creator-approved .creator-card-info h4 {
  background: linear-gradient(90deg, #fff7de, #efd39a 50%, #fdf1cb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}
.creator-approved .creator-card-btn {
  position: relative;
  overflow: hidden;
  padding: 8px 18px;
  background: linear-gradient(135deg, #f9ecc0 0%, #d4af37 45%, #b8860b 100%);
  border: 1px solid rgba(255, 246, 218, .5);
  color: #1d1607;
  font-weight: 800;
  letter-spacing: .6px;
  box-shadow: 0 8px 20px rgba(201, 169, 106, .3), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.creator-approved .creator-card-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(201, 169, 106, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
}
/* 按鈕流光 */
.creator-approved .creator-card-btn::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -75%;
  width: 46%;
  height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: rotate(18deg);
  transition: left .5s ease;
}
.creator-approved .creator-card-btn:hover::after { left: 120%; }
.creator-pending {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(245, 158, 11, .16), transparent 55%),
    linear-gradient(135deg, #14110a 0%, #0a0908 60%, #100e09 100%);
}
.creator-pending .creator-card-ico {
  background: linear-gradient(145deg, #f7e2ae, #f0b429 50%, #a8730a);
  color: #2a1c02;
}
.creator-pending .creator-card-info h4 { color: #f7e6bf; }
.creator-rejected {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(239, 68, 68, .16), transparent 55%),
    linear-gradient(135deg, #150d0d 0%, #0a0908 60%, #100a0a 100%);
}
.creator-rejected .creator-card-ico {
  background: linear-gradient(145deg, #ffc9c9, #ef4444 50%, #a11a1a);
  color: #2a0606;
}
.creator-rejected .creator-card-info h4 { color: #ffd9d9; }

@media (prefers-reduced-motion: reduce) {
  .creator-card,
  .creator-approved .creator-card-btn { transition: none; }
  .creator-approved .creator-card-btn::after { display: none; }
}

.creator-badge {
  background: rgba(201, 169, 106, .12);
  border: 1px solid rgba(201, 169, 106, .4);
  color: #ecd9ae;
}

@media (min-width: 820px) {
  /* 桌面端：主內容 + 右側操作欄 */
  .mine-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    max-width: 1320px;
    margin: 0 auto;
  }
  .mine-main { display: block; min-width: 0; }
  .mine-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
  }

  /* 資料卡：統計位改為等寬四宮格，撐滿卡片 */
  .mine-head { margin-top: 18px; padding: 30px 32px 28px; }
  .mine-user img { width: 66px; height: 66px; }
  .mine-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: none;
    margin-top: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .mine-stats > * {
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid rgba(201, 169, 106, .18);
    border-radius: 14px;
    background: rgba(201, 169, 106, .05);
    transition: border-color .18s ease, background .18s ease;
  }
  .mine-stats > * + * { border-left: 1px solid rgba(201, 169, 106, .18); }
  .mine-stats > *:hover { border-color: rgba(201, 169, 106, .38); background: rgba(201, 169, 106, .09); }
  .mine-stats b { font-size: 24px; line-height: 1.15; }
  .mine-stats span { font-size: 11px; letter-spacing: 1.5px; }

  .mine-checkin-entry { margin: 16px 0 0; }
  .creator-card { margin: 16px 0 0; }
  .mine-sec { padding: 24px 0 0; }
  .mine-tabs { max-width: 460px; }
  .mine-menu { margin: 0; max-width: none; }
  .mine-ad { margin: 0; }
  .mine-ad > img { width: 84px; height: 58px; }

  /* 空狀態：居中留白，避免單行虛線過窄 */
  .mine-empty-cta {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 42px 20px;
    border-radius: 16px;
    font-size: 13px;
    text-align: center;
  }
  .mine-empty-cta > svg { width: 26px; height: 26px; }
  .mine-empty-cta .mec-arrow { display: none; }
  .mine-tab-panel { padding-top: 16px; }
}

/* ============ 意見反饋處理進度 ============ */
.menu-fb-tag {
  flex: none;
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
}
.menu-fb-tag + .chev { margin-left: 8px; }
.menu-fb-tag.is-new,
.fb-tag.is-new {
  color: #f5c26b;
  background: rgba(245, 158, 11, .12);
  border-color: rgba(245, 158, 11, .32);
}
.menu-fb-tag.is-processing,
.fb-tag.is-processing {
  color: #7dd3fc;
  background: rgba(56, 189, 248, .12);
  border-color: rgba(56, 189, 248, .32);
}
.menu-fb-tag.is-resolved,
.fb-tag.is-resolved {
  color: #86efac;
  background: rgba(16, 185, 129, .12);
  border-color: rgba(16, 185, 129, .32);
}

.fb-progress {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(201, 169, 106, .2);
  border-radius: 12px;
  background: rgba(201, 169, 106, .05);
  text-align: left;
}
.fb-progress[hidden] { display: none; }
.fb-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.fb-progress-head em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .3px;
}
.fb-progress-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 188px;
  margin-top: 10px;
  overflow-y: auto;
}
.fb-progress-list::-webkit-scrollbar { width: 4px; }
.fb-progress-list::-webkit-scrollbar-thumb { background: rgba(201, 169, 106, .25); border-radius: 4px; }
.fb-item {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 9px;
  background: rgba(0, 0, 0, .26);
}
.fb-item-top { display: flex; align-items: center; gap: 8px; }
.fb-subject {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fb-tag {
  flex: none;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
}
.fb-time {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--muted);
}
.fb-reply {
  margin-top: 7px;
  padding: 7px 9px;
  border-left: 2px solid rgba(201, 169, 106, .5);
  border-radius: 0 6px 6px 0;
  background: rgba(201, 169, 106, .08);
}
.fb-reply b {
  display: block;
  font-size: 10px;
  letter-spacing: .5px;
  color: #e9d5a6;
}
.fb-reply span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-2);
  word-break: break-word;
}




/* ============ 短影片（豎屏沉浸式刷新） ============ */
#screen-short { background: #000; }
#shortBody {
  position: relative;
  padding: 0;
  height: 100%;
  background: #000;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.sv-feed-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.sv-feed-head strong { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.sv-feed-head span { font-size: 12px; color: rgba(255, 255, 255, .64); }
.sv-feed-tip {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 320px;
  padding: 0 24px;
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  text-align: center;
}

.sv-feed { height: 100%; }
.sv-slide {
  display: grid;
  place-items: center;
  height: 100%;
  background: #000;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.sv-stage {
  position: relative;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}
.sv-slide-video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.sv-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .8) 100%);
  pointer-events: none;
}
.sv-slide-top { position: absolute; top: 12px; left: 14px; z-index: 4; }
.sv-slide-count {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  backdrop-filter: blur(6px);
}
.sv-sound {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.sv-sound svg { width: 17px; height: 17px; }
.sv-sound:active { transform: scale(.94); }
.sv-side {
  position: absolute;
  right: 12px;
  bottom: 110px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.sv-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a96a, #8c764a);
  color: #17120a;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.sv-avatar:hover {
  transform: scale(1.06);
}
.sv-author-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.sv-author-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sv-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.sv-act-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(0, 0, 0, .34);
  backdrop-filter: blur(8px);
  transition: transform .15s, background .2s, border-color .2s;
}
.sv-act-ico svg { width: 22px; height: 22px; }
.sv-act-num {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.sv-act:active .sv-act-ico { transform: scale(.9); }
.sv-act.is-on { color: #ff5470; }
.sv-act.is-on .sv-act-ico {
  background: rgba(255, 46, 77, .22);
  border-color: rgba(255, 100, 128, .55);
  color: #ff5470;
}
.sv-act.is-on .sv-act-ico svg { fill: currentColor; }
.sv-act:disabled { opacity: .6; }

/* ============ 短影片獨立頁（short.html） ============ */
.short-page-body { background: #000; }
.short-page {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}
.short-page .light-scroll {
  height: 100%;
  padding-bottom: 0;
}
.short-page .sheet-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.short-page .auth-mask { position: fixed; }
.sp-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.sp-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(0, 0, 0, .36);
  color: #fff;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.sp-btn svg { width: 18px; height: 18px; }
.sp-btn:active { transform: scale(.93); }
.sp-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
}
.sp-brand span {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, .6);
}
.short-page #shortBody { height: 100%; }

@media (min-width: 820px) {
  .short-page #shortBody { height: 100dvh; }
}
.sv-caption { position: absolute; left: 16px; right: 76px; bottom: 26px; z-index: 4; color: #fff; }
.sv-caption h3 { font-size: 13px; font-weight: 700; color: #f3e6c8; }
.sv-caption-title { margin-top: 6px; font-size: 15px; font-weight: 700; line-height: 1.45; }
.sv-caption-desc {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: rgba(255, 255, 255, .82);
  font-size: 12.5px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sv-caption-meta { margin-top: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.sv-caption-tags { margin-top: 8px; color: #c9a96a; font-size: 12px; word-break: break-all; }
.sv-pause-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: none;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.sv-pause-hint svg { width: 26px; height: 26px; margin-left: 4px; }
.sv-slide.is-paused .sv-pause-hint { display: grid; }

@media (min-width: 820px) {
  #shortBody {
    height: calc(100dvh - 64px);
    overflow-y: auto;
  }
}

/* ============ 頁面骨架屏：首頁 / 劇場 / 我的 / 短影片 ============ */
.page-skeleton {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow: auto;
  overscroll-behavior: contain;
  background: #0b0b10;
  opacity: 1;
  transition: opacity .22s ease;
}
.page-skeleton.is-leaving { opacity: 0; pointer-events: none; }
.short-page .page-skeleton { z-index: 10; }
.sk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.page-skeleton :is(.sk-hero, .sk-line, .sk-chip, .sk-poster, .sk-avatar,
  .sk-circle, .sk-notice, .sk-stat, .sk-panel, .sk-short-stage) {
  position: relative;
  overflow: hidden;
  background: rgba(201, 169, 106, .10);
}
.page-skeleton :is(.sk-hero, .sk-line, .sk-chip, .sk-poster, .sk-avatar,
  .sk-circle, .sk-notice, .sk-stat, .sk-panel, .sk-short-stage)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(249, 236, 192, .12) 48%, transparent 76%);
  animation: skShimmer 1.35s ease-in-out infinite;
}
@keyframes skShimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.sk-shell { max-width: 1400px; margin: 0 auto; padding: 30px 26px; }
.sk-line { display: block; width: 100%; height: 12px; border-radius: 999px; }
.sk-line + .sk-line { margin-top: 11px; }
.sk-line-lg { height: 22px; }
.sk-w-20 { width: 20%; }
.sk-w-30 { width: 30%; }
.sk-w-40 { width: 40%; }
.sk-w-45 { width: 45%; }
.sk-w-55 { width: 55%; }
.sk-w-70 { width: 70%; }
.sk-hero { height: 330px; margin: 24px; border-radius: 22px; }
.sk-hero-copy { position: absolute; left: 34px; right: 34px; bottom: 36px; z-index: 1; }
.sk-feed-after { padding: 0 24px 28px; }
.sk-notice { height: 44px; border-radius: 999px; }
.sk-chip-row { display: flex; gap: 10px; margin-top: 18px; overflow: hidden; }
.sk-chip { display: block; flex: none; width: 82px; height: 34px; border-radius: 999px; }
.sk-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.sk-card { min-width: 0; }
.sk-poster { aspect-ratio: 3 / 4; border-radius: 14px; }
.sk-card .sk-line { margin-top: 12px; }
.sk-card .sk-line + .sk-line { margin-top: 8px; }
.sk-profile { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid rgba(201, 169, 106, .08); border-radius: 20px; }
.sk-avatar { flex: none; width: 76px; height: 76px; border-radius: 50%; }
.sk-profile-copy { flex: 1; }
.sk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.sk-stat { height: 76px; border-radius: 16px; }
.sk-panel { margin-top: 20px; padding: 24px; border-radius: 18px; }
.sk-list { margin-top: 20px; }
.sk-list-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(201, 169, 106, .07); }
.sk-circle { display: block; flex: none; width: 42px; height: 42px; border-radius: 50%; }
.sk-list-row .sk-line { max-width: 420px; }
.sk-mobile-rail { display: none; }
.sk-short-stage { position: absolute; inset: 0; background: #0d0d12; }
.sk-short-copy { position: absolute; left: 18px; right: 82px; bottom: 34px; z-index: 1; }
.sk-short-rail { position: absolute; right: 15px; bottom: 104px; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.sk-short-rail .sk-circle { width: 44px; height: 44px; }

@media (max-width: 819px) {
  .sk-shell { padding: 22px 16px; }
  .page-skeleton-feed .sk-hero { position: absolute; inset: 0; height: auto; margin: 0; border-radius: 0; }
  .page-skeleton-feed .sk-hero-copy { left: 18px; right: 82px; bottom: 112px; }
  .sk-feed-after { display: none; }
  .sk-mobile-rail { position: absolute; right: 14px; bottom: 142px; display: flex; flex-direction: column; gap: 18px; }
  .sk-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .sk-card-grid .sk-card:nth-child(n+7) { display: none; }
  .sk-poster { border-radius: 10px; }
  .sk-profile { padding: 18px; }
  .sk-avatar { width: 62px; height: 62px; }
  .sk-stats { gap: 9px; }
  .sk-stat { height: 66px; }
}

/* ============ 用戶主頁（user.html） ============ */
.user-page-body {
  margin: 0;
  background: #0b0b0c;
  color: #f3e6c8;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.user-page {
  position: relative;
  min-height: 100dvh;
  background: linear-gradient(180deg, #0f0f14 0%, #0b0b0f 30%, #08080c 100%);
  padding-bottom: 40px;
}

/* ============ 用戶主頁 ============ */
.user-page { padding-bottom: 40px; }

.up-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 12px;
  background: rgba(11, 11, 14, .72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}
.up-back, .up-home {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.up-back svg, .up-home svg { width: 18px; height: 18px; }
.up-back:hover, .up-home:hover { background: rgba(255, 255, 255, .12); }
.up-back:active, .up-home:active { transform: scale(.92); }
.up-title { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: .3px; }

/* 頭像和資料 */
.up-profile { padding: 20px 20px 0; }
.up-profile-inner { display: flex; align-items: center; gap: 18px; }

.up-avatar {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff4d6d, #ff7a3d);
  border: 3px solid transparent;
  background-clip: padding-box;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .08),
    0 10px 28px rgba(0, 0, 0, .45);
}
.up-avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 77, 109, .6), rgba(255, 122, 61, .6), rgba(255, 255, 255, .3));
  z-index: -1;
  opacity: .7;
  filter: blur(1px);
}
.up-avatar.has-img {
  background-size: cover;
  background-position: center;
}

.up-info { min-width: 0; flex: 1; }
.up-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.up-name {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .3px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.up-creator-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 169, 106, .25), rgba(201, 169, 106, .06));
  border: 1px solid rgba(201, 169, 106, .45);
  color: #f0d9a4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  box-shadow: 0 2px 8px rgba(201, 169, 106, .15);
}
.up-creator-badge::before {
  content: '✦';
  font-size: 9px;
}
.up-banned {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(220, 60, 60, .18);
  border: 1px solid rgba(220, 60, 60, .45);
  color: #ff8888;
  font-size: 11px;
  font-weight: 600;
}
.up-uid {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .3px;
  font-family: -apple-system, "SF Mono", "JetBrains Mono", monospace;
}

/* 統計數據卡片 */
.up-stats {
  display: flex;
  margin-top: 22px;
  padding: 16px 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.up-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
}
.up-stat + .up-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .15), transparent);
}
.up-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .3px;
  font-variant-numeric: tabular-nums;
}
.up-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .5px;
}

/* Tab 切換 */
.up-tabs {
  display: flex;
  gap: 32px;
  margin: 24px 20px 0;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.up-tab {
  padding: 8px 4px;
  color: rgba(255, 255, 255, .45);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  transition: color .2s;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.up-tab-num {
  font-size: 12px;
  font-weight: 500;
  opacity: .75;
  font-variant-numeric: tabular-nums;
}
.up-tab.is-active {
  color: #fff;
  font-weight: 700;
}
.up-tab.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff4d6d, #ff7a3d);
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(255, 77, 109, .5);
}

/* 作品網格 */
.up-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px 6px;
}
.up-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #1a1a1e, #121215);
  aspect-ratio: 9 / 14;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  transition: transform .2s ease;
}
.up-card:active { transform: scale(.97); }
.up-card-cover {
  position: absolute;
  inset: 0;
  background: #1a1a1e center/cover no-repeat;
}
.up-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, .08) 0%,
    transparent 35%,
    transparent 60%,
    rgba(0, 0, 0, .65) 100%
  );
}
.up-card-dur {
  position: absolute;
  right: 5px;
  bottom: 24px;
  z-index: 3;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, .7);
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  letter-spacing: .3px;
}
.up-card-play {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  transition: background .2s;
}
.up-card-play::before {
  content: '';
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #fff;
  margin-left: 2px;
}
.up-card-meta {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.up-card-title {
  font-size: 11px;
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.up-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  color: #ffe1a8;
  background: linear-gradient(135deg, rgba(201, 169, 106, .9), rgba(160, 120, 60, .9));
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.up-card-count {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: rgba(255, 255, 255, .9);
  flex-shrink: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.up-card-count svg { width: 11px; height: 11px; }

.up-loading, .up-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, .35);
  font-size: 14px;
}

@media (min-width: 820px) {
  .user-page { max-width: 680px; margin: 0 auto; padding: 0 20px; }
  .up-grid { gap: 8px; padding: 10px; }
  .up-card { border-radius: 10px; }
}

/* ============ 詳情頁作者欄（點擊進入用戶主頁） ============ */
.dd-author:empty { display: none; }
.dd-author-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(201, 169, 106, .06);
  border: 1px solid rgba(201, 169, 106, .18);
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .15s;
}
.dd-author-card:hover {
  background: rgba(201, 169, 106, .12);
  border-color: rgba(201, 169, 106, .38);
}
.dd-author-card:active { transform: scale(.985); }
.dd-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 800;
  color: #241d0e;
  background: linear-gradient(135deg, #ecd9ae, #c9a96a 60%, #9c7c46);
  box-shadow: 0 0 0 2px rgba(201, 169, 106, .25);
  overflow: hidden;
}
.dd-author-avatar.has-img {
  background-size: cover;
  background-position: center;
}
.dd-author-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dd-author-info b {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #f3e6c8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-author-info i {
  font-style: normal;
  font-size: 12px;
  color: var(--muted, #8b8168);
}
.dd-author-more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-2, #ecd9ae);
}
.dd-author-more svg { width: 15px; height: 15px; }

/* ============ 搜尋面板：黑金熱搜榜 ============ */
.dh-search-slot { display: none; }
.page-search {
  --search-head-height: 66px;
  overflow: hidden;
  justify-content: flex-start;
  padding: 0 14px;
  background: rgba(5, 5, 6, .68);
  backdrop-filter: blur(4px);
  color: #f2eee6;
  transform: translateY(100%);
}
.search-head {
  flex: none;
  width: 100%;
  max-width: 1100px;
  height: var(--search-head-height);
  margin: 0 auto;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  justify-content: flex-end;
}
.search-box {
  flex: 0 1 340px;
  width: min(340px, 100%);
  height: 42px;
  margin-left: auto;
  padding: 0 7px 0 16px;
  gap: 7px;
  border: 1px solid rgba(201, 169, 106, .72);
  border-radius: 999px;
  background: #171715;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, .035);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within {
  border-color: #d8ba7c;
  box-shadow: 0 0 0 3px rgba(201, 169, 106, .10);
}
.search-box input {
  width: 100%;
  color: #f1ede5;
  font-size: 13px;
}
.search-box input::placeholder { color: #8f897d; opacity: 1; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-submit {
  flex: none;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c9b683;
}
.search-submit svg { width: 18px; height: 18px; }
.search-clear {
  align-self: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: rgba(255, 255, 255, .12);
  color: #c8c1b4;
}
.search-clear.show { display: grid; place-items: center; }
.search-panel {
  position: relative;
  flex: 0 0 50dvh;
  min-height: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .025);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #1d1c1a;
  box-shadow: 0 -12px 42px rgba(0, 0, 0, .20);
}
.search-cancel {
  position: absolute;
  top: 24px;
  right: 26px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 50%;
  background: #272623;
  color: #c7c2b8;
  transition: color .18s, border-color .18s, background .18s;
}
.search-cancel:hover { color: #f4e5bf; border-color: rgba(201, 169, 106, .45); background: #302d27; }
.search-cancel svg { width: 14px; height: 14px; }
.search-body {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 28px 30px calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: transparent;
  color: #f2eee6;
}
.search-sec { padding: 0; }
.search-sec-head {
  min-height: 30px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-sec-head h3, .search-sec > h3 {
  margin: 0;
  color: #f3f0e9;
  font-size: 17px;
  font-weight: 750;
  line-height: 30px;
  letter-spacing: .2px;
}
.search-history-sec {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.search-history-sec .search-sec-head { padding-right: 44px; }
.search-history-clear {
  padding: 6px 0 6px 10px;
  border: 0;
  background: none;
  color: #8d877c;
  font-size: 12px;
}
.search-history-clear:hover { color: #d8ba7c; }
.search-history-list { display: flex; flex-wrap: wrap; gap: 10px; }
.search-history-word {
  max-width: 100%;
  padding: 8px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .025);
  border-radius: 8px;
  background: #242321;
  color: #b7b0a3;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .18s, border-color .18s, background .18s;
}
.search-history-word:hover { color: #ecd9ae; border-color: rgba(201, 169, 106, .28); background: #2a2722; }
.search-section-empty { color: #736e64; font-size: 12px; }
.search-hot-sec {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.hot-rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.hot-rank-item {
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .02);
  border-radius: 9px;
  background: linear-gradient(100deg, #242321, #22211f);
  color: #e8e4dc;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
  transition: transform .18s, border-color .18s, background .18s;
}
.hot-rank-item:hover { transform: translateY(-1px); border-color: rgba(201, 169, 106, .16); background: #2b2925; }
.hot-rank-no {
  color: #d2b66f;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.hot-rank-word {
  overflow: hidden;
  color: #e8e4dc;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-rank-hits {
  color: #7f796e;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.search-rec-sec { padding-top: 24px; }
.search-list { display: grid; gap: 8px; }
.search-row {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: #eee9de;
  transition: border-color .18s, background .18s;
}
.search-row:hover { border-color: rgba(201, 169, 106, .18); background: #24221f; }
.search-row img { width: 52px; height: 68px; background: #111; }
.search-row h4 { color: #eee9de; font-size: 14px; }
.search-row p { color: #8e8678; }
.search-row .tags span {
  border: 1px solid rgba(201, 169, 106, .10);
  background: rgba(201, 169, 106, .07);
  color: #a99c84;
}
.play-mini {
  border: 1px solid rgba(201, 169, 106, .20);
  background: rgba(201, 169, 106, .10);
  color: #ecd9ae;
}
.page-search button:focus-visible { outline: 2px solid #d8ba7c; outline-offset: 3px; }

@media (min-width: 820px) {
  .dh-search-slot { display: block; flex: none; width: 380px; height: 42px; margin-left: auto; }
  .dh-search-slot .search-box { flex: 0 0 auto; width: 100%; height: 42px; margin: 0; }
  .page-search { padding: 0 28px; }
  .page-search .search-head { display: none; }
  .search-panel { border-radius: 26px 26px 0 0; }
  .search-body { padding: 32px 36px 40px; }
  .search-cancel { top: 28px; right: 32px; }
  .search-history-sec .search-sec-head { padding-right: 48px; }
  .search-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
}

@media (max-width: 560px) {
  .page-search { --search-head-height: 60px; padding: 0 10px; }
  .search-head { padding: 10px 0; }
  .search-box { flex: 1 1 auto; width: 100%; height: 40px; }
  .search-panel { border-radius: 20px 20px 0 0; }
  .search-body { padding: 20px 16px calc(26px + env(safe-area-inset-bottom, 0px)); }
  .search-cancel { top: 17px; right: 16px; }
  .search-history-sec .search-sec-head { padding-right: 38px; }
  .search-sec-head { margin-bottom: 14px; }
  .search-sec-head h3, .search-sec > h3 { font-size: 16px; }
  .hot-rank-list { gap: 8px; }
  .hot-rank-item { min-height: 42px; padding: 0 9px; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 6px; }
  .hot-rank-no { font-size: 14px; }
  .hot-rank-word { font-size: 12px; }
  .hot-rank-hits { font-size: 10px; }
}

@media (max-width: 360px) {
  .hot-rank-item { grid-template-columns: 14px minmax(0, 1fr); }
  .hot-rank-hits { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .search-box, .search-cancel, .search-history-word, .hot-rank-item, .search-row { transition: none; }
  .hot-rank-item:hover { transform: none; }
}


/* 詳情卡片改為真實連結：保留原樣式，僅移除連結默認外觀 */
a.dc-cover { display: block; }
a.dc-link,
a.dc-cover,
a.search-row,
a.rank-row,
a.rec-item,
a.hi-main,
a.hr-main {
  color: inherit;
  text-decoration: none;
}

