/* ===== Actor Index ===== */
.actor-main {
  padding: 16px 0 60px;
}
.actor-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* Section header — consistent with index page */
.actor-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 20px;
  margin-bottom: 16px;
}
.actor-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.actor-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.actor-section-title iconify-icon {
  color: var(--accent);
  font-size: 18px;
}
.actor-section-more {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.actor-section-more:hover { color: var(--accent); }

/* 荧屏巨星 — horizontal scroll row */
.actor-hot-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
  padding: 0 0 4px;
}
.actor-hot-scroll::-webkit-scrollbar { display: none; }
.actor-hot-scroll > li {
  flex: 0 0 90px;
}
.actor-hot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.actor-hot-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-mid);
  flex-shrink: 0;
  background: var(--bg-light);
  margin: 0;
}
.actor-hot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.actor-hot-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--text-muted);
}
.actor-hot-name {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 90px;
}
.actor-hot-card:hover .actor-hot-name { color: var(--accent); }

/* 全部明星 — responsive grid */
.actor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
}
.actor-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.actor-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.actor-card:hover { transform: translateY(-3px); }
.actor-card-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-light) url('../img/load.gif') no-repeat center center;
  background-size: cover;
  margin: 0;
}
.actor-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.actor-card:hover .actor-card-thumb img { transform: scale(1.04); }
.actor-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: var(--text-muted);
}
.actor-card-score {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.55);
  color: #f5c518;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}
.actor-card-info {
  padding: 8px 10px 10px;
}
.actor-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actor-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Actor Detail ===== */

/* Hero */
.actor-hero {
  background: #0d1b2a;
  padding: 36px 16px 28px;
  position: relative;
  overflow: hidden;
}
.actor-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255, 85, 102, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.actor-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}
.actor-hero-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  background: #1e3a5f;
  margin: 0;
}
.actor-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.actor-hero-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: rgba(255,255,255,0.3);
}
.actor-hero-info {
  flex: 1;
  min-width: 0;
}
.actor-hero-name {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.actor-hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.actor-hero-meta-sep {
  opacity: 0.4;
}
.actor-hero-blurb {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.actor-hero-fav {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #e91e8c;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.actor-hero-fav:hover { opacity: 0.85; }

/* Detail body */
.actor-detail-main {
  padding: 16px 0 60px;
}
.actor-detail-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}
.actor-detail-content {
  min-width: 0;
}

/* Tabs */
.actor-tabs-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.actor-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.atab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.atab.active { color: var(--accent); border-bottom-color: var(--accent); }
.atab:hover  { color: var(--accent); }
.actor-tab-content {
  padding: 16px;
}

/* 个人资料 grid */
.actor-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.actor-info-item {
  padding: 10px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.actor-info-item:nth-child(4n) { border-right: none; }
.actor-info-item--full {
  grid-column: 1 / -1;
  border-right: none;
}
.actor-info-item:last-child,
.actor-info-item--full:last-child { border-bottom: none; }
.actor-info-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.actor-info-val {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

/* Bio content */
.actor-bio {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* 相关作品 */
.actor-works-section {
  margin-bottom: 20px;
}
.actor-works-section:last-child { margin-bottom: 0; }
.actor-works-type-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid var(--accent);
}
.actor-works-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
}

/* actor-grid inside show page */
.actor-grid--show {
  margin-bottom: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .actor-grid { grid-template-columns: repeat(4, 1fr); }
  .actor-works-grid { grid-template-columns: repeat(4, 1fr); }
  .actor-detail-container { padding: 0 12px; }
}
@media (max-width: 767px) {
  .actor-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .actor-works-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .actor-hero-inner { gap: 16px; }
  .actor-hero-avatar { width: 80px; height: 80px; }
  .actor-hero-name { font-size: 20px; }
  .actor-info-grid { grid-template-columns: repeat(2, 1fr); }
  .actor-info-item:nth-child(4n) { border-right: 1px solid var(--border); }
  .actor-info-item:nth-child(2n) { border-right: none; }
  .actor-info-item--full { border-right: none; }
}
@media (max-width: 479px) {
  .actor-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .actor-works-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .actor-hot-card { flex: 0 0 76px; }
  .actor-hot-avatar { width: 58px; height: 58px; }
}
