/* App extras on top of mock site.css */
.main { flex: 1; min-width: 0; padding: 22px 22px 48px; }
.notice-bar {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--notice-bg); border: 1px solid var(--notice-border);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 18px;
  font-size: .88rem; color: var(--ink-2);
}
/* 首頁／全站文字跑馬（關鍵樣式亦內嵌於 layout.php，防 CSS 未同步） */
.notice-marquee {
  display: flex; flex-direction: row; gap: 12px; align-items: center;
  background: var(--notice-bg); border: 1px solid var(--notice-border);
  border-radius: 14px; padding: 10px 14px; margin-bottom: 18px;
  font-size: .88rem; color: var(--ink-2);
  overflow: hidden;
}
.notice-marquee .n-tag { position: relative; z-index: 1; flex-shrink: 0; background: var(--notice-bg); }
.notice-marquee-viewport {
  flex: 1; min-width: 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.notice-marquee-track {
  display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 3.5rem;
  width: max-content;
  animation: aduo-notice-marquee 28s linear infinite;
  will-change: transform;
}
.notice-marquee:hover .notice-marquee-track { animation-play-state: paused; }
.notice-marquee-item {
  flex: 0 0 auto; white-space: nowrap; color: var(--ink);
}
.notice-marquee-item.rich-content p { margin: 0; display: inline; }
.notice-marquee-item.rich-content br { display: none; }
.notice-marquee-item a { color: var(--brand); }
.notice-marquee .notice-sep { opacity: .45; padding: 0 .15em; }
@keyframes aduo-notice-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .notice-marquee-track { animation: none; }
  .notice-marquee-viewport { mask-image: none; -webkit-mask-image: none; }
  .notice-marquee-item[aria-hidden="true"] { display: none; }
  .notice-marquee-item { white-space: normal; }
}
.n-tag {
  flex-shrink: 0; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: var(--brand); border: 1px solid var(--brand); border-radius: 999px; padding: 2px 10px;
}
.flash {
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .9rem;
  border: 1px solid var(--line);
}
.flash-ok { background: rgba(61,214,140,.12); border-color: rgba(61,214,140,.35); }
.flash-warn { background: rgba(245,165,36,.12); border-color: rgba(245,165,36,.35); }
.flash-err { background: rgba(230,0,126,.1); border-color: rgba(230,0,126,.35); }

.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: inherit;
  border-radius: 999px; padding: 6px 12px; font-size: .76rem;
}
html[data-theme="dark"] .lang-btn { border-color: rgba(255,255,255,.35); background: rgba(0,0,0,.15); }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 180px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; box-shadow: var(--panel-hover-shadow);
}
.lang-menu.open { display: block; }
.lang-menu a,
.lang-menu button.theme-opt {
  display: flex; justify-content: space-between; gap: 12px; width: 100%;
  padding: 8px 10px; border-radius: 8px; font-size: .82rem;
  border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.lang-menu a:hover, .lang-menu a.active,
.lang-menu button.theme-opt:hover, .lang-menu button.theme-opt.active { background: var(--brand-pale); color: var(--brand); }
.lang-menu .native { color: var(--ink-3); font-size: .72rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 10px 18px; font-size: .88rem; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-quiet { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: var(--brand); color: var(--brand); }

.hero {
  background: var(--hero-bg); border: 1px solid var(--line);
  border-radius: 22px; padding: 36px 28px; margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin: 0 0 10px; line-height: 1.25; font-weight: 800;
}
.hero h1.rich-content p,
.hero .hero-title.rich-content p { margin: 0; display: inline; }
.hero .sub-jp { color: var(--hero-sub); letter-spacing: .12em; font-size: .85rem; margin-bottom: 10px; }
.hero .hero-desc { color: var(--muted); max-width: 36rem; margin: 0 0 18px; }
.hero .hero-desc.rich-content p { margin: 0 0 .55em; }
.hero .hero-desc.rich-content p:last-child { margin-bottom: 0; }
.hero p { color: var(--muted); max-width: 36rem; margin: 0 0 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.shortcuts {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  margin-bottom: 36px;
}
.shortcut {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 10px; text-align: center; transition: .2s ease;
}
.shortcut:hover { transform: translateY(-2px); box-shadow: var(--panel-hover-shadow); border-color: var(--brand-2); }
.shortcut .s-ico { font-size: 1.1rem; margin-bottom: 6px; }
.shortcut span { font-size: .8rem; }

.section { margin-bottom: 42px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.section-head h2 {
  margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800;
}
.section-head .jp { color: var(--ink-3); font-size: .75rem; letter-spacing: .14em; margin-left: 10px; }
.section-head .more { font-size: .8rem; color: var(--ink-3); }
.section-head .more:hover { color: var(--brand); }

.card-grid, .event-grid, .creator-grid, .media-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: .2s ease;
}
.panel:hover { box-shadow: var(--panel-hover-shadow); transform: translateY(-2px); }
/* .thumb 基底樣式見 site.css；此處僅補齊比例與輔助 class */
.thumb.wide-ratio { aspect-ratio: 2500/1686; }
.thumb.has-img .ph { display: none; }

.rich-content { line-height: 1.75; }
.rich-content p { margin: 0 0 .75em; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content ul, .rich-content ol { margin: 0 0 .75em; padding-left: 1.25em; }
.rich-content img { max-width: 100%; height: auto; border-radius: 10px; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 1em 0 .4em; color: var(--brand); font-weight: 700; }
.rich-content a { color: var(--brand); text-decoration: underline; }
.notice-bar .rich-content p { margin: 0; display: inline; }
.panel-body { padding: 14px 16px 16px; }
.panel-body h3 { margin: 0 0 6px; font-size: .94rem; font-weight: 600; }
.meta { margin: 0; font-size: .78rem; color: var(--ink-3); }
.price { margin-top: 8px; color: var(--brand); font-size: .98rem; font-weight: 700; }
html[data-theme="dark"] .price { color: var(--brand-2); }
.chip {
  display: inline-block; margin-left: 8px; font-size: .68rem; color: var(--ink-2);
  background: var(--bg-soft); border-radius: 6px; padding: 2px 8px; border: 1px solid var(--line);
}

.adp {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 16px; text-align: center;
}
.adp .amount { font-family: var(--font-display); font-size: 1.3rem; }
.adp .amount small { font-size: .7rem; color: var(--ink-3); margin-left: 4px; }
.adp .yen { margin-top: 6px; color: var(--brand); font-size: .9rem; font-weight: 700; }
.adp .note { margin-top: 8px; font-size: .72rem; color: var(--ink-3); }

.form-card {
  max-width: 440px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px;
}
.form-card h1 { margin: 0 0 16px; font-size: 1.35rem; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: .82rem; margin-bottom: 6px; color: var(--ink-2); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; background: var(--bg); color: var(--text); font: inherit;
}
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.help-list details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px;
}
.help-list summary { cursor: pointer; font-weight: 600; }
.muted { color: var(--muted); font-size: .88rem; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--surface); }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
table.data th { background: var(--bg-soft); color: var(--brand); }

.phase-badge {
  display: inline-block; font-size: .7rem; padding: 2px 8px; border-radius: 6px;
  background: rgba(245,165,36,.15); color: #c47a00; margin-left: 8px;
}
html[data-theme="dark"] .phase-badge { color: #f5a524; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .sidebar {
    position: fixed; left: 0; top: var(--header-h); bottom: 0; z-index: 40;
    transform: translateX(-105%); width: min(280px, 86vw);
  }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 40px rgba(0,0,0,.2); }
  .theme-hint { display: none; }
  .main { padding: 16px 14px 40px; }
}

/* —— Banner 輪播（主題感知舞台 + 中置主圖） —— */
.home-banner-section {
  margin-bottom: 20px;
  max-width: 100%;
  overflow: hidden;
}
.home-banner-section .banner-carousel,
.banner-carousel {
  --banner-slide-w: 70%;
  --banner-gap: 14px;
  --banner-radius: 16px;
  --banner-side-fade: color-mix(in srgb, var(--bg) 88%, transparent);
  --banner-rail:
    radial-gradient(ellipse 80% 70% at 50% 40%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent 85%);
  --banner-slide-shadow: 0 18px 40px rgba(43, 36, 41, .1);
  --banner-slide-ring: color-mix(in srgb, var(--brand) 22%, var(--line));
  --banner-ctrl-bg: color-mix(in srgb, var(--surface) 86%, #fff);
  --banner-ctrl-border: color-mix(in srgb, var(--line) 80%, var(--brand) 20%);
  --banner-ctrl-ink: var(--ink);
  --banner-dot: color-mix(in srgb, var(--ink) 22%, transparent);
  --banner-dot-active: var(--brand);
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--banner-radius) + 6px);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: var(--banner-rail);
  touch-action: pan-y;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding: 14px 0 42px;
  isolation: isolate;
  contain: paint;
}
html[data-theme="dark"] .home-banner-section .banner-carousel,
html[data-theme="dark"] .banner-carousel {
  --banner-side-fade: color-mix(in srgb, var(--bg) 82%, transparent);
  --banner-rail:
    radial-gradient(ellipse 70% 65% at 50% 35%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 68%),
    linear-gradient(180deg, #12090f, #070707 78%);
  --banner-slide-shadow: 0 22px 48px rgba(0, 0, 0, .55), 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
  --banner-slide-ring: color-mix(in srgb, var(--brand-2) 55%, transparent);
  --banner-ctrl-bg: color-mix(in srgb, #1a1016 78%, transparent);
  --banner-ctrl-border: color-mix(in srgb, var(--brand) 45%, rgba(255,255,255,.18));
  --banner-ctrl-ink: #fff;
  --banner-dot: rgba(255,255,255,.35);
  --banner-dot-active: var(--brand-2);
  border-color: color-mix(in srgb, var(--brand) 28%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--brand) 18%, transparent);
}
.banner-stage {
  position: relative;
  overflow: hidden;
}
.home-banner-section .banner-carousel::before,
.home-banner-section .banner-carousel::after,
.banner-carousel::before,
.banner-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(14%, 110px);
  z-index: 2;
  pointer-events: none;
}
.home-banner-section .banner-carousel::before,
.banner-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--banner-side-fade), transparent);
}
.home-banner-section .banner-carousel::after,
.banner-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--banner-side-fade), transparent);
}
.banner-track {
  display: flex;
  gap: var(--banner-gap);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.banner-slide {
  flex: 0 0 var(--banner-slide-w);
  min-width: var(--banner-slide-w);
  color: inherit;
  text-decoration: none;
  position: relative;
  display: block;
  border-radius: var(--banner-radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  opacity: .55;
  filter: saturate(.85) brightness(.94);
  transition:
    opacity .4s ease,
    filter .4s ease,
    box-shadow .45s ease,
    border-color .35s ease;
  box-shadow: none;
}
.banner-slide.is-active {
  opacity: 1;
  filter: none;
  border-color: var(--banner-slide-ring);
  box-shadow: var(--banner-slide-shadow);
  z-index: 1;
}
.banner-slide .thumb {
  border-radius: 0;
  aspect-ratio: 2500 / 1686;
  width: 100%;
  background: var(--thumb-bg);
  overflow: hidden;
}
.banner-slide .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-slide .thumb .ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--brand);
  opacity: .7;
}
.home-banner-section + .notice-bar,
.home-banner-section + .notice-marquee {
  margin-top: 2px;
}
.banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 1;
  transform: none;
  pointer-events: none;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.banner-caption strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.banner-caption span {
  font-size: .82rem;
  opacity: .9;
  line-height: 1.4;
}
.banner-controls {
  position: absolute;
  inset: 0 0 42px;
  pointer-events: none;
  z-index: 3;
}
.carousel-btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--banner-ctrl-border);
  background: var(--banner-ctrl-bg);
  color: var(--banner-ctrl-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.carousel-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-50%) scale(1.05);
}
.carousel-btn:active {
  transform: translateY(-50%) scale(.96);
}
html[data-theme="dark"] .carousel-btn {
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
}
html[data-theme="dark"] .carousel-btn:hover {
  color: #fff;
  background: color-mix(in srgb, var(--brand) 55%, #12080c);
  border-color: var(--brand-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-2) 40%, transparent), 0 10px 28px rgba(230,0,126,.28);
}
.carousel-btn.prev { left: max(10px, 1.2%); }
.carousel-btn.next { right: max(10px, 1.2%); }
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  z-index: 3;
  pointer-events: none;
}
.carousel-dots button {
  pointer-events: auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: var(--banner-dot);
  cursor: pointer;
  padding: 0;
  transition: width .3s ease, background .25s ease, transform .2s ease;
}
.carousel-dots button:hover {
  transform: scale(1.15);
}
.carousel-dots button.active {
  width: 22px;
  background: var(--banner-dot-active);
}
@media (max-width: 720px) {
  .home-banner-section .banner-carousel,
  .banner-carousel {
    --banner-slide-w: 78%;
    --banner-gap: 10px;
    --banner-radius: 12px;
    padding: 10px 0 38px;
  }
  .home-banner-section .banner-carousel::before,
  .home-banner-section .banner-carousel::after,
  .banner-carousel::before,
  .banner-carousel::after {
    width: min(12%, 72px);
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
  .banner-slide { opacity: .42; }
  .banner-slide.is-active { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-track,
  .banner-slide,
  .banner-slide .thumb img,
  .banner-caption {
    transition: none !important;
  }
}

/* —— 橫向場次／藝人 —— */
.h-scroll {
  position: relative;
  --hscroll-rail: color-mix(in srgb, var(--ink) 10%, transparent);
  --hscroll-thumb: color-mix(in srgb, var(--brand) 72%, var(--ink) 28%);
  --hscroll-btn-bg: color-mix(in srgb, var(--surface) 92%, #fff);
  --hscroll-btn-border: color-mix(in srgb, var(--line) 75%, var(--brand) 25%);
}
html[data-theme="dark"] .h-scroll {
  --hscroll-rail: rgba(255,255,255,.12);
  --hscroll-thumb: var(--brand-2);
  --hscroll-btn-bg: color-mix(in srgb, #1a1016 82%, transparent);
  --hscroll-btn-border: color-mix(in srgb, var(--brand) 48%, rgba(255,255,255,.2));
}
.h-scroll-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox：隱藏原生捲軸 */
  -ms-overflow-style: none; /* IE/舊 Edge */
}
.h-scroll-track::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Edge */
  width: 0;
  height: 0;
}
.h-scroll-progress {
  display: block;
  height: 3px;
  margin: 10px 2px 0;
  border-radius: 999px;
  background: var(--hscroll-rail);
  overflow: hidden;
  position: relative;
}
.h-scroll-progress[hidden] {
  display: none;
}
.h-scroll-progress > span {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 100%;
  width: 28%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--hscroll-thumb));
  will-change: left, width;
  transition: left .12s ease, width .12s ease;
  box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 35%, transparent);
}
html[data-theme="dark"] .h-scroll-progress > span {
  box-shadow: 0 0 14px color-mix(in srgb, var(--brand-2) 45%, transparent);
}
.h-scroll-card {
  flex: 0 0 min(220px, 72vw); max-width: 220px; scroll-snap-align: start;
  text-decoration: none; color: inherit;
}
/* 首頁橫向區：演藝合作／媒體 同寬；最新活動較寬 */
#collaborations .h-scroll-card,
#media .h-scroll-card {
  flex-basis: min(200px, 68vw);
  max-width: 200px;
}
#events .h-scroll-card {
  flex-basis: min(400px, 88vw);
  max-width: 400px;
}
#events .h-scroll-card .thumb,
#collaborations .h-scroll-card .thumb,
#media .h-scroll-card .thumb {
  aspect-ratio: 2500 / 1686;
}
#adpoints .h-scroll-card.adp {
  flex: 0 0 min(200px, 68vw);
  max-width: 200px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.event-grid .thumb {
  aspect-ratio: 2500 / 1686;
}
.h-scroll-btn {
  position: absolute;
  top: 34%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--hscroll-btn-border);
  background: var(--hscroll-btn-bg);
  color: var(--ink);
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(43, 36, 41, .1);
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
html[data-theme="dark"] .h-scroll-btn {
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.h-scroll-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-50%) scale(1.05);
}
html[data-theme="dark"] .h-scroll-btn:hover {
  color: #fff;
  background: color-mix(in srgb, var(--brand) 50%, #12080c);
  border-color: var(--brand-2);
}
.h-scroll-btn.prev { left: -4px; }
.h-scroll-btn.next { right: -4px; }
.h-scroll-btn[hidden] { display: none; }

/* 演藝合作：播放中下方清單改單排橫向 */
.collab-player-playlist .h-scroll-card {
  flex: 0 0 min(200px, 68vw);
  max-width: 200px;
}
.collab-player-playlist .h-scroll-card .thumb {
  aspect-ratio: 2500 / 1686;
}
.collab-player-playlist .h-scroll-card.is-playing {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.collab-player-playlist .h-scroll-card .panel-body h3 {
  font-size: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.collab-player-playlist .h-scroll-card .panel-body .meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 合作藝人：男優／女優兩排橫向，欄數依螢幕寬度 */
.home-creators-rows {
  display: flex; flex-direction: column; gap: 20px;
}
.home-creators-row-label {
  margin: 0 0 8px; font-size: .82rem; font-weight: 700;
  color: var(--ink-2); letter-spacing: .08em;
}
/* 首頁合作藝人：與最新活動同寬；縮圖正方形（詳情頁仍為直式 3:4） */
.home-creators .h-scroll-card {
  flex: 0 0 min(200px, 68vw);
  max-width: 200px;
  min-width: 0;
}
.home-creators .h-scroll-card .thumb,
.home-creators .h-scroll-card .thumb.portrait {
  aspect-ratio: 1 / 1;
}
.home-creators .h-scroll-card .thumb img {
  object-fit: cover;
}
.home-creators .h-scroll-card .panel-body {
  min-height: 0;
  padding: 14px 16px 16px;
}
.home-creators .h-scroll-card .panel-body h3 {
  margin: 0 0 6px;
  font-size: .94rem;
  font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-creators .h-scroll-card .panel-body .meta {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: .8rem;
}

.artists-line { color: var(--brand); font-weight: 600; }
.tagline-line { font-style: italic; opacity: .9; }

.gender-pick {
  display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px; max-width: 560px;
}
.gender-pick-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  width: 100%;
}
.gender-pick-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 880px;
  width: 100%;
}
.creator-wall-title {
  margin: 28px 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: .06em;
}
.creator-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, 200px);
  gap: 14px;
  justify-content: start;
}
.creator-wall-item {
  width: 200px;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.creator-wall-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.creator-wall-item img,
.creator-wall-ph {
  width: 200px;
  height: 200px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.creator-wall-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-3);
}
.creator-wall-name {
  margin-top: 8px;
  font-size: .86rem;
  font-weight: 600;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.creator-wall-item:hover img,
.creator-wall-item:hover .creator-wall-ph {
  border-color: var(--brand);
}
.sns-icons-under-name {
  margin-top: 8px;
  justify-content: center;
}
.sns-icons-sm {
  gap: 6px;
  margin-top: 8px;
}
.sns-icons-sm .sns-icon {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: .7rem;
}
.sns-icons-after-hobby {
  margin-top: 14px;
  margin-bottom: 4px;
}
.creator-other {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0;
}
.creator-other > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}
.creator-other > summary::-webkit-details-marker { display: none; }
.creator-other > summary::after {
  content: '';
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  opacity: .75;
  transition: transform .2s ease;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23E6007E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}
.creator-other[open] > summary::after { transform: rotate(180deg); }
.creator-other-body { padding: 0 14px 14px; }
.creator-card .panel-body h3 { margin: 0 0 6px; }
.creator-card .panel-body h3 a { color: inherit; text-decoration: none; }
.creator-card .panel-body h3 a:hover { color: var(--brand); }
.creator-card-media { display: block; text-decoration: none; color: inherit; }
.creator-card-extra {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.creator-card-extra > summary {
  cursor: pointer;
  list-style: none;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  user-select: none;
}
.creator-card-extra > summary::-webkit-details-marker { display: none; }
.creator-card-extra-body {
  margin: 8px 0 0;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.creator-wall-item:hover img,
.creator-wall-item:hover .creator-wall-ph {
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.creator-wall-item img,
.creator-wall-item .creator-wall-ph {
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (max-width: 440px) {
  .creator-wall {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    justify-content: stretch;
  }
  .creator-wall-item { width: auto; }
  .creator-wall-item img,
  .creator-wall-ph {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}
.history-search {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 4px;
}
.history-search input[type=search],
.history-search select,
.shop-search input[type=search],
.shop-search select {
  flex: 1 1 160px; min-width: 140px; max-width: 420px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
}
.history-search select,
.shop-search select { flex: 0 1 160px; max-width: 200px; }
.shop-search {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px;
}
.shop-sale-badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: rgba(0,0,0,.72); color: #fff;
}
.shop-sale-badge.is-preorder { background: rgba(245,165,36,.92); color: #1a1200; }
.shop-sale-badge.is-instock { background: rgba(61,214,140,.9); color: #062016; }
.shop-card-media { position: relative; }
.shop-card-artist { margin: 4px 0 0; font-size: .82rem; }
.shop-sale-inline {
  display: inline-block; font-weight: 700; padding: 1px 8px; border-radius: 999px;
  background: rgba(61,214,140,.18); color: #3dd68c; font-size: .8rem;
}
.shop-sale-inline.is-preorder { background: rgba(245,165,36,.2); color: #f5a524; }
.product-detail-artist { margin: 4px 0 10px; }
.gender-card.is-active {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* 側欄社群圖示：貼底、可多排，每顆為側欄寬 1/4 */
.sidebar {
  display: flex;
  flex-direction: column;
}
.side-social {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.side-social-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  align-items: stretch;
}
.side-social-btn {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: none;
  aspect-ratio: 1;
  height: auto;
  border-radius: var(--radius-nav, 10px);
  border: 1px solid var(--line);
  background: var(--brand-pale);
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.side-social-btn svg,
.side-social-btn .side-social-img {
  width: 55%;
  height: 55%;
  max-width: 22px;
  max-height: 22px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
.side-social-btn::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 5px 9px;
  border-radius: 8px;
  background: #1c1917;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  line-height: 1.2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 40;
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.side-social-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1c1917;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 40;
  transition: opacity .15s ease, visibility .15s ease;
}
.side-social-btn:hover::after,
.side-social-btn:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.side-social-btn:hover::before,
.side-social-btn:focus-visible::before {
  opacity: 1;
  visibility: visible;
}
.side-social-btn:hover,
.side-social-btn:focus-visible {
  transform: translateY(-2px);
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: var(--login-shadow, 0 8px 18px color-mix(in srgb, var(--brand) 28%, transparent));
  outline: none;
  z-index: 5;
}
.side-social-btn:hover .side-social-img,
.side-social-btn:focus-visible .side-social-img {
  filter: brightness(0) invert(1);
}
/* 頁尾不顯示官方社群（僅側欄 ICON）；隱藏舊版 footer-social 殘留 */
.footer-social,
.footer .footer-social-label,
.footer .footer-social-icons,
.footer .footer-social-empty {
  display: none !important;
}
.page-events-scroll.h-scroll {
  margin-top: 8px;
}
.page-events-scroll .h-scroll-card {
  flex: 0 0 min(280px, 78vw);
  max-width: 280px;
}
.page-events-scroll .h-scroll-card .thumb {
  aspect-ratio: 2500 / 1686;
}
.gender-card { text-decoration: none; color: inherit; }
.gender-card h3 { font-size: 1.25rem; margin: 0 0 6px; }

.creator-detail {
  display: grid; gap: 20px; grid-template-columns: minmax(160px, 240px) 1fr; align-items: start;
}
.profile-dl { margin: 0; display: grid; gap: 8px; }
.profile-dl > div { display: grid; grid-template-columns: 100px 1fr; gap: 8px; font-size: .9rem; }
.profile-dl dt { color: var(--muted); margin: 0; }
.profile-dl dd { margin: 0; }
.sns-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sns-icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-weight: 700; font-size: .78rem; text-decoration: none;
}
.sns-icon:hover { border-color: var(--brand); color: var(--brand); }

.player-box {
  margin: 16px 0; padding: 16px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface);
}
.player-frame {
  position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden;
}
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-video { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }

@media (max-width: 700px) {
  .creator-detail { grid-template-columns: 1fr; }
  .gender-pick { grid-template-columns: 1fr; }
  .gender-pick-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gender-pick-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-scroll-btn { display: none; }
}

/* —— 會員中心（左側欄） —— */
.member-hub-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: start;
}
.member-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  position: sticky;
  top: calc(var(--header-h, 64px) + 12px);
}
.member-side-head {
  display: flex; gap: 12px; align-items: center; margin-bottom: 14px;
}
.member-avatar {
  width: 56px; height: 56px; border-radius: 999px; overflow: hidden;
  background: var(--thumb-bg); display: grid; place-items: center;
  flex-shrink: 0; font-weight: 800; color: var(--brand);
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-side-name { font-weight: 800; font-size: 1.02rem; }
.member-side-rank { font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
.member-side-cta { width: 100%; justify-content: center; margin-bottom: 12px; }
.member-side-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px;
}
.member-side-stats > div {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.member-side-stats .l { display: block; font-size: .72rem; color: var(--ink-3); }
.member-side-stats strong { font-size: 1.05rem; }
.member-side-nav { display: flex; flex-direction: column; gap: 4px; }
.member-nav-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .9rem;
}
.member-nav-item:hover, .member-nav-item.active {
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
}
.member-nav-item.is-soon { opacity: .72; }
.member-nav-item em {
  font-style: normal; font-size: .68rem; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px;
}
.member-panel { padding: 18px; }
.member-main .crop-current {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px;
}
.member-main .crop-current img {
  max-width: 120px; max-height: 120px; object-fit: cover; border-radius: 999px; border: 1px solid var(--line);
}
.img-hint { margin: 6px 0 0; font-size: .78rem; color: var(--ink-3); line-height: 1.55; max-width: 640px; }
.js-crop-preview {
  margin-top: 12px; max-width: 640px; background: color-mix(in srgb, var(--ink) 8%, transparent);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-height: 360px;
}
.js-crop-preview img { display: block; max-width: 100%; }
@media (max-width: 860px) {
  .member-hub-layout { grid-template-columns: 1fr; }
  .member-side { position: static; }
}

/* 活動集章冊 */
.stamp-book {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.stamp-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.stamp-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.stamp-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.stamp-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 1.4rem; font-weight: 700; color: var(--ink-3);
}
.stamp-card.is-locked .stamp-thumb img {
  filter: grayscale(1) brightness(.92);
  opacity: .72;
}
.stamp-card.is-unlocked .stamp-thumb {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 18%, transparent);
}
.stamp-badge {
  position: absolute; right: 6px; top: 6px;
  width: 28px; height: 28px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  color: #fff; background: var(--brand);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.stamp-name {
  margin-top: 8px; font-size: .82rem; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.stamp-state {
  margin-top: 2px; font-size: .72rem; color: var(--ink-3);
}
.stamp-card.is-unlocked .stamp-state { color: var(--brand); font-weight: 600; }


/* 會員收藏／好友 */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.fav-card {
  display: flex; gap: 12px; align-items: stretch;
  border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  background: var(--surface);
}
.fav-card-media {
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: var(--thumb-bg); display: grid; place-items: center; text-decoration: none;
}
.fav-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-ph { font-weight: 800; color: var(--brand); font-size: 1.2rem; }
.fav-card-body { min-width: 0; flex: 1; }
.fav-type {
  display: inline-block; font-size: .68rem; color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  border-radius: 999px; padding: 1px 8px; margin-bottom: 4px;
}
.fav-title {
  display: block; font-weight: 700; color: var(--ink); text-decoration: none;
  font-size: .92rem; line-height: 1.35;
}
.fav-title:hover { color: var(--brand); }
.friend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.friend-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: var(--surface);
}
.friend-avatar {
  width: 44px; height: 44px; border-radius: 999px; overflow: hidden; flex-shrink: 0;
  background: var(--thumb-bg); display: grid; place-items: center; font-weight: 800; color: var(--brand);
}
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.friend-meta { flex: 1; min-width: 120px; display: flex; flex-direction: column; gap: 2px; }
.friend-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fav-btn.is-on { box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent); }


/* —— 會員中心帳號殼（無網站側欄＋頂部分組） —— */
body.is-account-shell .shell-account {
  display: block;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 32px;
}
body.is-account-shell .main-account {
  width: 100%;
  max-width: none;
  padding-top: 12px;
}
.header-account .account-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.account-back {
  flex-shrink: 0;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.account-back:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.account-bar-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.account-bar-kicker {
  font-size: .68rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase;
}
.account-bar-title strong { font-size: 1.05rem; color: var(--ink); }
.pill-logout { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.member-hub-account { max-width: 100%; }
.member-hub-account .member-top {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  justify-content: space-between;
  padding: 18px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.member-top-profile { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 220px; }
.member-avatar-lg { width: 64px; height: 64px; }
.member-top-cta { margin-left: auto; }
.member-top-stats {
  display: grid; grid-template-columns: repeat(3, minmax(76px, 1fr)); gap: 8px;
}
.member-top-stats > div {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 88px;
  background: color-mix(in srgb, var(--bg-soft, var(--bg)) 70%, transparent);
}
.member-top-stats .l { display: block; font-size: .72rem; color: var(--ink-3); }
.member-top-stats strong { font-size: 1.05rem; }
.member-groups {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px;
}
.member-group {
  display: inline-flex; align-items: center;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 600;
}
.member-group:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.member-group.active {
  color: #fff; background: var(--brand); border-color: var(--brand);
}
.member-group-link { font-weight: 500; color: var(--ink-3); }
.member-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px;
  padding: 8px; border-radius: 14px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}
.member-tab {
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-size: .84rem; font-weight: 600;
}
.member-tab:hover { color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.member-tab.active {
  color: var(--brand); background: #fff; box-shadow: 0 1px 0 var(--line);
}
.member-hub-account .member-main { width: 100%; }
.footer-account { margin-top: 28px; opacity: .9; }
@media (max-width: 720px) {
  .member-top-cta { margin-left: 0; width: 100%; justify-content: center; }
  .member-top-stats { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .header-account .account-bar-kicker { display: none; }
}

/* —— 商城／年齡閘 —— */
.shop-cat-nav { margin: 0 0 18px; }
.shop-cat-scroll {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 2px 2px 10px; scrollbar-width: thin;
}
.shop-cat-scroll::-webkit-scrollbar { height: 4px; }
.shop-cat-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface, var(--panel)); color: var(--ink); text-decoration: none;
  font-size: .86rem; font-weight: 700; white-space: nowrap;
}
.shop-cat-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.shop-cat-sub {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 0 2px 6px; margin-top: 2px;
}
.shop-cat-subchip { font-size: .8rem; font-weight: 600; padding: 7px 12px; opacity: .95; }
.shop-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  margin-top: 4px;
}
@media (min-width: 720px) {
  .shop-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
.shop-card {
  display: block; padding: 12px; margin: 0; border-radius: var(--radius-sm, 14px);
  border: 1px solid var(--line); background: var(--panel, var(--surface));
  color: inherit; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.shop-card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-1px); }
.shop-card-media {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: var(--bg-soft); margin-bottom: 10px;
}
.shop-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card-ph { width: 100%; height: 100%; min-height: 120px; background: var(--bg-soft); }
.shop-card-cat { font-size: .72rem; color: var(--ink-3); margin-bottom: 4px; }
.shop-card-title { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.3; }
.shop-card-sum { margin: 0 0 8px; font-size: .84rem; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-stock { margin: 8px 0 0; font-size: .78rem; color: var(--ink-3); }
.shop-footnote { margin-top: 18px; font-size: .86rem; }
.pill-cart { position: relative; }
.cart-badge {
  display: inline-block; min-width: 1.15rem; margin-left: 4px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; line-height: 1.25rem; text-align: center;
}
.cart-table { width: 100%; }
.cart-footer {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.cart-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-lines { list-style: none; margin: 0; padding: 0; }
.checkout-lines li {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-size: .92rem;
}
.product-buy-form { margin-top: 14px; }
.oauth-login-block {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.oauth-login-label { margin: 0 0 2px; font-size: .84rem; }
.oauth-btn { text-align: center; }
.auction-section-title { margin: 0 0 12px; font-size: 1.05rem; }
.shop-age-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: #E6007E; color: #fff; font-size: .72rem; font-weight: 800;
  padding: 4px 8px; border-radius: 8px; letter-spacing: .02em;
}
.shop-card.is-age-locked .shop-card-media img { filter: none; }

.age-gate-panel {
  max-width: 480px; margin: 12px auto 24px; padding: 28px 22px; text-align: center;
}
.age-gate-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff;
  font-weight: 800; font-size: 1.25rem; margin-bottom: 14px;
}
.age-gate-title { margin: 0 0 12px; font-size: 1.25rem; }
.age-gate-body { color: var(--ink-2); font-size: .95rem; line-height: 1.65; margin-bottom: 20px; text-align: left; }
.age-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.product-detail-back { margin: 0 0 16px; }
.product-detail-card {
  padding: 0; overflow: hidden; max-width: 980px;
  display: grid; gap: 0; grid-template-columns: minmax(0, 1fr);
}
.product-detail-media {
  position: relative; aspect-ratio: 1; background: var(--bg-soft);
  max-height: none;
}
.product-detail-media img,
.product-detail-zoom img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-detail-zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.product-detail-body { padding: 18px 16px 22px; }
.product-detail-cat { font-size: .78rem; color: var(--ink-3); margin-bottom: 6px; }
.product-detail-title { margin: 0 0 10px; font-size: clamp(1.4rem, 4.2vw, 1.85rem); line-height: 1.25; }
.product-detail-summary { margin: 0 0 12px; color: var(--ink-2); font-size: 1rem; }
.product-detail-price { font-size: 1.3rem; margin-bottom: 8px; }
.product-detail-stock { margin: 0 0 16px; font-size: .86rem; }
.product-detail-rich { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.product-detail-note { margin: 20px 0 0; font-size: .86rem; }
@media (min-width: 768px) {
  .product-detail-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .product-detail-media { min-height: 100%; max-height: none; }
  .product-detail-body { padding: 28px 28px 32px; }
}
@media (max-width: 767px) {
  .product-detail-media { aspect-ratio: 1 / 1; width: 100%; }
  .product-detail-body { padding: 16px 14px 20px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-card { padding: 10px; }
  .shop-card-title { font-size: .95rem; }
}

/* 同頁圖片放大（不另開分頁） */
.aduo-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, .78);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.aduo-lightbox.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.aduo-lightbox-inner {
  position: relative; max-width: min(960px, 100%); max-height: 100%;
}
.aduo-lightbox-inner img {
  display: block; max-width: 100%; max-height: min(88vh, 100%);
  width: auto; height: auto; margin: 0 auto;
  border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  object-fit: contain; background: #111;
}
.aduo-lightbox-close {
  position: absolute; top: -12px; right: -12px;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(20, 20, 20, .85); color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 1;
}
.aduo-lightbox-close:hover { background: #000; }
@media (max-width: 720px) {
  .aduo-lightbox { padding: 18px 12px; }
  .aduo-lightbox-close { top: -8px; right: 0; }
}

/* 阿朶論壇 */
.fan-board .fan-filters .btn.is-active {
  background: var(--brand, #c45c26);
  color: #fff;
  border-color: transparent;
}
.fan-board .fav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.event .fav-bar,
.fav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
