.acteur-page {
    width: min(1500px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 60px;
}

.acteur-hero {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 24px;
    margin-bottom: 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
}

.acteur-hero-image {
    width: 150px;
    aspect-ratio: 2 / 3;
    flex-shrink: 0;
    overflow: hidden;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
}

.acteur-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.acteur-hero-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #30363d;
    font-size: 50px;
}

.acteur-hero-content {
    min-width: 0;
}

.acteur-back {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    color: #8b949e;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.acteur-back:hover {
    color: #58a6ff;
}

.page-kicker {
    display: block;
    margin-bottom: 5px;
    color: #58a6ff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.acteur-hero h1 {
    margin: 0;
    color: #f0f6fc;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}

.acteur-infos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 17px;
}

.acteur-infos span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8b949e;
    font-size: 13px;
}

.acteur-infos i {
    color: #58a6ff;
    font-size: 12px;
}

.acteur-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.acteur-stat-card {
    position: relative;
    min-width: 0;
    min-height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 18px 18px 65px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
}

.acteur-stat-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 8px;
    color: #58a6ff;
    font-size: 14px;
    transform: translateY(-50%);
}

.acteur-stat-card>span {
    margin-bottom: 5px;
    color: #8b949e;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.acteur-stat-card>strong {
    color: #f0f6fc;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.acteur-stat-card>small {
    margin-top: 4px;
    color: #58a6ff;
    font-size: 11px;
    font-weight: 600;
}

.acteur-personnages {
    margin-bottom: 34px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 14px;
}

.section-heading h2,
.acteur-films-toolbar h2 {
    margin: 0;
    color: #f0f6fc;
    font-size: 21px;
}

.personnages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.personnage-card {
    position: relative;
    min-width: 0;
    min-height: 95px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px;
    overflow: hidden;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
}

.personnage-card:first-child {
    border-color: rgba(88, 166, 255, 0.55);
}

.personnage-rank {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #21262d;
    border-radius: 8px;
    color: #8b949e;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transform: none;
}

.personnage-card:first-child .personnage-rank {
    background: rgba(88, 166, 255, 0.12);
    color: #58a6ff;
}

.personnage-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 0;
}

.personnage-content strong {
    padding-right: 35px;
    overflow: hidden;
    color: #f0f6fc;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.personnage-content span {
    color: #8b949e;
    font-size: 11px;
}

.personnage-percentage {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    color: #58a6ff;
    font-size: 18px;
    font-weight: 700;
}

.acteur-films {
    margin-top: 5px;
}

.acteur-films-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 16px;
}

.acteur-films-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.acteur-film-filter {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 3px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.film-filter {
    height: 36px;
    padding: 0 12px;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #8b949e;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.film-filter:hover {
    color: #f0f6fc;
}

.film-filter.active {
    background: #21262d;
    color: #58a6ff;
}

.acteur-film-sort {
    display: flex;
    align-items: center;
    gap: 7px;
}

.acteur-film-sort select {
    height: 44px;
    padding: 0 38px 0 13px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #c9d1d9;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.acteur-film-sort select:focus {
    border-color: #58a6ff;
}

.sort-direction {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #8b949e;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.sort-direction:hover {
    background: #161b22;
    border-color: #58a6ff;
    color: #58a6ff;
}

.acteur-film-search {
    position: relative;
    width: 230px;
}

.acteur-film-search i {
    position: absolute;
    top: 50%;
    left: 13px;
    color: #6e7681;
    font-size: 12px;
    pointer-events: none;
    transform: translateY(-50%);
}

.acteur-film-search input {
    width: 100%;
    height: 44px;
    padding: 0 13px 0 37px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #f0f6fc;
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s ease;
}

.acteur-film-search input::placeholder {
    color: #6e7681;
}

.acteur-film-search input:focus {
    border-color: #58a6ff;
}

.acteur-films-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.acteur-film-card {
    min-width: 0;
    overflow: hidden;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.acteur-film-card:hover {
    background: #1c2128;
    border-color: #58a6ff;
    transform: translateY(-3px);
}

.acteur-film-image {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0d1117;
}

.acteur-film-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.acteur-film-card:hover .acteur-film-image img {
    transform: scale(1.025);
}

.acteur-film-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #30363d;
    font-size: 42px;
}

.acteur-film-views {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid rgba(240, 246, 252, 0.1);
    border-radius: 6px;
    color: #f0f6fc;
    font-size: 11px;
    font-weight: 650;
    backdrop-filter: blur(5px);
}

.acteur-film-views i {
    color: #58a6ff;
    font-size: 10px;
}

.acteur-film-content {
    padding: 12px;
}

.acteur-film-content h3 {
    min-height: 39px;
    margin: 0 0 5px;
    overflow: hidden;
    color: #f0f6fc;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.acteur-film-card:hover .acteur-film-content h3 {
    color: #58a6ff;
}

.acteur-film-role {
    min-height: 32px;
    display: -webkit-box;
    margin-bottom: 9px;
    overflow: hidden;
    color: #8b949e;
    font-size: 11px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.acteur-film-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6e7681;
    font-size: 10px;
}

.acteur-film-meta span+span::before {
    content: "•";
    margin-right: 7px;
    color: #484f58;
}

.acteur-no-films {
    min-height: 180px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 25px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    text-align: center;
}

.acteur-no-films>i {
    margin-bottom: 12px;
    color: #30363d;
    font-size: 35px;
}

.acteur-no-films strong {
    color: #f0f6fc;
    font-size: 15px;
}

.acteur-no-films span {
    margin-top: 5px;
    color: #8b949e;
    font-size: 12px;
}

@media (max-width: 1250px) {
    .acteur-films-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .acteur-films-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .acteur-films-tools {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 1000px) {
    .acteur-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .acteur-films-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .acteur-films-tools {
        flex-wrap: wrap;
    }
}

@media (max-width: 800px) {
    .acteur-page {
        width: min(100% - 28px, 1500px);
        padding-top: 24px;
    }
    .acteur-hero {
        align-items: flex-start;
    }
    .acteur-hero-image {
        width: 125px;
    }
    .personnages-grid {
        grid-template-columns: 1fr;
    }
    .acteur-films-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .acteur-film-search {
        flex: 1;
        min-width: 180px;
    }
}

@media (max-width: 600px) {
    .acteur-page {
        width: min(100% - 20px, 1500px);
        padding-top: 20px;
    }
    .acteur-hero {
        gap: 17px;
        padding: 15px;
    }
    .acteur-hero-image {
        width: 95px;
    }
    .acteur-back {
        margin-bottom: 12px;
    }
    .acteur-hero h1 {
        font-size: 25px;
    }
    .acteur-infos {
        gap: 7px;
        margin-top: 11px;
    }
    .acteur-infos span {
        width: 100%;
        font-size: 11px;
    }
    .acteur-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 27px;
    }
    .acteur-stat-card {
        min-height: 100px;
        padding: 13px;
    }
    .acteur-stat-icon {
        position: static;
        width: 28px;
        height: 28px;
        margin-bottom: 9px;
        font-size: 11px;
        transform: none;
    }
    .acteur-stat-card>span {
        font-size: 9px;
    }
    .acteur-stat-card>strong {
        font-size: 17px;
    }
    .personnage-card {
        min-height: 80px;
        padding: 14px;
    }
    .personnage-percentage {
        font-size: 16px;
    }
    .acteur-films-tools {
        align-items: stretch;
        flex-direction: column;
    }
    .acteur-film-filter {
        width: 100%;
    }
    .film-filter {
        flex: 1;
    }
    .acteur-film-sort {
        width: 100%;
    }
    .acteur-film-sort select {
        flex: 1;
        min-width: 0;
    }
    .acteur-film-search {
        width: 100%;
        min-width: 0;
    }
    .acteur-films-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .acteur-film-content {
        padding: 10px;
    }
    .acteur-film-content h3 {
        min-height: 36px;
        font-size: 13px;
    }
    .acteur-film-role {
        min-height: 30px;
        font-size: 10px;
    }
}