/* 演员页 / 明星库 — 与 myui 主题协调的局部样式 */

.actor-breadcrumb {
    margin-bottom: 0;
    font-size: 13px;
}

.actor-breadcrumb a {
    color: #666;
}

.actor-breadcrumb a:hover {
    color: #ff9900;
}

.actor-hero {
    margin-bottom: 15px;
}

.actor-hero__inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.actor-hero__avatar-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
    .actor-hero__avatar-wrap {
        width: 140px;
        height: 140px;
    }
}

.actor-hero__avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.actor-hero__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 48px;
}

.actor-hero__text {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.actor-hero__text h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.3;
    color: #333;
}

.actor-hero__bio {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #666;
    max-height: 6.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.actor-works-tabs {
    margin-bottom: 15px;
}

.actor-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 12px 15px 0;
}

.actor-type-tab {
    appearance: none;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    color: #444;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    line-height: 1.3;
}

.actor-type-tab:hover {
    border-color: #ffcc80;
    color: #e65100;
    background: #fff;
}

.actor-type-tab:focus-visible {
    outline: 2px solid #ff9900;
    outline-offset: 2px;
}

.actor-type-tab[aria-selected="true"] {
    background: #ff9900;
    border-color: #ff9900;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.35);
}

.actor-type-tab__count {
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    opacity: 0.85;
}

.actor-type-panel[hidden] {
    display: none !important;
}

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

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

.actor-empty-tip,
.actor-list-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 明星库字母墙式平铺 */
.actor-board {
    padding: 8px 12px 20px;
}

.actor-board__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.actor-board__grid li {
    margin: 0;
    padding: 0;
}

.actor-board__link {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fafafa;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.actor-board__link:hover {
    border-color: #ff9900;
    background: #fff8f0;
    color: #e65100;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.15);
}

.actor-list-meta {
    font-size: 13px;
    color: #888;
    font-weight: normal;
    margin-left: 12px;
}

.actor-list-meta em {
    font-style: normal;
    color: #ff9900;
    font-weight: 600;
}
