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

.actor-main, .actor-detail-main { flex: 1; }
.actor-container { max-width: 1760px; margin: 0 auto; padding: 20px 20px 40px; }

/* ---------- hot scroll ---------- */
.actor-hot-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    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: 88px;
}
.ahc-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-2);
    background: var(--bg-elevated);
    transition: border-color 0.2s;
}
.actor-hot-card:hover .ahc-avatar { border-image: var(--accent-grad) 1; border-radius: 50%; }
.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: 12px; color: var(--text-2); text-align: center; }
.actor-hot-card:hover .ahc-name { color: var(--accent); }

/* ---------- actor grid ---------- */
.actor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.actor-card { display: block; }
.ac-thumb {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--bg-elevated);
    border: 2px solid transparent;
    transition: border-color 0.25s;
}
.actor-card:hover .ac-thumb { border-image: var(--accent-grad) 1; }
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.actor-card:hover .ac-thumb img { transform: scale(1.05); }
.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; bottom: 6px; right: 6px;
    background: var(--score-hi); color: #1a1108;
    font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-sm);
}
.ac-info { padding: 8px 2px 0; }
.ac-name {
    font-size: 13px; color: var(--text-1); font-weight: 500;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    transition: color 0.2s;
}
.actor-card:hover .ac-name { color: var(--accent); }
.ac-meta {
    display: inline-flex;
    margin-top: 6px;
    font-size: 11px;
    padding: 2px 10px;
}

/* ---------- 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; border-radius: var(--radius);
    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(--text-1); }

/* ---------- actor detail hero ---------- */
.actor-hero {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 32px 20px;
}
.actor-hero-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; gap: 32px; align-items: flex-start;
}
.actor-hero-avatar {
    flex-shrink: 0;
    width: 160px; height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-2);
}
.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: 28px; font-weight: 800; color: var(--text-1); margin-bottom: 12px; }
.ahi-meta {
    margin-bottom: 16px;
}
.ahi-meta .tag-chip { display: inline-flex; align-items: center; gap: 5px; }
.ahi-score {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--score-hi); font-weight: 700; font-size: 15px;
    padding: 4px 13px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-pill);
}
.ahi-score iconify-icon { font-size: 14px; }
.ahi-score-num {
    font-style: normal;
    font-size: 18px;
    font-weight: 800;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.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-radius: 20px;
    border: 1px solid var(--border-2);
    background: var(--bg-elevated); color: var(--text-2);
    font-size: 14px; transition: all 0.2s;
}
.ahi-fav-btn:hover { color: var(--accent); border-color: var(--accent); }

.actor-works-wrap { max-width: 1760px; margin: 0 auto; padding: 20px 20px 40px; }

/* 分頁、mobile tabbar 沿用 main.css 全站樣式，此頁不再重複定義 */

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