/* —— 演员列表 —— */
.actor-list-header {
    margin-bottom: 1.5rem;
}

.actor-list-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.35rem;
}

.actor-list-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}

.actor-name-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px 16px;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.actor-name-card {
    display: block;
    padding: 14px 12px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.actor-name-card:hover {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 4px 14px rgba(63, 143, 95, 0.12);
}

.actor-name-card .letter {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actor-empty-tip {
    padding: 2rem;
    text-align: center;
    color: #888;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* —— 演员详情顶栏 —— */
.actor-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.actor-hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #eee;
    flex-shrink: 0;
}

.actor-hero-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #2d6b4a);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    border: none;
}

.actor-hero-text h1 {
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
    color: #222;
}

.actor-hero-text .actor-bio {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #666;
    max-width: 640px;
}

/* —— 作品 Tab（与 default 逻辑一致，样式换肤） —— */
.actor-works-tabs {
    padding-top: 4px;
}

.actor-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.actor-tab {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    color: #444;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.actor-tab:hover {
    border-color: rgba(63, 143, 95, 0.45);
    color: var(--primary-color);
    background: #fff;
}

.actor-tab:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.actor-tab[aria-selected="true"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 10px rgba(63, 143, 95, 0.35);
}

.actor-tab-count {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
}

.actor-tab[aria-selected="true"] .actor-tab-count {
    background: rgba(255, 255, 255, 0.22);
}

.actor-tab-panel {
    animation: actor-tab-in 0.22s ease-out;
}

@keyframes actor-tab-in {
    from {
        opacity: 0.65;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.actor-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* 演员详情页：移动端 */
@media (max-width: 768px) {
    .actor-detail-page .actor-tabs-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 16px;
        padding-bottom: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .actor-detail-page .actor-tab {
        flex: 0 0 auto;
        width: max-content;
        max-width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }

    .actor-detail-page .actor-works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 0.55rem;
    }

    .actor-detail-page .thumbnail-container {
        height: 260px;
    }

    .actor-detail-page .video-item img {
        height: 100%;
        width: 100%;
        display: block;
        object-fit: cover;
    }

    .actor-detail-page .video-info {
        padding: 0.5rem 0.4rem;
    }

    .actor-detail-page .video-info h3 {
        height: auto;
        font-size: 0.82rem;
        line-height: 1.35;
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .actor-detail-page .category-tag {
        font-size: 0.68rem;
        padding: 0.15rem 0.35rem;
    }

    .actor-detail-page .rating {
        font-size: 0.72rem;
        padding: 2px 5px;
        top: 6px;
        right: 6px;
    }

    .actor-detail-page .actor-empty-tip {
        padding: 1.25rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .actor-name-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .actor-detail-page .actor-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .actor-detail-page .actor-works-grid {
        gap: 0.65rem 0.45rem;
    }
}
