.DLEPush {
    z-index: 2001;
    position: fixed;
    right: 20px;
    top: 20px
}

@keyframes DLEPush-show {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.DLEPush-notification.wrapper {
    animation-name: DLEPush-show;
    animation-duration: 1s;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    color: #333;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 15px rgb(0 0 0 / 20%);
    background-color: #fff;
    border-radius: 10px
}

.DLEPush-notification .DLEPush-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 45px;
    height: 100%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    text-align: center;
}

.DLEPush-notification .DLEPush-icon svg {
    scale: .8;
}

.DLEPush-notification .DLEPush-header {
    font-weight: 500;
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem;
    margin-left: 1rem;
    margin-top: .5rem;
}

.DLEPush-notification .DLEPush-header:empty {
    margin-top: 0;
}

.DLEPush-notification .DLEPush-message {
    grid-column: 2;
    grid-row: 2;
    font-size: .875rem;
    margin: 1rem;
}

.DLEPush-notification .DLEPush-message li,
.DLEPush-notification .DLEPush-message ul {
    list-style-type: none;
    padding-left: 0;
}

.DLEPush-notification .DLEPush-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-weight: 300;
    background: none;
    border: 0;
    font-size: 1.15rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: inherit;
    outline: 0;
    opacity: 0.75;
}

@media only screen and (min-width: 601px) {
    .DLEPush-notification.wrapper {
        min-width: 400px;
    }
}

.DLEPush-notification .DLEPush-close:hover {
    opacity: 1;
}

.DLEPush-notification.wrapper.push-success {
    background-color: #e0f2f1;
}

.DLEPush-notification.wrapper.push-success .DLEPush-icon {
    background-color: #00897b;
}

.DLEPush-notification.wrapper.push-warning {
    background-color: #FFF3E0;
}

.DLEPush-notification.wrapper.push-warning .DLEPush-icon {
    background-color: #FF9800;
}

.DLEPush-notification.wrapper.push-error {
    background-color: #FBE9E7;
}

.DLEPush-notification.wrapper.push-error .DLEPush-icon {
    background-color: #FF5722;
}

input[type="text"].comments_author_field {
    width: 100%;
    margin-bottom: 10px;
}

.frating {
    border-radius: 5px;
    padding: 4px;
    background-color: #beccd9;
}

.rating-count {
    margin-bottom: 4px;
    display: flex;
    gap: 4px;
}

.rating-count span {
    font-size: 13px;
    padding: 3px;
    border-radius: 3px;
    background: #ffffff;
}

.actor_list__wrap {
    display: flex;
    flex-direction: column;
}

.actor_list__title {
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 14px;
}


/* 
.actor_list_mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
} */

.persone_item {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 24px) / 5);
    max-width: calc((100% - 24px) / 5);
}

.persone_item .link {
    width: 72px;
    height: 112px;
    margin-bottom: 3px;
}

.persone_item .link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.persone_item a span {
    font-size: 13px;
    color: var(--accent-red);
    overflow-wrap: anywhere;
}

.persone_item a span:hover {
    text-decoration: underline;
}

.actor_full {
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}

.actor_full__left {
    flex: 0 0 30%;
    max-width: 30%;
    margin-right: 20px;
}

.actor_full__image {
    border-radius: 10px;
    overflow: hidden;
}

.actor_full__image img {
    width: 100%;
    border-radius: 10px;
}

.actor_full__right {
    flex: 1;
    min-width: 0;
}

.actor_full__name {
    margin-bottom: 10px;
    display: block;
}

.actor_full__list .item:not(:last-child) {
    margin-bottom: 4px;
}

.actor_full__list .item span:first-child {
    font-weight: 700;
}

.actor_full__text {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 12px;
}

.actor_full__text h1,
.actor_full__text h2,
.actor_full__text h3,
.actor_full__text h4,
.actor_full__text h5 {
    margin-bottom: 8px;
    display: block;
}

.actor_full__text h1 {
    font-size: 28px;
}

.actor_full__text h2 {
    font-size: 23px;
}

.actor_full__text h3 {
    font-size: 22px;
}

.actor_full__text h4 {
    font-size: 20px;
}

.actor_full__text h5 {
    font-size: 18px;
}

.actor_full__text ul li:not(:last-child) {
    margin-bottom: 4px;
}

.actor_full__text ul li {
    position: relative;
    padding-left: 15px;
}

.actor_full__text ul li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #587ba1;
}

.actor_full__text ul {
    margin-bottom: 8px;
}

.actor_full__text p {
    margin-bottom: 8px;
}


/* Стили для системы рейтинга актеров */

.actor-rating {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}


/* Стили для сообщений о статусе голосования */

.vote-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
}

.vote-status.voted-like {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vote-status.voted-dislike {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.vote-status.not-voted {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.vote-status i {
    font-size: 16px;
}

.rating-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.like-btn,
.dislike-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.like-btn::before,
.dislike-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.like-btn:hover::before,
.dislike-btn:hover::before {
    left: 100%;
}

.like-btn:hover {
    background: #e8f5e8;
    border-color: #28a745;
    color: #28a745;
}

.dislike-btn:hover {
    background: #fdeaea;
    border-color: #dc3545;
    color: #dc3545;
}

.like-btn.voted {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.dislike-btn.voted {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.like-btn:disabled,
.dislike-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}


/* Улучшенные состояния кнопок */

.like-btn:not(.voted):not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.dislike-btn:not(.voted):not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.like-btn.voted:hover,
.dislike-btn.voted:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.like-btn.voted {
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.dislike-btn.voted {
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.like-btn i,
.dislike-btn i {
    font-size: 16px;
}

.rating-info {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.total-votes {
    font-style: italic;
}


/* Стили для списка актеров */

.actor-card .actor-rating {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.actor-card .rating-buttons {
    justify-content: center;
    margin-bottom: 5px;
}

.actor-card .like-btn,
.actor-card .dislike-btn {
    padding: 5px 8px;
    font-size: 12px;
}

.actor-card .rating-info {
    font-size: 11px;
}


/* Адаптивность */

@media (max-width: 768px) {
    .rating-buttons {
        flex-direction: column;
        gap: 5px;
    }
    .like-btn,
    .dislike-btn {
        justify-content: center;
    }
}


/* Стили для тултипа актера */

.actor-tooltip {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 350px;
    min-width: 280px;
    font-family: Arial, sans-serif;
    transition: all 0.2s ease;
    overflow: hidden;
}

.tooltip-header {
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}


/* Стили для галереи фотографий в тултипе */

.tooltip-photo-gallery {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding: 5px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
}

.tooltip-photo-gallery .photo-item {
    flex-shrink: 0;
    position: relative;
}

.tooltip-gallery-photo {
    width: 50px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.tooltip-gallery-photo:hover {
    transform: scale(1.1);
    border-color: #007bff;
}

.photo-item.poster-photo .tooltip-gallery-photo {
    border-color: #28a745;
    border-width: 2px;
}

.photo-item.main-gallery-photo .tooltip-gallery-photo {
    border-color: #ffc107;
    border-width: 2px;
}


/* Старые стили для одиночного постера (теперь не используются) */

.tooltip-info {
    flex: 1;
    min-width: 0;
}

.tooltip-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.tooltip-fullname {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.tooltip-body {
    padding: 12px 15px;
}

.tooltip-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.tooltip-item:last-child {
    margin-bottom: 0;
}

.tooltip-item .label {
    font-weight: 500;
    color: #555;
    margin-right: 10px;
}

.tooltip-item .value {
    color: #333;
    text-align: right;
    flex: 1;
}

.tooltip-rating {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.rating-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.rating-stats .likes,
.rating-stats .dislikes {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.rating-stats .likes {
    background: #d4edda;
    color: #155724;
}

.rating-stats .dislikes {
    background: #f8d7da;
    color: #721c24;
}

.tooltip-description {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.tooltip-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.tooltip-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.tooltip-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.tooltip-link i {
    font-size: 11px;
}


/* Анимация появления */

.actor-tooltip {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* pointer-events: none; */
}

.actor-tooltip.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}


/* Улучшенные ховер эффекты */

.persone_item {
    transition: transform 0.2s ease;
    cursor: pointer;
    position: relative;
}

.persone_item:hover {
    transform: translateY(-2px);
}


/* Стили для фото из фильма при наведении */

.persone_item .link {
    position: relative;
    overflow: hidden;
}

.persone_item .actor-poster,
.persone_item .actor-role-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.persone_item .actor-poster {
    opacity: 1;
    z-index: 1;
}

.persone_item .actor-role-photo {
    opacity: 0;
    z-index: 2;
    display: block !important;
    /* Переопределяем inline стиль */
}


/* Фото роли показывается только при наведении если есть класс has-role-photo */

.persone_item.has-role-photo:hover .actor-role-photo {
    opacity: 1;
}


/* Постер актера скрывается при наведении только если есть фото роли */

.persone_item.has-role-photo:hover .actor-poster {
    opacity: 0;
}


/* Стили для информации о ролях в tooltip */

.tooltip-roles {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tooltip-roles-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
}

.tooltip-role-item {
    margin-bottom: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #007bff;
}

.tooltip-role-item:last-child {
    margin-bottom: 0;
}

.tooltip-role-movie {
    font-weight: 600;
    color: #007bff;
    font-size: 13px;
    margin-bottom: 5px;
}

.tooltip-role-name,
.tooltip-role-character,
.tooltip-role-description {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.3;
}

.tooltip-role-name:last-child,
.tooltip-role-character:last-child,
.tooltip-role-description:last-child {
    margin-bottom: 0;
}

.tooltip-role-name .label,
.tooltip-role-character .label,
.tooltip-role-description .label {
    color: #6c757d;
    font-weight: 500;
}

.tooltip-role-name .value,
.tooltip-role-character .value,
.tooltip-role-description .value {
    color: #333;
    font-weight: 400;
}


/* Адаптивность */

@media (max-width: 768px) {
    .actor-tooltip {
        max-width: 90vw;
        min-width: 250px;
        left: 5vw !important;
        right: 5vw !important;
    }
    .tooltip-header {
        padding: 12px;
    }
    .tooltip-body {
        padding: 10px 12px;
    }
    .tooltip-footer {
        padding: 8px 12px;
    }
}

.tooltip-roles {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tooltip-roles-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
}

.tooltip-role-item {
    margin-bottom: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #007bff;
}

.tooltip-role-item:last-child {
    margin-bottom: 0;
}

.tooltip-role-movie {
    font-weight: 600;
    color: #007bff;
    font-size: 13px;
    margin-bottom: 5px;
}

.tooltip-role-name,
.tooltip-role-character,
.tooltip-role-description {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.3;
}

.tooltip-role-name:last-child,
.tooltip-role-character:last-child,
.tooltip-role-description:last-child {
    margin-bottom: 0;
}

.tooltip-role-name .label,
.tooltip-role-character .label,
.tooltip-role-description .label {
    color: #6c757d;
    font-weight: 500;
}

.tooltip-role-name .value,
.tooltip-role-character .value,
.tooltip-role-description .value {
    color: #333;
    font-weight: 400;
}


/* Адаптивность для мобильных устройств */

@media (max-width: 768px) {
    .tooltip-roles {
        margin-top: 10px;
        padding-top: 10px;
    }
    .tooltip-role-item {
        padding: 6px;
        margin-bottom: 8px;
    }
    .tooltip-role-movie {
        font-size: 12px;
    }
    .tooltip-role-name,
    .tooltip-role-character,
    .tooltip-role-description {
        font-size: 11px;
    }
}


/* Стили для улучшенного отображения ролей актера */


/* Заголовок и статистика ролей */

.roles-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.roles-stats {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.roles-count,
.movies-count {
    padding: 8px 15px;
    background: var(--accent-red);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.movies-count {
    background: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}


/* Контролы управления */

.roles-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.roles-search {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.roles-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: #f8f9fa;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.roles-search input:focus {
    border-color: var(--accent-red);
    outline: none;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.roles-search .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tt-dark);
    opacity: 0.7;
}

.roles-filter select {
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.roles-filter select:focus {
    border-color: var(--accent-red);
    outline: none;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
    border: 2px solid #e9ecef;
}

.view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.view-btn:hover,
.view-btn.active {
    background: #007bff;
    color: white;
}

.actor-movies-section .section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}


/* Улучшенная структура отображения ролей */

.actor-movies-container {
    width: 100%;
}


/* Сетка для отображения ролей (по умолчанию) */

.actor-movies-container[data-view="grid"] .movie-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}


/* Список для отображения ролей */

.actor-movies-container[data-view="list"] .movie-roles-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.movie-role-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.movie-role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #007bff;
}

.role-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.role-movie-poster {
    flex-shrink: 0;
    width: 80px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.role-movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.role-movie-poster:hover img {
    transform: scale(1.1);
}

.role-movie-info {
    flex: 1;
    min-width: 0;
}

.role-movie-title {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 5px;
    line-height: 1.3;
}

.role-movie-year {
    font-size: 14px;
    color: #333;
    opacity: 0.8;
    margin-bottom: 10px;
}

.role-character-name {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 10px;
}

.role-description {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    opacity: 0.9;
}


/* Улучшенные стили галереи ролей */

.role-content {
    margin-top: 15px;
}

.role-poster-section,
.role-gallery-section {
    margin-top: 15px;
}

.role-poster-section h5,
.role-gallery-section h5 {
    font-size: 14px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 10px;
    padding-left: 8px;
    border-left: 3px solid #007bff;
}

.role-poster {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.role-poster-img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.role-poster a:hover .role-poster-img {
    transform: scale(1.05);
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}


/* Компактная галерея для карточек ролей */

.role-gallery-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.role-gallery-compact .gallery-item {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.role-gallery-compact .gallery-item:hover {
    transform: scale(1.1);
    z-index: 10;
}

.role-gallery-compact .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-counter {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    line-height: 1;
}


/* Развернутая галерея */

.role-gallery-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.role-gallery-expanded .gallery-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.role-gallery-expanded .gallery-item:hover {
    transform: translateY(-5px);
}

.role-gallery-expanded .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


/* Переключатель галереи */

.gallery-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #007bff;
    cursor: pointer;
    font-size: 12px;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.gallery-toggle:hover {
    background: rgba(220, 53, 69, 0.1);
}


/* Пагинация */

.roles-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #333;
    font-size: 14px;
    margin: 0 15px;
}


/* Индикатор загрузки */

.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 40px;
    color: #333;
    font-size: 16px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.actor-movies-tabs {
    width: 100%;
}

.movie-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    justify-content: center;
}

.movie-tab-btn {
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.movie-tab-btn:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.movie-tab-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.movie-tab-title {
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-tab-year {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

.movie-tabs-content {
    min-height: 200px;
}

.movie-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.movie-tab-content.active {
    display: block;
}

.movie-content-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.role-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.role-info:last-child {
    margin-bottom: 0;
}

.role-character {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.role-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.role-poster-section,
.role-gallery-section {
    margin-top: 20px;
}

.role-poster-section h5,
.role-gallery-section h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #007bff;
}

.role-poster {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
}

.role-poster-img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.role-poster a:hover .role-poster-img {
    transform: scale(1.05);
    border-color: #007bff;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.role-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.role-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.role-gallery-item:hover {
    transform: translateY(-5px);
}

.role-gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.role-gallery-item:hover .role-gallery-img {
    transform: scale(1.1);
}


/* Адаптивность для улучшенного интерфейса ролей */

@media (max-width: 768px) {
    .actor-movies-section {
        margin: 20px -20px;
        border-radius: 0;
        padding: 15px;
    }
    .roles-header {
        gap: 10px;
        padding: 12px;
    }
    .roles-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .roles-search {
        min-width: auto;
    }
    .roles-filter,
    .view-toggle {
        align-self: center;
    }
    .actor-movies-container[data-view="grid"] .movie-roles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .movie-role-card {
        padding: 15px;
    }
    .role-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .role-movie-poster {
        width: 100px;
        height: 150px;
    }
    .role-character-name {
        font-size: 14px;
        padding: 4px 10px;
    }
    .role-gallery-compact .gallery-item {
        width: 50px;
        height: 70px;
    }
    .role-gallery-expanded {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
        padding: 10px;
    }
    .role-gallery-expanded .gallery-item img {
        height: 160px;
    }
    .roles-pagination {
        flex-wrap: wrap;
        gap: 5px;
        padding: 15px;
    }
    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    .pagination-info {
        width: 100%;
        text-align: center;
        margin: 10px 0 0 0;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .movie-tab-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .role-poster-img {
        width: 120px;
        height: 180px;
    }
    .role-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    .role-gallery-img {
        height: 160px;
    }
}