body {
    font-family:
        'Inter',
        'Segoe UI',
        'Helvetica Neue',
        Arial,
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

.page {
    padding: 1.4rem 0 2rem;
}

.hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(100deg, rgba(47, 128, 255, 0.25), rgba(34, 197, 94, 0.18));
    padding: 1rem;
}
.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-copy h1 {
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    margin-bottom: 0.9rem;
}
.hero-copy p {
    color: #e6eefb;
}
.hero-meta {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: start;
}

.meta-item {
    color: #dbe5f6;
    font-size: 1.08rem;
    line-height: 1.2;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.meta-sep {
    text-align: center;
    opacity: 0.55;
    color: #dbe5f6;
    font-size: 1.02rem;
    line-height: 1;
    flex: 0 0 auto;
}
.hero-media img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Reserve the same poster ratio before LazyImage mounts its real image. */
.hero-media > .lazy-image {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 10px;
}

/* Make both the placeholder and loaded image fill the reserved poster area. */
.hero-media > .lazy-image > .lazy-image__placeholder,
.hero-media > .lazy-image > .lazy-image__image {
    width: 100%;
    height: 100%;
}

.hero-actions {
    margin-top: 1.7rem;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.hero-rating {
    margin-top: 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.8rem;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.rating-star {
    color: #ffde63;
    font-size: 2rem;
    line-height: 1;
    margin-top: -0.05rem;
}

.rating-main {
    display: flex;
    align-items: baseline;
    gap: 0.38rem;
    line-height: 1;
}

.rating-value {
    color: #ffd95f;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.rating-scale {
    color: #cfd8e6;
    font-size: 2.05rem;
    font-weight: 700;
}

.rating-count {
    color: #b8c6dc;
    font-size: 1.15rem;
    font-weight: 600;
    margin-left: 0.2rem;
    white-space: nowrap;
}

.rating-info {
    display: block;
}

.hero-desc {
    margin-top: 0.9rem;
    margin-bottom: 0.5rem;
}

.hero-btn {
    min-width: 180px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.58rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 700;
}

.hero-btn.primary {
    background: linear-gradient(90deg, #00d2ff, #00ff88);
    color: #001217;
    border-color: transparent;
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f6ff;
}

.section {
    margin-top: 2.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 1.55rem;
}
.section h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    margin-bottom: 1rem;
}
.section p {
    color: var(--muted);
    margin-top: 0.85rem;
}

.video-wrap {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.video-wrap video {
    width: 100%;
    aspect-ratio: 638 / 346;
    display: block;
    background: #000;
    object-fit: contain;
}

.cast-grid {
    margin-top: 0.9rem;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
}
.cast-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    flex: 0 0 calc((100% - 3rem) / 5);
    scroll-snap-align: start;
}
.cast-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Keep cast-card dimensions stable while each actor image waits for the viewport. */
.cast-card > .lazy-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
}

/* Match the existing cast image crop for the lazy placeholder and loaded image. */
.cast-card > .lazy-image > .lazy-image__placeholder,
.cast-card > .lazy-image > .lazy-image__image {
    width: 100%;
    height: 100%;
}
.cast-name {
    margin-top: 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #e8f2ff;
}
.cast-role {
    font-size: 0.8rem;
    color: #a9bbd6;
}

.review-list {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.75rem;
}
.review-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
}
.review-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.45rem;
}
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #eef5ff;
    background: linear-gradient(135deg, rgba(47, 128, 255, 0.65), rgba(34, 197, 94, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 0 0 auto;
}
.review-avatar.lazy-image__image {
    object-fit: cover;
}
.review-meta {
    display: grid;
    gap: 0.05rem;
}
.review-user {
    font-weight: 700;
    color: #edf4ff;
    font-size: 1rem;
    line-height: 1.15;
}
.review-time {
    color: #aebbd1;
    font-size: 0.78rem;
}
.review-text {
    color: #d1d9e5;
    font-size: 0.95rem;
    line-height: 1.45;
}

.similar-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.similar-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.6rem;
}

.similar-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0.45rem;
}

/* Preserve the recommendation card ratio before its poster enters the viewport. */
.similar-card > .lazy-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    margin-bottom: 0.45rem;
    border-radius: 8px;
}

/* Fill the reserved recommendation poster box without changing its crop. */
.similar-card > .lazy-image > .lazy-image__placeholder,
.similar-card > .lazy-image > .lazy-image__image {
    width: 100%;
    height: 100%;
}

.similar-title {
    font-size: 0.92rem;
    color: #ecf4ff;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

.similar-desc {
    color: #c6d2e4;
    font-size: 0.8rem;
    line-height: 1.4;
}

.blog-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.blog-card {
    /* The complete preview is a link, while retaining the original card presentation. */
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.6rem;
    color: inherit;
    text-decoration: none;
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0.5rem;
}

/* Reserve the editorial image ratio while the blog cover is still deferred. */
.blog-card > .lazy-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

/* Keep the blog cover crop identical for the placeholder and loaded image. */
.blog-card > .lazy-image > .lazy-image__placeholder,
.blog-card > .lazy-image > .lazy-image__image {
    width: 100%;
    height: 100%;
}

.blog-title {
    font-size: 0.96rem;
    color: #ecf4ff;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.blog-desc {
    color: #c6d2e4;
    font-size: 0.84rem;
    line-height: 1.45;
    margin-top: 0;
}

.common-types-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.info-panel {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    align-items: stretch;
}

.info-item {
    padding: 0.2rem 1rem 0.2rem 0;
    min-height: auto;
}

.info-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    padding-right: 1.4rem;
}

.info-item:not(:first-child) {
    padding-left: 0.2rem;
}

.info-item h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: #f1f7ff;
    line-height: 1.15;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    text-align: left;
}

.info-icon {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #75dfd4;
    font-size: 1.35rem;
    line-height: 1;
    flex: 0 0 auto;
}

.info-item p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.watch-where-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.watch-where-title {
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    margin-bottom: 0.9rem;
    color: #f1f7ff;
    font-weight: 700;
}

.watch-where-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.watch-where-desc {
    margin-top: 0.85rem;
    color: #cfd8e6;
    font-size: 0.95rem;
    line-height: 1.6;
}

.apk-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.apk-panel h2 {
    margin-bottom: 0.7rem;
}

.apk-desc {
    color: #cfd8e6;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.apk-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.apk-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(47, 128, 255, 0.6);
    background: rgba(47, 128, 255, 0.14);
    color: #e6f0ff;
    padding: 0.5rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.apk-link:hover,
.apk-link:focus-visible {
    border-color: rgba(47, 128, 255, 0.95);
    background: rgba(47, 128, 255, 0.26);
    outline: none;
}

.watch-pill {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #e6eefb;
    font-size: 1.1rem;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-media {
        max-width: 240px;
    }
    .cast-card {
        flex: 0 0 calc((100% - 1.5rem) / 3);
    }
    .similar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .common-types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .info-panel {
        grid-template-columns: 1fr;
    }
    .info-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        padding-bottom: 0.9rem;
        margin-bottom: 0.9rem;
    }
    .info-item,
    .info-item:not(:first-child) {
        padding-left: 0;
        padding-right: 0;
    }
}
@media (max-width: 760px) {
    .cast-card {
        flex: 0 0 calc((100% - 0.75rem) / 2);
    }
    .similar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .common-types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body {
        font-size: 15px;
        line-height: 1.62;
    }

    h1 {
        font-size: clamp(1.25rem, 6vw, 1.62rem);
        line-height: 1.24;
    }

    h2 {
        font-size: clamp(1.12rem, 5.4vw, 1.42rem);
        line-height: 1.3;
    }

    h3 {
        font-size: clamp(1rem, 4.9vw, 1.16rem);
        line-height: 1.35;
    }

    p,
    li,
    summary {
        font-size: 0.92rem;
        line-height: 1.65;
    }
}

@media (max-width: 760px) {
}
