html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #0d0f12;
    color: #f2f2f2;
}

.film-page,
.film-page * {
    box-sizing: border-box;
}

.film-page {
    width: 100%;
    padding-bottom: 70px;
}

.film-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    background-position: center;
    background-size: cover;
}

.film-hero.without-backdrop {
    min-height: 400px;
    background: linear-gradient( 135deg, #171b21, #0d0f12);
}

.film-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(13, 15, 18, 0.2) 0%, rgba(13, 15, 18, 0.7) 55%, #0d0f12 100%);
}

.film-hero-content {
    position: relative;
    z-index: 1;
    width: min(1300px, calc(100% - 80px));
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 32px;
    padding: 80px 0 40px;
}

.film-poster {
    width: 220px;
    flex-shrink: 0;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid #30343b;
    border-radius: 12px;
    background: #15181d;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.film-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.film-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #656b74;
}

.film-poster-placeholder i {
    font-size: 2.8rem;
}

.film-main-information {
    min-width: 0;
    padding-bottom: 5px;
}

.film-main-information h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.film-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 16px;
    color: #b3b8c0;
}

.film-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.film-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.film-genres span,
.collection-badge {
    padding: 6px 10px;
    border: 1px solid #353a42;
    border-radius: 999px;
    background: rgba(21, 24, 29, 0.85);
    color: #c7cbd1;
    font-size: 0.78rem;
}

.film-studio {
    margin: 15px 0 0;
    color: #9298a1;
}

.watch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    padding: 11px 17px;
    border-radius: 8px;
    background: #f2f2f2;
    color: #111318;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.watch-button:hover {
    transform: translateY(-1px);
    background: #ffffff;
}

.film-section {
    width: min(1300px, calc(100% - 80px));
    margin: 28px auto 0;
    padding: 24px;
    border: 1px solid #252a31;
    border-radius: 12px;
    background: #15181d;
}

.film-section h2 {
    margin: 0;
    font-size: 1.25rem;
}

.description-section p {
    margin: 16px 0 0;
    color: #b0b5bd;
    line-height: 1.7;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title p {
    margin: 5px 0 0;
    color: #7f858e;
    font-size: 0.86rem;
}

.global-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid #292e35;
    border-radius: 10px;
    background: #101318;
}

.stat-card>i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: #1b2027;
    color: #9ba4af;
    font-size: 1.15rem;
}

.stat-card div {
    display: flex;
    flex-direction: column;
}

.stat-card strong {
    font-size: 1.45rem;
}

.stat-card span {
    margin-top: 3px;
    color: #858b94;
    font-size: 0.82rem;
}

.watch-breakdown {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #292e35;
    border-radius: 8px;
    background: #101318;
    color: #949ba5;
    font-size: 0.82rem;
}

.breakdown-item strong {
    color: #f0f1f2;
}

.watch-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.watch-entry {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid #292e35;
    border-radius: 9px;
    background: #101318;
}

.watch-entry-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: #1a1f25;
    color: #929aa5;
}

.watch-entry-content {
    min-width: 0;
    flex: 1;
}

.watch-date {
    display: block;
    color: #eceef0;
    font-size: 0.9rem;
}

.watch-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 6px;
    color: #858c95;
    font-size: 0.8rem;
}

.watch-details span:not(:last-child)::after {
    content: "·";
    margin-left: 14px;
    color: #4d535b;
}

.watch-price {
    display: flex;
    flex-shrink: 0;
    align-items: flex-end;
    flex-direction: column;
}

.watch-price strong {
    font-size: 0.95rem;
}

.watch-price span {
    margin-top: 2px;
    color: #777e87;
    font-size: 0.72rem;
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.financial-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    border: 1px solid #292e35;
    border-radius: 9px;
    background: #101318;
}

.financial-card span {
    color: #818892;
    font-size: 0.8rem;
}

.financial-card strong {
    font-size: 1.05rem;
}

.collections-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 14px;
}

.actor-card.actor-hidden {
    display: none;
}

.actor-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #292e35;
    border-radius: 9px;
    background: #101318;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.actor-card:hover {
    transform: translateY(-4px);
    border-color: #4a5059;
    background: #191d22;
}

.actor-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #191d22;
}

.actor-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.actor-card:hover .actor-image img {
    transform: scale(1.035);
}

.actor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555c65;
    font-size: 2rem;
}

.actor-information {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.actor-information strong {
    overflow: hidden;
    font-size: 0.85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actor-information span {
    margin-top: 4px;
    overflow: hidden;
    color: #7f858e;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch-sections-grid {
    width: min(1300px, calc(100% - 80px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.watch-sections-grid .film-section {
    width: 100%;
    margin: 0;
}

.watch-empty {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border: 1px dashed #292e35;
    border-radius: 9px;
    color: #6f7680;
    font-size: 0.82rem;
}

.watch-empty i {
    font-size: 1.2rem;
}

.actors-more-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 11px;
    border: 1px solid #30353d;
    border-radius: 8px;
    background: #101318;
    color: #aeb4bc;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.actors-more-button:hover {
    border-color: #4a5059;
    background: #191d22;
    color: #f2f2f2;
}

.actors-more-button i {
    transition: transform 0.2s ease;
}

.actors-more-button.open i {
    transform: rotate(180deg);
}

@media (max-width: 800px) {
    .film-hero {
        min-height: auto;
    }
    .film-hero-content {
        width: calc(100% - 28px);
        align-items: center;
        flex-direction: column;
        padding: 170px 0 25px;
    }
    .film-poster {
        width: 155px;
    }
    .film-main-information {
        width: 100%;
        text-align: center;
    }
    .film-meta,
    .film-genres {
        justify-content: center;
    }
    .film-section {
        width: calc(100% - 28px);
        margin-top: 14px;
        padding: 17px;
    }
    .global-stats {
        grid-template-columns: 1fr;
    }
    .watch-breakdown {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .breakdown-item {
        justify-content: center;
    }
    .watch-entry {
        align-items: flex-start;
    }
    .watch-price {
        align-self: center;
    }
    .financial-grid {
        grid-template-columns: 1fr;
    }
    .actors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .watch-sections-grid {
        width: calc(100% - 28px);
        margin-top: 14px;
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .film-hero-content {
        padding-top: 130px;
    }
    .film-main-information h1 {
        font-size: 1.8rem;
    }
    .film-meta {
        align-items: center;
        flex-direction: column;
        gap: 7px;
    }
    .watch-button {
        width: 100%;
    }
    .watch-entry {
        flex-wrap: wrap;
    }
    .watch-entry-icon {
        width: 34px;
        height: 34px;
    }
    .watch-price {
        width: 100%;
        padding-left: 48px;
        align-items: flex-start;
    }
    .watch-details span:not(:last-child)::after {
        display: none;
    }
    .watch-details {
        flex-direction: column;
        gap: 4px;
    }
    .actors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}