/* actor/index.html, actor/show.html, actor/detail.html */

.actor-main, .actor-detail-main { flex: 1; }
.actor-container { max-width: var(--content-max); margin: 0 auto; padding: 16px 0 40px; }

/* ---------- hot scroll（首頁明星展示風格，圓形大頭像橫向滑動） ---------- */
.actor-hot-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 4px 10px;
    scrollbar-width: none;
}
.actor-hot-scroll::-webkit-scrollbar { display: none; }

.actor-hot-card {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    flex-shrink: 0; width: 100px;
}
.ahc-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg-elevated);
    transition: border-color 0.2s;
}
.actor-hot-card:hover .ahc-avatar { border-color: var(--accent); }
.ahc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ahc-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: var(--text-3);
}
.ahc-name { font-size: 13px; color: var(--text-2); text-align: center; }
.actor-hot-card:hover .ahc-name { color: var(--accent); }

/* ---------- actor grid（仿 .up-list.list-img.star 固定圖幅） ---------- */
.actor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.actor-card { display: block; }
.ac-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4.2;
    background: var(--bg-elevated);
}
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.actor-card:hover .ac-thumb img { transform: scale(1.06); }
.ac-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: var(--text-3);
}
.ac-score {
    position: absolute; top: 0; right: 0;
    background: var(--accent-2); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 7px;
    z-index: 2;
}
/* 底部漸層字幕，與 vod-caption 統一視覺 */
.ac-info {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 22px 8px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}
.ac-name {
    font-size: 13px; color: #fff; font-weight: 400;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.actor-card:hover .ac-name { color: var(--accent-light); }
.ac-meta { font-size: 11px; color: #cacaca; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- news row ---------- */
.news-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.news-card { display: block; }
.news-thumb {
    position: relative;
    overflow: hidden; aspect-ratio: 16/9;
    background: var(--bg-elevated); margin-bottom: 8px;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-title { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.news-card:hover .news-title { color: var(--accent); }

/* ---------- actor detail hero（仿 .star-nei + .star-nei-info） ---------- */
.actor-hero {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}
.actor-hero-inner {
    max-width: var(--content-max); margin: 0 auto;
    display: flex; gap: 28px; align-items: flex-start;
}
.actor-hero-avatar {
    flex-shrink: 0;
    width: 191px; height: 260px;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.actor-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aha-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; color: var(--text-3);
}
.actor-hero-info { flex: 1; min-width: 0; }
.ahi-name { font-size: 24px; font-weight: 700; color: var(--text-1); margin-bottom: 14px; }
.ahi-meta {
    display: flex; flex-wrap: wrap;
    font-size: 14px; color: var(--text-2); margin-bottom: 16px;
}
.ahi-meta > span { width: 33%; line-height: 30px; }
.ahi-meta iconify-icon { color: var(--accent); margin-right: 4px; }
.ahi-score {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--score-hi); font-weight: 700; font-size: 15px;
}
.ahi-score iconify-icon { font-size: 14px; }
.ahi-blurb { font-size: 14px; color: var(--text-2); line-height: 1.8; margin-bottom: 20px; }
.ahi-actions { display: flex; gap: 12px; }
.ahi-fav-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px;
    border: 1px solid var(--border);
    background: var(--bg-elevated); color: var(--text-2);
    font-size: 14px; transition: all 0.2s;
}
.ahi-fav-btn:hover { color: var(--accent-2); border-color: var(--accent-2); }

.actor-works-wrap { max-width: var(--content-max); margin: 0 auto; padding: 16px 0 40px; }
.actor-works-title { height: 38px; line-height: 38px; position: relative; font-size: 18px; color: var(--text-1); margin-bottom: 10px; border-bottom: 1px solid var(--border); }

@media (max-width: 768px) {
    .actor-hero-inner { flex-direction: column; gap: 20px; padding: 0 12px; }
    .actor-hero-avatar { width: 120px; height: 165px; }
    .actor-container, .actor-works-wrap { padding: 12px 12px 72px; }
}
