/* ============================================================
   АКТЁРЫ И РЕЙТИНГИ (КИБЕР-СТИЛЬ)
   ============================================================ */

/* --- ОСНОВНОЙ ПРОФИЛЬ АКТЁРА --- */
.actor-profile {
    background: #0a120a;
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;
    font-family: 'Share Tech Mono', 'Rajdhani', monospace;
}

/* --- ШАПКА ПРОФИЛЯ --- */
.profile-header {
    display: flex;
    padding: 25px 30px;
    gap: 35px;
    background: #0d150d;
    border-bottom: 1px solid #1a3a1a;
}

/* ЛЕВАЯ КОЛОНКА (ПОСТЕР) */
.profile-left {
    flex-shrink: 0;
}

.main-poster {
    width: 260px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #1a3a1a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s;
}

.main-poster:hover {
    border-color: #33ff33;
}

.main-poster img {
    width: 100%;
    display: block;
    filter: grayscale(0.2) brightness(0.85);
    transition: all 0.4s ease;
}

.main-poster:hover img {
    filter: grayscale(0) brightness(1);
}

/* КНОПКА УВЕЛИЧЕНИЯ (ЗУМ) */
.zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    background: rgba(10, 18, 10, 0.8);
    color: #33ff33;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: all 0.3s;
    border: 1px solid rgba(51, 255, 51, 0.2);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    text-decoration: none;
}

.zoom-btn:hover {
    background: rgba(51, 255, 51, 0.15);
    border-color: #33ff33;
    box-shadow: 0 0 30px rgba(51, 255, 51, 0.1);
}

.main-poster:hover .zoom-btn {
    opacity: 1;
}

/* ПРАВАЯ КОЛОНКА (ИНФО) */
.profile-right {
    flex: 1;
}

.profile-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.6rem;
    color: #33ff33;
    margin: 0 0 3px 0;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(51, 255, 51, 0.05);
}

.profile-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: #337733;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* СЕТКА ДАННЫХ */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px 25px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(51, 255, 51, 0.04);
}

.grid-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: #337733;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: #88aa88;
    font-weight: 500;
}

.grid-value a {
    color: #33ff33;
    text-decoration: none;
    transition: color 0.3s;
}

.grid-value a:hover {
    color: #77ff77;
    text-decoration: underline;
}

/* --- СЕКЦИИ ПРОФИЛЯ --- */
.profile-section {
    padding: 25px 30px;
    border-bottom: 1px solid #1a3a1a;
}

.profile-section:last-child {
    border-bottom: none;
}

.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: #33ff33;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(51, 255, 51, 0.15), transparent);
}

.section-title .section-icon {
    color: #33ff33;
    font-size: 0.8rem;
}

/* --- БИОГРАФИЯ --- */
.biography-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #88aa88;
}

.biography-text p {
    margin-bottom: 12px;
}

.biography-text strong {
    color: #33ff33;
}

.biography-text em {
    color: #33aa33;
    font-style: italic;
}

/* --- ИНТЕРЕСНЫЕ ФАКТЫ --- */
.facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.facts-list li {
    padding: 10px 16px;
    background: rgba(10, 18, 10, 0.5);
    border: 1px solid #1a3a1a;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 3px solid #33aa33;
    font-size: 0.85rem;
    color: #77aa77;
    transition: all 0.3s;
}

.facts-list li:hover {
    border-color: #33ff33;
    transform: translateX(4px);
}

.facts-list li::before {
    content: '▸ ';
    color: #33ff33;
}

/* --- ФИЛЬМОГРАФИЯ (СЕТКА) --- */
.filmography-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.film-item {
    background: #0d150d;
    border: 1px solid #1a3a1a;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.film-item:hover {
    border-color: #33ff33;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(51, 255, 51, 0.04);
}

.film-posters {
    height: 250px;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: #050f05;
}

.film-posters img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3) brightness(0.75);
    transition: all 0.4s ease;
}

.film-item:hover .film-posters img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

/* --- РЕЙТИНГИ НА ПОСТЕРЕ --- */
.film-rating-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.film-rating {
    background: rgba(0, 0, 0, 0.75);
    color: #33ff33;
    padding: 2px 10px;
    border-radius: 3px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(51, 255, 51, 0.1);
    width: fit-content;
}

.film-rating.kp {
    background: rgba(255, 102, 0, 0.85);
    color: #fff;
    border-color: rgba(255, 102, 0, 0.2);
}

.film-rating.imdb {
    background: rgba(245, 197, 24, 0.85);
    color: #000;
    border-color: rgba(245, 197, 24, 0.2);
}

/* --- КОНТЕНТ КАРТОЧКИ ФИЛЬМА --- */
.film-content {
    padding: 12px 14px 14px;
}

.film-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #33ff33;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 3px;
    text-decoration: none;
    transition: color 0.3s;
}

.film-title:hover {
    color: #77ff77;
}

.film-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: #337733;
}

/* --- КАРТОЧКА АКТЁРА В СОСТАВЕ --- */
.actor-card {
    display: inline-block;
    width: 90px;
    margin-right: 12px;
    text-align: center;
    vertical-align: top;
}

.actor-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 6px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #1a3a1a;
    background: #050f05;
    transition: border-color 0.3s;
}

.actor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
    transition: filter 0.3s;
}

.actor-card:hover .actor-avatar {
    border-color: #33ff33;
}

.actor-card:hover .actor-avatar img {
    filter: grayscale(0);
}

.actor-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: #77aa77;
    display: block;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.3s;
}

.actor-name:hover {
    color: #33ff33;
}

/* ============================================================
   СТРАНИЦА СПИСКА АКТЁРОВ (ИНДЕКС)
   ============================================================ */

/* --- СЕТКА АКТЁРОВ --- */
.actors-list-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
    padding: 10px 0;
}

/* --- КАРТОЧКА АКТЁРА В СПИСКЕ --- */
.actor-index-item {
    background: #0d150d;
    border: 1px solid #1a3a1a;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.actor-index-item:hover {
    transform: translateY(-4px);
    border-color: #33ff33;
    box-shadow: 0 8px 30px rgba(51, 255, 51, 0.04);
}

.actor-index-item a {
    text-decoration: none;
    display: block;
}

/* --- ПОСТЕР В КАРТОЧКЕ --- */
.actor-index-poster {
    height: 210px;
    background: #050f05;
    overflow: hidden;
    position: relative;
}

.actor-index-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3) brightness(0.7);
    transition: all 0.5s ease;
}

.actor-index-item:hover .actor-index-poster img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

/* --- ЗАГЛУШКА (ЕСЛИ НЕТ ПОСТЕРА) --- */
.no-poster {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050f05;
    color: #337733;
    text-align: center;
    padding: 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-poster::before {
    content: '▸';
    margin-right: 6px;
    color: #33aa33;
}

/* --- ИНФОРМАЦИЯ В КАРТОЧКЕ --- */
.actor-index-info {
    padding: 12px 12px 14px;
    text-align: center;
    border-top: 1px solid rgba(51, 255, 51, 0.04);
}

.actor-index-name {
    margin: 0 0 3px 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #33ff33;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actor-index-item:hover .actor-index-name {
    color: #77ff77;
}

.actor-index-prof {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: #337733;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   ПАГИНАЦИЯ (КИБЕР-СТИЛЬ)
   ============================================================ */

.actors-pagination .pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 25px 0 30px;
}

.actors-pagination .pagination li a,
.actors-pagination .pagination li span {
    display: block;
    padding: 6px 14px;
    background: #0d150d;
    border: 1px solid #1a3a1a;
    color: #337733;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.5px;
}

.actors-pagination .pagination li a:hover {
    background: rgba(51, 255, 51, 0.05);
    border-color: #33ff33;
    color: #33ff33;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.03);
}

.actors-pagination .pagination li.active span {
    background: rgba(51, 255, 51, 0.08);
    color: #33ff33;
    border-color: #33ff33;
}

.actors-pagination .pagination li.disabled span {
    color: #1a3a1a;
    cursor: not-allowed;
    opacity: 0.4;
}

/* ============================================================
   АДАПТИВ (КИБЕР-СТИЛЬ)
   ============================================================ */

@media (max-width: 992px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .main-poster {
        width: 200px;
    }

    .profile-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-title {
        font-size: 1.3rem;
    }

    .section-title::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .profile-header {
        padding: 15px;
        gap: 15px;
    }

    .main-poster {
        width: 160px;
    }

    .profile-title {
        font-size: 1rem;
    }

    .profile-subtitle {
        font-size: 0.7rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .profile-section {
        padding: 18px 15px;
    }

    .section-title {
        font-size: 0.7rem;
    }

    .biography-text {
        font-size: 0.8rem;
    }

    .filmography-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .film-posters {
        height: 200px;
    }

    .actors-list-wrap {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .actor-index-poster {
        height: 180px;
    }

    .actor-index-name {
        font-size: 0.75rem;
    }

    .actors-pagination .pagination li a,
    .actors-pagination .pagination li span {
        font-size: 0.45rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 12px;
        gap: 12px;
    }

    .main-poster {
        width: 130px;
    }

    .profile-title {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .profile-subtitle {
        font-size: 0.6rem;
        margin-bottom: 12px;
    }

    .profile-grid {
        gap: 4px;
    }

    .grid-label {
        font-size: 0.4rem;
    }

    .grid-value {
        font-size: 0.7rem;
    }

    .profile-section {
        padding: 12px 10px;
    }

    .section-title {
        font-size: 0.55rem;
        gap: 8px;
    }

    .biography-text {
        font-size: 0.7rem;
        line-height: 1.5;
    }

    .facts-list li {
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    .filmography-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }

    .film-posters {
        height: 170px;
    }

    .film-title {
        font-size: 0.7rem;
    }

    .film-meta {
        font-size: 0.55rem;
    }

    .film-rating {
        font-size: 0.4rem;
        padding: 1px 6px;
    }

    .actors-list-wrap {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .actor-index-poster {
        height: 150px;
    }

    .actor-index-name {
        font-size: 0.65rem;
    }

    .actor-index-prof {
        font-size: 0.5rem;
    }

    .actor-avatar {
        width: 50px;
        height: 50px;
    }

    .actor-name {
        font-size: 0.6rem;
    }

    .actors-pagination .pagination {
        gap: 3px;
        flex-wrap: wrap;
    }

    .actors-pagination .pagination li a,
    .actors-pagination .pagination li span {
        font-size: 0.4rem;
        padding: 4px 8px;
    }

    .zoom-btn {
        width: 30px;
        height: 30px;
        font-size: 0.5rem;
        bottom: 10px;
        right: 10px;
    }
}