/* 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: 見 main.css 共用 .actor-hot-scroll ---------- */

/* ---------- 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);
}
.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: rgba(240,180,41,0.9); color: #1a1a1a;
    font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 3px;
}
.ac-info { padding: 6px 2px 0; }
.ac-name {
    font-size: 13px; color: var(--text-1); font-weight: 500;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.ac-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ---------- 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 {
    display: flex; flex-wrap: wrap; gap: 12px;
    font-size: 13px; color: var(--text-2); margin-bottom: 16px;
}
.ahi-meta iconify-icon { color: var(--text-3); }
.ahi-score {
    display: 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-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: #ff6b6b; border-color: #ff6b6b; }

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

/* ---------- pagination ---------- */
.pagination {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 6px; padding: 24px 0 8px;
}
.pg-btn, .pg-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    border-radius: var(--radius-pill); border: 1px solid var(--border-2);
    background: var(--bg-elevated); color: var(--text-2); font-size: 13px; transition: all 0.2s;
}
.pg-btn:hover, .pg-num:hover { color: var(--text-1); border-color: var(--border-2); }
.pg-num.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pg-info { font-size: 12px; color: var(--text-3); margin-left: 8px; }

/* ---------- mobile tabbar ---------- */
.mobile-tabbar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 56px; background: var(--bg-sidebar);
    border-top: 1px solid var(--border);
    z-index: 300;
    flex-direction: row;
}
.mtb-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; color: var(--text-3); font-size: 10px;
    transition: color 0.2s;
}
.mtb-item iconify-icon { font-size: 20px; }
.mtb-item.is-active { color: #fff; }

/* ---------- 平板：維持左右並排，縮小尺寸與間距 ---------- */
@media (max-width: 1024px) and (min-width: 769px) {
    .actor-hero { padding: 28px 20px; }
    .actor-hero-inner { gap: 24px; }
    .actor-hero-avatar { width: 132px; height: 182px; }
    .ahi-name { font-size: 24px; margin-bottom: 10px; }
    .ahi-meta { gap: 10px; margin-bottom: 14px; }
    .ahi-blurb {
        margin-bottom: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ---------- 手機：上下堆疊、置中對齊 ---------- */
@media (max-width: 768px) {
    .mobile-tabbar { display: flex; }
    .actor-container, .actor-works-wrap { padding: 12px 12px 72px; }

    .actor-hero { padding: 28px 16px 24px; }
    .actor-hero-inner { flex-direction: column; align-items: stretch; gap: 16px; text-align: center; width: 100%; }
    .actor-hero-avatar {
        align-self: center;
        width: 108px; height: 148px;
        border-radius: var(--radius);
    }
    .actor-hero-info { width: 100%; min-width: 0; }
    .ahi-name { font-size: 21px; margin-bottom: 10px; }
    .ahi-meta { justify-content: center; gap: 8px 14px; margin-bottom: 14px; }
    .ahi-blurb {
        margin-bottom: 18px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .ahi-actions { justify-content: center; }
}
