/* 基础：2 列 */

.actor-grid {
    display: grid;
    gap: 1rem;
    /* 卡片间距 */
    grid-template-columns: repeat(2, 1fr);
    container-type: inline-size;
}


/* 卡片简单样式，可按需美化 */

.actor-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    background: #212529;
}

.actor-card .thumb {
    aspect-ratio: 3/4;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.thumb .hot {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(220, 53, 69, 1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 1rem;
    color: #fff;
    transform: rotate(-45deg) translate(-20%, -70%);
}

.thumb .hot:hover {
    cursor: pointer;
}


/* .thumb .overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 10%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    transition: height 0.3s ease;
} */

.thumb>.overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 10%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    transition: all 0.3s ease;
}

.thumb .overlay .more {
    color: #999;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
}

.thumb .overlay .more .info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    color: #fff;
}

.thumb .overlay .more .info>div {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
}

.thumb .overlay .more .info span {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 0.2rem;
    white-space: nowrap;
}

.thumb .overlay .more .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.thumb .overlay .more .tags span {
    background: rgba(255, 255, 255, 0.05);
    color: #bbb;
    padding: 0.15rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.thumb .overlay:hover {
    cursor: pointer;
    height: 40%;
    background-color: rgba(0, 0, 0, 0.6);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.thumb img:hover {
    cursor: pointer;
    transform: scale(1.3);
}


/* 统一控制高度：改一行就生效 */

:root {
    --overlay-h: 30%;
}


/* 30% 覆盖，可改成 25% 40% 等 */

.thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--overlay-h);
    /* ❶ 由变量控制 */
    pointer-events: none;
    /* ❷ 不挡鼠标 */
    /* ❸ 三段渐变：最底 40% 极暗 → 中间略暗 → 顶端全透明 */
    background: linear-gradient( to top, rgba(0, 0, 0, .9) 0%, /* 深色 */
    rgba(0, 0, 0, .6) 40%, rgba(0, 0, 0, .2) 70%, /* 过渡 */
    rgba(0, 0, 0, 0) 100%/* 收尾 */
    );
}

.actor-card .title {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: .5rem;
    text-align: center;
    font-size: 1.2rem;
    color: #fff;
    z-index: 1;
}

.actor-card .title .left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25em;
    margin-left: 0.5rem;
}

.actor-card .title .flag-icon {
    vertical-align: middle;
}

.actor-card .title .right {
    font-size: 0.8rem;
    color: #bbbbbb;
    text-align: right;
    display: flex;
    align-items: center;
}

@media(max-width:720px) {
    .thumb>.overlay {
        height: 15%;
    }
}

@media(min-width:720px) {
    .thumb>.overlay {
        height: 12%;
    }
}


/* ≥1024px：4 列 */

@media (min-width: 1024px) {
    .actor-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ≥1440px：6 列 */

@media (min-width: 1440px) {
    .thumb>.overlay {
        height: 15%;
    }
    .actor-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1920px) {
    .thumb>.overlay {
        height: 12%;
    }
    .actor-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 2300px) {
    .thumb>.overlay {
        height: 10%;
    }
    .actor-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}