/* ==========================================================
   POLISH — Secondary pages + theme differentiation
   ========================================================== */

/* =========== PRODUCT DETAIL — refined ============ */
.pd-wrap { padding: 40px 32px 96px; }
@media (max-width: 768px) { .pd-wrap { padding: 24px 18px 56px; } }

.pd-grid { gap: 64px; }
@media (max-width: 860px) { .pd-grid { gap: 28px; } }

.pd-main-img {
  aspect-ratio: 1; position: relative;
  transition: border-color .25s ease;
}
.theme-manga-city .pd-main-img {
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--ink);
}
.theme-manga-city .pd-main-img::before {
  content: ''; position: absolute; inset: 8px;
  border: 1px solid rgba(26,27,46,.22);
  pointer-events: none; z-index: 1;
}
.theme-manga-city .pd-main-img::after {
  content: attr(data-series-num);
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.18em;
  background: var(--ink); color: var(--ink-fg);
  padding: 4px 10px; font-weight: 700;
}

.pd-name-wrap { position: relative; margin-bottom: 8px; }
.pd-name-over-en {
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: 0.24em; color: var(--primary);
  font-weight: 700; margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 10px;
}
.pd-name-over-en::after {
  content: ''; width: 40px; height: 2px; background: var(--primary);
}

.pd-price-row {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 18px 0;
  align-items: center;
}
.theme-monochrome-ink .pd-price-row { border-width: 1px; }
.theme-neon-stream .pd-price-row { border-color: var(--line); }
.pd-price-row .pd-price-tax-note {
  margin-left: auto; font-size: 11px; color: var(--fg-soft);
  font-family: var(--font-display); letter-spacing: 0.15em;
}

/* Inline artist mini-card */
.pd-artist-mini {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .18s ease;
}
.theme-manga-city .pd-artist-mini { border: 2px solid var(--ink); background: var(--surface); }
.theme-monochrome-ink .pd-artist-mini { border-width: 1px; }
.theme-neon-stream .pd-artist-mini { border-color: var(--line); }
.pd-artist-mini:hover { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.pd-artist-mini:hover .pd-artist-mini-sub { color: rgba(255,255,255,.85); }
.pd-artist-mini:hover .pd-artist-mini-arrow { transform: translateX(4px); }
.pd-artist-mini-av {
  width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0;
  background: var(--brand-gradient); color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
}
.pd-artist-mini-name { font-size: 14px; font-weight: 900; line-height: 1.3; }
.pd-artist-mini-sub { font-size: 11px; color: var(--fg-soft); font-family: var(--font-display); letter-spacing: 0.12em; font-weight: 700; }
.pd-artist-mini-arrow { margin-left: auto; transition: transform .2s ease; }

/* Spec list redesign */
.pd-meta {
  margin-top: 24px;
  border: 2px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 4px 20px;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.theme-manga-city .pd-meta { border: 2px solid var(--ink); background: var(--surface); }
.theme-monochrome-ink .pd-meta { border-width: 1px; }
.theme-neon-stream .pd-meta { border-color: var(--line); background: var(--surface); }
.pd-meta > div {
  padding: 14px 0 !important;
  border-top: 1px solid var(--line-soft) !important;
  font-size: 13px;
  display: flex; gap: 12px; align-items: baseline;
}
.pd-meta > div:first-child,
.pd-meta > div:nth-child(2) { border-top: none !important; }
.pd-meta strong {
  display: inline-block !important;
  min-width: 88px;
  color: var(--fg-soft) !important;
  font-size: 10px !important;
  margin-bottom: 0 !important;
}
@media (max-width: 520px) {
  .pd-meta { grid-template-columns: 1fr; }
  .pd-meta > div { border-top: 1px solid var(--line-soft) !important; }
  .pd-meta > div:first-child { border-top: none !important; }
  .pd-meta > div:nth-child(2) { border-top: 1px solid var(--line-soft) !important; }
}

/* =========== ARTIST PROFILE HEADER ============ */
.artist-hero {
  position: relative;
  padding: 72px 0 56px;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.theme-monochrome-ink .artist-hero { border-bottom-width: 1px; }
.theme-neon-stream .artist-hero { border-bottom-color: var(--line); }
.theme-manga-city .artist-hero { background: var(--surface-2); }
.theme-manga-city .artist-hero::before {
  content: ''; position: absolute; right: -40px; top: -60px;
  width: 340px; height: 340px;
  background: var(--halftone);
  opacity: 0.15; pointer-events: none;
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.theme-neon-stream .artist-hero::before {
  content: ''; position: absolute; right: -100px; top: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(212,53,126,.25) 0%, transparent 60%);
  pointer-events: none;
}
.artist-hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto; gap: 40px;
  align-items: center;
}
@media (max-width: 820px) {
  .artist-hero-inner { grid-template-columns: auto 1fr; gap: 24px; }
  .artist-hero-stats { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .artist-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .artist-hero-avatar { margin: 0 auto; }
}
.artist-hero-avatar {
  width: 140px; height: 140px; border-radius: 999px;
  background: var(--brand-gradient); color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 64px; font-weight: 700;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  flex-shrink: 0;
}
.theme-neon-stream .artist-hero-avatar { border: 3px solid rgba(255,255,255,.18); box-shadow: 0 20px 40px rgba(212,53,126,.35); }
.theme-monochrome-ink .artist-hero-avatar { background: var(--ink); border-width: 1px; box-shadow: none; }
.artist-hero-body { display: flex; flex-direction: column; gap: 8px; }
.artist-hero-role {
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: 0.2em; color: var(--primary);
  font-weight: 700; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.artist-hero-role::before { content: ''; width: 24px; height: 2px; background: var(--primary); }
.artist-hero-name {
  font-family: var(--font-jp-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.artist-hero-flag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
  font-size: 13px; color: var(--fg-muted);
}
.artist-hero-flag-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--primary); }
.artist-hero-stats {
  display: flex; gap: 32px;
}
.artist-hero-stat { display: flex; flex-direction: column; gap: 2px; }
.artist-hero-stat-num {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 700; line-height: 1;
  color: var(--fg);
}
.theme-manga-city .artist-hero-stat-num { color: var(--primary); }
.artist-hero-stat-label {
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: 0.2em; color: var(--fg-soft); font-weight: 700;
  text-transform: uppercase;
}
.artist-hero-bio {
  max-width: 860px; margin: 40px 0 0;
  font-size: 15px; line-height: 1.9; color: var(--fg-muted);
  position: relative; z-index: 2;
}
.theme-manga-city .artist-hero-bio { color: var(--fg); }

/* Artists list card — richer with gradient ring and preview works */
.artist-card {
  position: relative; overflow: hidden;
}
.theme-manga-city .artist-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--brand-gradient);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.theme-manga-city .artist-card:hover::after { transform: scaleX(1); }
.artist-card-top { display: flex; align-items: center; gap: 14px; }
.artist-avatar {
  position: relative;
  background: var(--brand-gradient) !important;
  box-shadow: 3px 3px 0 var(--ink);
}
.theme-neon-stream .artist-avatar { box-shadow: 0 6px 20px rgba(212,53,126,.4); }
.theme-monochrome-ink .artist-avatar { box-shadow: none; background: var(--ink) !important; border: 1px solid var(--ink); }

/* =========== SIZE GUIDE — visual ============ */
.sg-hero {
  padding: 56px 0 32px;
  text-align: center;
  border-bottom: 2px solid var(--ink);
  position: relative; overflow: hidden;
}
.theme-monochrome-ink .sg-hero { border-bottom-width: 1px; }
.theme-neon-stream .sg-hero { border-bottom-color: var(--line); }
.sg-hero-ttl {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 700; line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: relative; z-index: 2;
}
.theme-manga-city .sg-hero-ttl {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.theme-manga-city .sg-hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--halftone);
  opacity: 0.1; pointer-events: none;
}
.sg-hero-sub { margin-top: 12px; font-size: 14px; color: var(--fg-muted); }

.sg-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  padding: 40px 32px;
  align-items: start;
}
@media (max-width: 720px) {
  .sg-card { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
  .sg-visual { max-width: 160px; margin: 0 auto; }
}

.sg-visual {
  aspect-ratio: 3/4;
  background: var(--bg-2);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative;
}
.theme-manga-city .sg-visual { background: var(--surface); border: 2px solid var(--ink); }
.theme-neon-stream .sg-visual { background: var(--bg); }
.sg-visual svg { width: 100%; height: 100%; }
.sg-visual-label {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--ink-fg);
  font-family: var(--font-display); font-size: 10px;
  padding: 3px 10px; letter-spacing: 0.15em; font-weight: 700;
}

.sg-body { display: flex; flex-direction: column; gap: 14px; }
.sg-card h3 { margin-bottom: 0; }

.sg-table {
  border-radius: var(--radius); overflow: hidden;
}
.theme-manga-city .sg-table { border: 2px solid var(--ink); }
.theme-manga-city .sg-table th { background: var(--ink); color: var(--ink-fg); }

/* =========== FLOW — connected journey ============ */
.flow-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  counter-reset: flow;
}
@media (max-width: 900px) { .flow-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow-grid { grid-template-columns: 1fr; } }
.flow-grid::before {
  content: ''; position: absolute; top: 52px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(to right, var(--primary) 0 8px, transparent 8px 14px);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 900px) { .flow-grid::before { display: none; } }

.flow-card {
  position: relative;
  padding: 0 16px;
  background: transparent !important;
  border: none !important;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 1;
}
.flow-num {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  background: var(--surface);
  color: var(--primary);
  border: 3px solid var(--ink);
  border-radius: 999px;
  line-height: 1; margin: 0 0 4px 0 !important;
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
}
.theme-neon-stream .flow-num { border-color: var(--primary); box-shadow: 0 12px 28px rgba(212,53,126,.3); background: var(--surface); }
.theme-monochrome-ink .flow-num { border-width: 1.5px; box-shadow: none; }
.flow-num::after {
  content: ''; position: absolute; inset: -3px;
  border: 2px dashed var(--primary); border-radius: 999px;
  opacity: 0; transform: scale(0.8); transition: all .3s ease;
}
.flow-card:hover .flow-num::after { opacity: 1; transform: scale(1.15); }
.flow-card h4 { margin-top: 8px; }
.flow-icon {
  position: absolute; top: 18px; right: 40px;
  width: 28px; height: 28px; color: var(--fg-soft);
  opacity: 0.6;
}

/* =========== FAQ — with categories ============ */
.faq-cats {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
  justify-content: center;
}
.faq-cat {
  padding: 8px 18px; font-size: 13px; font-weight: 800;
  background: transparent; color: var(--fg-muted);
  border: 2px solid var(--line-soft);
  border-radius: 999px;
  transition: all .18s ease;
}
.theme-monochrome-ink .faq-cat { border-width: 1px; }
.faq-cat:hover { background: var(--bg-2); color: var(--fg); }
.faq-cat.active { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.theme-manga-city .faq-cat.active { background: var(--primary); border-color: var(--ink); color: var(--primary-fg); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px,-1px); }

.faq-item {
  background: var(--surface);
  border: 2px solid var(--line-soft);
  margin-bottom: 10px;
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .2s ease;
}
.theme-monochrome-ink .faq-item { border-width: 1px; }
.theme-manga-city .faq-item { border: 2px solid var(--ink); }
.theme-manga-city .faq-item.open { box-shadow: 4px 4px 0 var(--ink); transform: translate(-1px,-1px); }
.faq-item:hover { border-color: var(--primary); }
.faq-item.open { border-color: var(--primary); }
.faq-q { align-items: center; }
.faq-q span:first-child { flex: 1; }

/* Empty state polish */
.empty-state-icon { font-size: 64px; }

/* =========== FAVORITES — richer empty ============ */
.fav-empty-card {
  max-width: 520px; margin: 60px auto 0;
  padding: 48px 32px;
  text-align: center;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}
.theme-neon-stream .fav-empty-card { box-shadow: 0 20px 50px rgba(0,0,0,.4); border-color: var(--line); }
.theme-monochrome-ink .fav-empty-card { box-shadow: none; border-width: 1px; }
.fav-empty-icon {
  width: 80px; height: 80px; margin: 0 auto 20px;
  background: var(--brand-gradient); color: #FFF;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.theme-neon-stream .fav-empty-icon { border-color: transparent; box-shadow: 0 10px 30px rgba(212,53,126,.3); }
.theme-monochrome-ink .fav-empty-icon { border-width: 1px; box-shadow: none; }
.fav-empty-title { font-size: 20px; font-weight: 900; margin-bottom: 8px; font-family: var(--font-jp-display); }
.fav-empty-sub { font-size: 13px; color: var(--fg-muted); line-height: 1.8; margin-bottom: 24px; }

/* =========== Related products — label ============ */
.related-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.2em; color: var(--primary);
  font-weight: 700;
}
.related-label::before { content: ''; width: 32px; height: 2px; background: var(--primary); }

/* =========== MONOCHROME INK — richer differentiation ============ */
.theme-monochrome-ink .series-wrap { background: var(--ink); color: var(--ink-fg); }
.theme-monochrome-ink .series-wrap .sec-head-jp { color: var(--ink-fg); }
.theme-monochrome-ink .series-wrap .sec-head-en { color: var(--ink-fg); }
.theme-monochrome-ink .series-wrap .sec-head { border-bottom-color: rgba(251,249,243,.2); }
.theme-monochrome-ink .series-wrap .sec-head-r { color: rgba(251,249,243,.6); }
.theme-monochrome-ink .series-card { border: 1px solid rgba(251,249,243,.25); }
.theme-monochrome-ink .sec-head-en {
  font-family: var(--font-display);
  font-style: italic; letter-spacing: 0;
  color: var(--primary);
}
.theme-monochrome-ink .hero-title em,
.theme-monochrome-ink .hero-sc-title em,
.theme-monochrome-ink .hero-im-title em {
  font-family: var(--font-display);
  font-style: italic;
}
.theme-monochrome-ink .hero-title,
.theme-monochrome-ink .hero-im-title,
.theme-monochrome-ink .hero-sc-title {
  font-family: var(--font-jp-display);
  font-weight: 900;
}
.theme-monochrome-ink .section-title { font-family: var(--font-jp-display); font-style: normal; font-weight: 900; }

/* MONOCHROME INK — rules / lines */
.theme-monochrome-ink .pd-price { letter-spacing: -0.04em; font-style: italic; }
.theme-monochrome-ink .flow-num { font-style: italic; }
.theme-monochrome-ink .sg-hero-ttl { font-style: italic; color: var(--ink); }

/* =========== NEON STREAM — richer ============ */
.theme-neon-stream body, .theme-neon-stream { background: var(--bg); }
.theme-neon-stream .site-hdr { background: rgba(12,11,20,.85); }
.theme-neon-stream .series-wrap {
  background: var(--bg-2);
  position: relative;
}
.theme-neon-stream .series-wrap::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(91,94,219,.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212,53,126,.15), transparent 50%);
  pointer-events: none;
}
.theme-neon-stream .pickup-hero,
.theme-neon-stream .pickup-small,
.theme-neon-stream .series-card,
.theme-neon-stream .p-card,
.theme-neon-stream .artist-card,
.theme-neon-stream .about-card,
.theme-neon-stream .flow-card,
.theme-neon-stream .sg-card,
.theme-neon-stream .faq-item,
.theme-neon-stream .filter-bar {
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.theme-neon-stream .cta-banner { background: linear-gradient(135deg, #1B1828 0%, #2a1c3d 100%); border: 1px solid var(--line); }
.theme-neon-stream .cta-banner::before {
  content: ''; position: absolute; top: 0; right: 0; width: 60%; height: 100%;
  background: radial-gradient(ellipse at right, rgba(212,53,126,.25) 0%, transparent 60%);
  pointer-events: none;
}
.theme-neon-stream .sec-head-en { color: var(--primary); }
.theme-neon-stream .section-title { color: var(--fg); }

/* =========== Breadcrumb polish ============ */
.breadcrumb {
  padding: 20px 0 0; font-size: 12px;
  color: var(--fg-soft); font-family: var(--font-display);
  letter-spacing: 0.1em; font-weight: 600;
}
.breadcrumb a { color: var(--fg-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 10px; opacity: 0.5; }
.breadcrumb span:last-child { color: var(--fg); font-weight: 700; }

/* =========== Micro interactions ============ */
.news-row { transition: background .2s ease, padding-left .2s ease; position: relative; }
.news-row::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 3px; height: 60%; background: var(--primary);
  transition: transform .2s ease;
}
.news-row:hover::before { transform: translateY(-50%) scaleY(1); }

.theme-manga-city .p-card:hover { transform: translate(-3px,-3px) rotate(-0.3deg); }
.theme-manga-city .series-card:hover { transform: translate(-4px,-4px) rotate(-0.4deg); }

/* =========== Scroll reveal for pages ============ */
@keyframes page-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.pd-info > *, .sg-card, .flow-card, .faq-item, .artist-card, .about-card {
  animation: page-fade-up .45s ease both;
}
.pd-info > *:nth-child(1){animation-delay:.0s}
.pd-info > *:nth-child(2){animation-delay:.05s}
.pd-info > *:nth-child(3){animation-delay:.1s}
.pd-info > *:nth-child(4){animation-delay:.15s}
.pd-info > *:nth-child(5){animation-delay:.2s}
.pd-info > *:nth-child(6){animation-delay:.25s}

/* =========== Mobile tweaks ============ */
@media (max-width: 768px) {
  .artist-hero { padding: 44px 0 32px; }
  .artist-hero-avatar { width: 96px; height: 96px; font-size: 44px; }
  .artist-hero-stats { gap: 20px; }
  .artist-hero-stat-num { font-size: 30px; }
  .artist-hero-bio { margin-top: 24px; font-size: 14px; }

  .sg-card { padding: 20px; gap: 18px; }
  .sg-hero { padding: 36px 0 20px; }

  .flow-num { width: 64px; height: 64px; font-size: 28px; }
  .flow-grid::before { display: none; }

  .pd-artist-mini { padding: 12px 14px; gap: 12px; }
  .pd-artist-mini-av { width: 38px; height: 38px; font-size: 14px; }

  .fav-empty-card { padding: 32px 20px; }
  .fav-empty-icon { width: 64px; height: 64px; }

  .faq-cats { margin-bottom: 20px; }
  .faq-cat { padding: 7px 14px; font-size: 12px; }
}