* {
    box-sizing: border-box;
}

:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --pink: #db2777;
    --orange: #f97316;
    --slate: #0f172a;
    --muted: #64748b;
    --line: #e5e7eb;
    --card: #ffffff;
    --soft: #fff1f2;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #111827;
    background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 42%, #fff7ed 100%);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 12px 35px rgba(190, 18, 60, 0.28);
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand__icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.brand__text {
    font-size: 18px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.main-nav a {
    font-weight: 700;
    opacity: 0.94;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav .is-active {
    opacity: 1;
    transform: translateY(-1px);
    color: #fef3c7;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 300px;
}

.header-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    color: #111827;
    background: rgba(255, 255, 255, 0.96);
}

.header-search input {
    width: 100%;
}

.header-search button,
.hero-search button,
.filter-panel button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--rose);
    font-weight: 800;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.filter-panel button:hover {
    transform: translateY(-1px);
    background: #fff7ed;
}

.mobile-nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    font-size: 24px;
    background: transparent;
}

.mobile-nav-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-nav-panel a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-nav-panel.is-open {
    display: flex;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, var(--rose-dark), var(--pink), var(--orange));
}

.hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: radial-gradient(circle at 20% 20%, #ffffff 0 2px, transparent 2px), radial-gradient(circle at 80% 30%, #ffffff 0 3px, transparent 3px);
    background-size: 64px 64px, 96px 96px;
}

.hero__slides {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    align-items: center;
    gap: 50px;
    padding: 72px 0 118px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-slide__backdrop {
    position: absolute;
    inset: 24px -80px 24px 36%;
    z-index: 0;
    border-radius: 42px;
    opacity: 0.22;
    background-position: center;
    background-size: cover;
    filter: blur(4px) saturate(1.25);
    box-shadow: inset 0 0 0 999px rgba(15, 23, 42, 0.45);
}

.hero-slide__content,
.hero-slide__poster {
    position: relative;
    z-index: 2;
}

.hero-slide__badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-slide h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-slide p {
    max-width: 720px;
    margin: 24px 0 34px;
    font-size: clamp(18px, 2.2vw, 24px);
    color: rgba(255, 255, 255, 0.92);
}

.hero-slide__actions,
.cta-panel div {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.btn--light {
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.btn--ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
}

.btn--primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 16px 28px rgba(225, 29, 72, 0.26);
}

.hero-slide__poster {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
    transform: rotate(2deg);
}

.hero-slide__poster img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-slide__poster:hover img {
    transform: scale(1.06);
}

.hero__control {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 36px;
    background: #ffffff;
}

.hero-search {
    display: flex;
    width: min(520px, 100%);
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    border: 0;
}

.content-section,
.page-wrap,
.detail-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section {
    padding: 64px 0;
}

.content-section--soft {
    width: min(1180px, calc(100% - 32px));
    margin-top: 64px;
    padding: 38px;
    border-radius: 34px;
    background: linear-gradient(90deg, #ffedd5, #ffe4e6, #fce7f3);
    box-shadow: var(--shadow);
}

.content-section--rank,
.content-section--related {
    padding-top: 32px;
}

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

.section-header__eyebrow {
    margin: 0 0 4px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-header h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-header__link {
    color: var(--rose);
    font-weight: 900;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.movie-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.movie-card__cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fb7185, #f97316);
}

.movie-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .movie-card__cover img {
    transform: scale(1.08);
}

.movie-card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.58));
}

.movie-card__region,
.movie-card__year,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.movie-card__region {
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    background: rgba(225, 29, 72, 0.92);
}

.movie-card__year {
    left: 10px;
    bottom: 10px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    background: rgba(249, 115, 22, 0.94);
}

.movie-card__play {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 42px;
    opacity: 0;
    transform: scale(0.84);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card:hover .movie-card__play {
    opacity: 1;
    transform: scale(1);
}

.movie-card__body {
    padding: 16px;
}

.movie-card__type {
    margin: 0 0 4px;
    color: var(--rose);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--rose);
}

.movie-card__desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #9f1239;
    font-size: 12px;
}

.movie-card__meta span {
    max-width: 100%;
    padding: 4px 8px;
    overflow: hidden;
    border-radius: 999px;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #fff1f2;
}

.movie-card--wide {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: stretch;
}

.movie-card--wide .movie-card__cover {
    aspect-ratio: auto;
    min-height: 190px;
}

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

.rank-list--page {
    padding-bottom: 64px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.category-tile,
.category-overview-card,
.plain-panel {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.category-tile {
    display: flex;
    min-height: 160px;
    padding: 22px;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    background: #ffffff;
}

.category-tile span {
    color: var(--rose);
    font-weight: 900;
}

.category-tile strong {
    font-size: 36px;
    line-height: 1;
}

.category-tile em {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
}

.cta-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 72px;
    padding: 50px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -0.04em;
}

.cta-panel p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.page-wrap {
    padding: 34px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--rose);
    font-weight: 800;
}

.page-hero {
    margin-bottom: 28px;
    padding: 44px;
    border-radius: 32px;
    color: #ffffff;
    background: linear-gradient(120deg, var(--rose), var(--pink), var(--orange));
    box-shadow: var(--shadow);
}

.page-hero--compact {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-hero--category span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 160px 160px auto;
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
}

.filter-panel button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.filter-count {
    min-height: 24px;
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
}

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

.category-overview-card {
    padding: 24px;
}

.category-overview-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.category-overview-card__head span {
    color: var(--rose);
    font-size: 22px;
    font-weight: 900;
}

.category-overview-card__head strong {
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange);
}

.category-overview-card p {
    margin: 0 0 16px;
    color: #64748b;
}

.category-overview-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-overview-card__links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #9f1239;
    font-size: 13px;
    background: #fff1f2;
}

.detail-wrap {
    padding: 34px 0 72px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-bottom: 34px;
    padding: 34px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #881337, var(--rose), var(--orange));
    box-shadow: var(--shadow);
}

.detail-hero__poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.4);
}

.detail-hero__poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-hero__badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff7ed;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.18);
}

.detail-hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.detail-hero__line {
    max-width: 790px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.detail-meta,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.detail-meta span,
.detail-tags span {
    padding: 6px 11px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.17);
}

.player-section {
    margin-bottom: 34px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-trigger {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.16), rgba(2, 6, 23, 0.44));
    cursor: pointer;
}

.player-trigger span {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 46px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 20px 50px rgba(225, 29, 72, 0.4);
}

.player-trigger.is-hidden {
    display: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 34px;
}

.detail-content article,
.plain-panel {
    padding: 26px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.detail-content article:nth-child(3) {
    grid-column: 1 / -1;
}

.detail-content h2 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.detail-content p {
    margin: 0;
    color: #475569;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.info-list div {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
}

.info-list dt {
    color: #64748b;
    font-size: 13px;
}

.info-list dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.info-list dd span {
    display: inline-flex;
    margin: 0 6px 6px 0;
    padding: 4px 8px;
    border-radius: 999px;
    color: #9f1239;
    background: #fff1f2;
}

.plain-panel {
    color: #475569;
    font-size: 18px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
}

.site-footer__grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fb7185;
}

[data-movie-card].is-hidden {
    display: none;
}

@media (max-width: 980px) {
    .main-nav,
    .header-search {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero__slides {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 52px;
    }

    .hero-slide__poster {
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-slide__poster img {
        height: 420px;
    }

    .hero__control {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid--featured,
    .rank-list,
    .category-grid,
    .category-overview-grid,
    .detail-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-hero__poster {
        max-width: 320px;
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .site-header__inner,
    .content-section,
    .page-wrap,
    .detail-wrap,
    .cta-panel,
    .hero__slides,
    .hero__control,
    .site-footer__grid,
    .mobile-nav-panel {
        width: min(100% - 24px, 1180px);
    }

    .brand__text {
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero {
        min-height: 760px;
    }

    .hero-slide h1 {
        font-size: 38px;
    }

    .hero-search,
    .hero-search button,
    .hero-search input {
        border-radius: 22px;
    }

    .hero-search {
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid--featured,
    .rank-list,
    .category-grid,
    .category-overview-grid,
    .detail-content,
    .info-list,
    .filter-panel,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .movie-card--wide {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .movie-card--wide .movie-card__cover {
        min-height: 170px;
    }

    .content-section--soft,
    .cta-panel,
    .page-hero,
    .detail-hero {
        padding: 24px;
        border-radius: 26px;
    }

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