/* 藝人頁（/person/藝人，Star::PILOT 名單才載入） */

/* ---- 頁首：封面圖模糊當背景，圓形頭像 ---- */
.star-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
}
.star-hero-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.45) saturate(1.2);
  transform: scale(1.1);
}
.star-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.15) 0%, rgba(10, 22, 40, 0.65) 100%);
}
.star-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 28px;
}
.star-avatar {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.12);
}
.star-avatar.is-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
}
.star-hero-text { min-width: 0; }
.star-name {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.02em;
}
.star-tagline {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}
.star-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.star-chips span,
.star-chips a {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.star-chips .star-chip-ig {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}

/* ---- 區塊 ---- */
.star-layout { max-width: 760px; }
.star-sec { margin: 8px 0 32px; }
.star-h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.star-h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--accent);
}
.star-empty { color: var(--text-tertiary); }

/* ---- 新聞 ---- */
.star-news {
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}
.star-news-link {
  display: flex;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.star-news-img {
  flex: 0 0 112px;
  width: 112px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-section);
}
.star-news-body { min-width: 0; }
.star-news-h {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.star-news-meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
.star-news.is-feature { padding-top: 0; }
.star-news.is-feature .star-news-link { flex-direction: column; gap: 10px; }
.star-news.is-feature .star-news-img {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}
.star-news.is-feature .star-news-h {
  font-size: 1.2rem;
  -webkit-line-clamp: 3;
}
.star-news-desc {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.star-related { margin-top: 8px; }
.star-related summary {
  display: inline-block;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-light);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-section);
  list-style: none;
}
.star-related summary::-webkit-details-marker { display: none; }
.star-related summary::after { content: " ▾"; }
.star-related[open] summary::after { content: " ▴"; }
.star-related ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--border);
}
.star-related li {
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 4px 0;
}
.star-related li a { color: var(--text); }
.star-related li span {
  margin-left: 6px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ---- 作品：橫向滑動 ---- */
.star-works {
  list-style: none;
  margin: 0 -16px;
  padding: 2px 16px 8px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.star-works::-webkit-scrollbar { display: none; }
.star-work {
  flex: 0 0 140px;
  scroll-snap-align: start;
  min-height: 96px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.star-work-type {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-light);
  color: #8a5a00;
}
.star-work-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

/* ---- 基本資料 ---- */
.star-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.star-facts > div {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  min-width: 0;
}
.star-facts dt {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.star-facts dd {
  margin: 2px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* ---- 常見問題：收合 ---- */
.star-faq details {
  border-bottom: 1px solid var(--border-light);
}
.star-faq summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.star-faq summary::-webkit-details-marker { display: none; }
.star-faq summary::after { content: "+"; color: var(--text-tertiary); font-weight: 400; }
.star-faq details[open] summary::after { content: "−"; }
.star-faq p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.star-credit {
  margin: 12px 0 0;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}
.star-credit a { color: inherit; text-decoration: underline; }

/* ---- 審稿模式 ---- */
.star-src {
  margin-left: 6px;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-tertiary);
  text-decoration: underline;
}
.star-draft-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.6;
}

[data-theme="night"] .star-work-type { color: var(--accent); background: rgba(255, 193, 7, 0.12); }

/* 桌機：左欄新聞、右欄資料 */
@media (min-width: 960px) {
  .star-layout {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas:
      "latest works"
      "latest facts"
      "latest faq"
      "more   .";
    grid-template-rows: auto auto 1fr auto;
    column-gap: 40px;
    align-items: start;
  }
  .star-sec.is-latest { grid-area: latest; }
  .star-sec.is-works  { grid-area: works; }
  .star-sec.is-facts  { grid-area: facts; }
  .star-sec.is-faq    { grid-area: faq; }
  .star-sec.is-more   { grid-area: more; }
  .star-works {
    margin: 0;
    padding: 0;
    overflow: visible;
    flex-wrap: wrap;
  }
  .star-work { flex: 1 1 140px; min-height: 0; }
  .star-news.is-feature .star-news-img { aspect-ratio: 2 / 1; }
  .star-avatar { width: 112px; height: 112px; }
  .star-name { font-size: 2.4rem; }
}

@media (max-width: 600px) {
  .star-hero-inner { gap: 14px; padding-top: 24px; padding-bottom: 22px; }
  .star-avatar { width: 76px; height: 76px; }
  .star-name { font-size: 1.6rem; }
  .star-facts { grid-template-columns: 1fr 1fr; }
}
