.actor-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.actor-photo {
    flex-shrink: 0;
}

.actor-photo img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.actor-photo .no-photo {
    width: 200px;
    height: 300px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #adb5bd;
    font-size: 14px;
}

.actor-info {
    flex: 1;
}

.actor-info h1 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #2c3e50;
}

.actor-dates {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 14px;
}

.actor-biography {
    line-height: 1.8;
    color: #333;
}

.actor-movies ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    padding: 0;
}

/* .actor-movies ul li {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    transition: 0.2s;
} */

/* .actor-movies ul li:hover {
    background: #e9ecef;
} */

    .actor-movies ul li {
        list-style: none;
        padding: 0;
        margin: 0;
    }
.actor-movies ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
}

.actor-movies ul li a:hover {
    color: #3498db;
}

.actor-movies ul li .role {
    color: #6c757d;
    font-size: 13px;
}

@media (max-width: 600px) {
    .actor-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* .actor-photo img {
        width: 150px;
    } */
}

.actors-header {
    margin-bottom: 30px;
}

.actors-header h1 {
    margin: 0;
}

/* ============================================
   СЕТКА АКТЕРОВ
   ============================================ */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(180px, 20vw, 260px), 1fr));
    gap: 16px;
    margin: 30px 0;
}

/* ============================================
   КАРТОЧКА АКТЕРА (БЕЗ УВЕЛИЧЕНИЯ)
   ============================================ */
.actor-card {
    display: flex;
    background-color: #f4f6f7;
    border-radius: 6px;
    border: 0.5px solid #94999e75;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.actor-card a {
    width: 100%;
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.actor-card a:hover {
    text-decoration: none;
}

    .real_img {display: flex;
    margin-bottom: 6px;
    width: 210px;
    height: 315px;}
    .real_img img {width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
    background: url(/templates/redmy/images/no-poster.svg) no-repeat center / 100% 100%;}

/* ============================================
   ИЗОБРАЖЕНИЕ С УВЕЛИЧЕНИЕМ ПРИ НАВЕДЕНИИ
   ============================================ */
.actor-img {
    display: flex;
    flex-shrink: 0;
    width: clamp(60px, 10vw, 80px);
    aspect-ratio: 100 / 150;
    overflow: hidden;
    background: #e9ecef;
    border-radius: 6px 0 0 6px;
}

.actor-card .photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: url(../images/no-poster.svg) no-repeat center / cover;
    transition: transform 0.4s ease;
}

/* ✅ УВЕЛИЧЕНИЕ ТОЛЬКО ИЗОБРАЖЕНИЯ ПРИ НАВЕДЕНИИ */
.actor-card:hover .photo {
    transform: scale(1.1);
}

/* ============================================
   ИНФОРМАЦИЯ СПРАВА (ИСПРАВЛЕНО)
   ============================================ */
.actor-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 8px 12px 10px 4px;
    overflow: hidden;
    min-height: 0;
}

/* Обертка для текстовой информации */
.actor-info-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    overflow: hidden;
}

.info-name {
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.info-name-en {
    font-size: clamp(10px, 0.9vw, 13px);
    color: #000;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.info-career {
    font-size: clamp(10px, 0.8vw, 12px);
    color: #000;
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    min-width: 0;
    width: 100%;
}

/* Блок с количеством фильмов - всегда в нижнем правом углу */
.info-movies-count {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    min-height: 24px;
    padding-top: 4px;
}

.info-movies-quantity {
    padding: 2px 10px 0px 10px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 4px;
    border: 0.5px solid #94999e;
    color: #94999e;
    font-size: clamp(10px, 0.9vw, 13px);
}

.actor-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.load-more-wrap {
    text-align: center;
    margin: 30px 0;
}

.load-more-btn {
    padding: 12px 40px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.load-more-btn:hover {
    background: #2980b9;
}

.load-more-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.load-more-btn .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.total-count {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    margin-top: 10px;
}

.no-actors {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.dark-theme .actor-card {
    background: #2d2d2d;
}

.dark-theme .actor-card .name {
    color: #e9ecef;
}

.dark-theme .actor-card .info {
    color: #adb5bd;
}

.dark-theme .load-more-btn {
    background: #2980b9;
}

.dark-theme .load-more-btn:hover {
    background: #1a6d9e;
}

.back {
    text-decoration: none;
    color: #fff;
    padding: 0px 6px;
    width: auto;
    height: 44px;
    margin: 16px 6px;
    cursor: pointer;
    display: flex;
    border-radius: 30px;
    border: 1px solid var(--color-text-secondary);
}

.back:after {
    content: "";
    background-color: #20282d;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    opacity: 0;
    visibility: hidden;
    margin-top: -60px;
    -webkit-transition: margin-top .2s ease;
    transition: margin-top 0.2s ease;
}

.back_box {
    background-color: aliceblue;
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    color: #a1a1a1;
    align-items: center;
    gap: 9px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .actors-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .actor-img {
        width: clamp(50px, 10vw, 70px);
    }
}

@media (max-width: 576px) {
    .actors-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .actor-img {
        width: clamp(40px, 12vw, 60px);
    }
    
    .actor-card a {
        gap: 8px;
    }
    
    .actor-info {
        padding: 6px 8px 8px 2px;
    }
}