
.actor-profile *,
.movie-lists *,
.news-section * {
    box-sizing: border-box;
}

.actor-page {
        padding: 60px 0;
    }

    .actor-profile {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 42px;
        max-width: 1000px;
        margin: 0 auto;
    }

    .actor-image {
        display: block;
        width: 100%;
        border-radius: 14px;
        background: #1b222c;
    }

    .actor-image-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 2 / 3;
        padding: 20px;
        border-radius: 14px;
        background: #1b222c;
        color: #7f8996;
        text-align: center;
    }

    .actor-name {
        margin: 0 0 12px;
        font-size: clamp(36px, 6vw, 54px);
        line-height: 1.05;
    }

    .actor-details {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 22px;
        margin-bottom: 24px;
        color: #9ba5b3;
    }

    .actor-detail strong {
        color: #f5f5f5;
        font-weight: 600;
    }

    .actor-biography {
        max-width: 760px;
        margin: 0;
        color: #c2c9d2;
        font-size: 16px;
        line-height: 1.7;
    }

    .actor-biography.empty {
        color: #7f8996;
        font-style: italic;
    }

    .universe-counters {
        display: grid;
            grid-template-columns: repeat(6, minmax(0, 1fr));

        gap: 14px;
        margin-top: 30px;
    }

    .universe-counter {
        padding: 20px;
        border: 1px solid #29313c;
        border-radius: 12px;
        background: #131922;
    }

    .counter-label {
        display: block;
        margin-bottom: 7px;
        color: #9ba5b3;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .counter-number {
        display: block;
        font-size: 34px;
        font-weight: 800;
        line-height: 1;
    }

    .movie-lists {
        max-width: 1000px;
        margin: 60px auto 0;
    }

    .movie-section {
        margin-top: 45px;
    }

    .movie-section:first-child {
        margin-top: 0;
    }

    .movie-section-header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        padding-bottom: 14px;
        border-bottom: 1px solid #29313c;
    }

    .movie-section-header h2 {
        margin: 0;
        font-size: 28px;
    }

    .movie-count {
        color: #9ba5b3;
        font-size: 14px;
    }

    .movie-grid {
         display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 20px;
    align-items: stretch;
    }

    .movie-item {
        display: flex;
    flex-direction: column;
    height: 100%;
    }

    .movie-poster {
        display: block;
        width: 100%;
        aspect-ratio: 2 / 3;
        object-fit: cover;
        border-radius: 10px;
        background: #1b222c;
    }

    .movie-poster-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        aspect-ratio: 2 / 3;
        padding: 12px;
        border-radius: 10px;
        background: #1b222c;
        color: #7f8996;
        text-align: center;
    }

    .movie-item h3 {
          min-height: 58px;
    margin: 0;
    padding: 8px;
    display: flex;
    align-items: center;
    }

    .movie-item p {
        margin: 0;
        color: #9ba5b3;
        font-size: 14px;
    }

    .empty-message {
        margin-top: 20px;
        color: #7f8996;
    }

    .back-link {
        display: inline-block;
        margin-top: 45px;
        color: #e5b541;
    }

   .actor-connections {
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 4px solid #e5b541;
    border-radius: 8px;
    background: #131922;
}

.actor-connection-text {
    margin: 0;
    color: #d8dde5;
    font-size: 16px;
    line-height: 1.6;
}

.actor-connection-text + .actor-connection-text {
    margin-top: 10px;
}

    @media (max-width: 850px) {
        .movie-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (max-width: 650px) {
        .actor-page {
        padding: 35px 0;
    }

    .actor-profile {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .actor-photo {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .actor-info {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .universe-counters {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .universe-counter {
        min-width: 0;
        padding: 14px;
    }

    .counter-label {
        overflow-wrap: anywhere;
        font-size: 11px;
        letter-spacing: .04em;
    }

    .counter-number {
        font-size: 28px;
    }

    .actor-connections-scroll {
        max-width: 100%;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}
    
 .character-name {

  display: flex;
    align-items: center;
    justify-content: center;

    padding: 5px;
    text-align: center;
    color: #000 !important;
    font-weight: 600;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
    min-height: 45px;
    margin-top: auto;
 }

.actor-faq {
    max-width: 1000px;
    margin: 70px auto 0;
}

.actor-faq > h2 {
    margin: 0 0 25px;
    font-size: 30px;
}

.faq-item {
    padding: 22px 0;
    border-bottom: 1px solid #29313c;
}

.faq-item:first-of-type {
    border-top: 1px solid #29313c;
}

.faq-item h3 {
    margin: 0 0 10px;
    font-size: 19px;
}

.faq-item p {
    margin: 0;
    color: #b9c1cc;
    line-height: 1.7;
}

.faq-item strong {
    color: #f5f5f5;
}


.movie-section {
    position: relative;
    margin-top: 48px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(229, 181, 65, .18);
    border-radius: 22px;
    background:
        linear-gradient(rgba(229, 181, 65, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(229, 181, 65, .035) 1px, transparent 1px),
        #11161d;
    background-size: 32px 32px;
}

.movie-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 90px;
    height: 3px;
    background: #e5b541;
}

.movie-section-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.movie-section-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #e5b541;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.movie-section-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 4vw, 34px);
}

.movie-count {
    flex-shrink: 0;
    padding: 7px 12px;
    border: 1px solid rgba(229, 181, 65, .3);
    border-radius: 999px;
    background: rgba(229, 181, 65, .08);
    color: #e5b541;
    font-size: 13px;
    font-weight: 700;
}



.movie-item {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: #161c24;
    transition: transform .2s ease, border-color .2s ease;
}

.movie-item:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 181, 65, .45);
}

.movie-poster {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.movie-info {
    padding: 12px;
}

.movie-info h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}

.movie-info span {
    color: #8f99a7;
    font-size: 12px;
}

.biography-toggle {
    display: none;
}

@media (max-width: 700px) {
    .actor-biography-wrapper {
        margin-top: 18px;
    }

    .actor-biography {
        display: none;
        margin: 0 0 12px;
    }

    .actor-biography.is-visible {
        display: block;
    }

    .biography-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        border: 1px solid #303844;
        border-radius: 8px;
        background: #151b23;
        color: #cbd2dc;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

    .biography-toggle:hover {
        border-color: rgba(229, 181, 65, .45);
        color: #ffffff;
    }
}


.actor-connections-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 14px;
    cursor: grab;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #3a424d transparent;
    -webkit-overflow-scrolling: touch;
}

.actor-connections-scroll:active {
    cursor: grabbing;
}

.actor-connections-track {
    display: flex;
    gap: 12px;
    width: 100%;
	
}

.actor-connection-card {
    width: 98%;
    flex: 0 0 auto;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #242b35;
    border-radius: 12px;
    background: #11161d;
    color: #c7ced8;
    font-size: 14px;
    line-height: 1.55;
    scroll-snap-align: start;
}

.actor-connection-card:hover {
    border-color: rgba(229, 181, 65, .4);
    background: #151b23;
}

.actor-connections-scroll::-webkit-scrollbar {
    height: 7px;
}

.actor-connections-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.actor-connections-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #3a424d;
}


.actor-connection-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.actor-connection-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 13px;
    font-weight: 800;
}



.news-section {
    margin-top: 48px;
}

.news-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.news-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #e5b541;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.news-section h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}

.news-count {
    flex-shrink: 0;
    padding: 7px 11px;
    border: 1px solid rgba(229, 181, 65, .25);
    border-radius: 999px;
    background: rgba(229, 181, 65, .07);
    color: #d7d7d7;
    font-size: 12px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.news-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .045),
            rgba(255, 255, 255, .015)
        );
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.news-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #e5b541;
    opacity: .65;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 181, 65, .3);
    background:
        linear-gradient(
            135deg,
            rgba(229, 181, 65, .08),
            rgba(255, 255, 255, .02)
        );
}

.news-card-content {
    display: flex;
    flex-direction: column;
    min-height: 170px;
    padding: 20px 20px 17px 23px;
}

.news-card-label {
    margin-bottom: 10px;
    color: #e5b541;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.45;
}

.news-card h3 a {
    color: #f4f4f4;
    text-decoration: none;
    transition: color .2s ease;
}

.news-card h3 a:hover {
    color: #e5b541;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.news-card-footer time {
    color: #969696;
    font-size: 12px;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e5b541;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.news-card-link span {
    font-size: 15px;
    transition: transform .2s ease;
}

.news-card-link:hover span {
    transform: translate(2px, -2px);
}

@media (max-width: 700px) {
    .news-section {
        margin-top: 36px;
    }

    .news-section-header {
        align-items: flex-start;
    }

    .news-count {
        display: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-content {
        min-height: auto;
        padding: 18px 18px 16px 21px;
    }

    .news-card h3 {
        font-size: 16px;
    }
}

.actor-official-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 14px;
    border: 1px solid rgba(229, 181, 65, .25);
    border-radius: 999px;
    background: rgba(229, 181, 65, .08);
    color: #e5b541;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.actor-official-link:hover {
    background: rgba(229, 181, 65, .16);
    color: #fff;
}