* {
    box-sizing: border-box;
}

:root {
    --pink: #ec4899;
    --pink-deep: #db2777;
    --orange: #f97316;
    --blue: #60a5fa;
    --ink: #1f2937;
    --muted: #6b7280;
    --paper: rgba(255, 255, 255, 0.92);
    --line: rgba(236, 72, 153, 0.18);
    --shadow: 0 24px 70px rgba(236, 72, 153, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.24), transparent 32rem),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.24), transparent 30rem),
        linear-gradient(135deg, #fff7ed 0%, #fdf2f8 46%, #eff6ff 100%);
}

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

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

main {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 35px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: clamp(20px, 2vw, 28px);
    letter-spacing: -0.03em;
    color: var(--pink-deep);
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.32);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--pink-deep);
    background: #fdf2f8;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    color: var(--pink-deep);
    font-size: 22px;
}

.hero {
    position: relative;
    min-height: 620px;
    margin-bottom: 18px;
}

.hero-stage {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
    padding: 84px max(24px, calc((100vw - 1180px) / 2)) 92px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(219, 39, 119, 0.84), rgba(249, 115, 22, 0.62) 45%, rgba(30, 64, 175, 0.56)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.12));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--pink-deep);
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.26);
}

.hero h1,
.hero h2 {
    margin: 0;
    color: #fff;
    text-shadow: 0 15px 45px rgba(0, 0, 0, 0.28);
}

.hero h1 {
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.03;
    max-width: 920px;
}

.hero h2 {
    margin-top: 18px;
    font-size: clamp(24px, 3vw, 42px);
}

.hero-summary {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.tag-row a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
}

.hero-tags span {
    padding: 9px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: var(--pink-deep);
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-3px) scale(1.02);
}

.hero-poster {
    display: block;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: #fff;
}

.home-search-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 0;
    position: relative;
    z-index: 8;
}

.search-panel {
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(236, 72, 153, 0.16);
}

.search-box span {
    color: var(--pink);
    font-size: 24px;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-weight: 700;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #6b7280;
    background: #fff7ed;
    font-weight: 800;
    cursor: pointer;
    transition: 0.22s ease;
}

.filter-button:hover,
.filter-button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.22);
}

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

.tinted-section {
    width: 100%;
    padding: 70px max(16px, calc((100vw - 1180px) / 2));
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.75), rgba(252, 231, 243, 0.75));
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-link {
    color: var(--pink-deep);
    font-weight: 900;
}

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

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

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

.listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 26px;
}

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 28px;
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 45px rgba(31, 41, 55, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 62px rgba(236, 72, 153, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #dbeafe);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.year-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #111827;
    background: rgba(255, 255, 255, 0.88);
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 18px;
}

.movie-title {
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
    transition: color 0.22s ease;
}

.movie-card:hover .movie-title,
.rank-row:hover .rank-title {
    color: var(--pink-deep);
}

.movie-meta,
.movie-desc,
.rank-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.movie-meta {
    font-size: 13px;
    font-weight: 800;
}

.movie-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.tag-row {
    margin-top: auto;
}

.tag-row span,
.tag-row a {
    padding: 7px 10px;
    color: var(--pink-deep);
    background: #fdf2f8;
    font-size: 12px;
}

.small-tags span,
.small-tags a {
    padding: 6px 9px;
    font-size: 11px;
}

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

.category-card {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 45px rgba(31, 41, 55, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.76);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 65px rgba(249, 115, 22, 0.18);
}

.category-preview {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 170px;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.category-preview img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
}

.category-copy {
    padding: 20px;
}

.category-copy h3 {
    margin: 0 0 10px;
    font-size: 23px;
}

.category-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-copy span {
    display: inline-flex;
    margin-top: 18px;
    color: var(--pink-deep);
    font-weight: 900;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 36px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.rank-list,
.rank-page-list {
    display: grid;
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 52px 74px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.06);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-weight: 900;
}

.rank-thumb img {
    width: 74px;
    height: 92px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-title {
    display: block;
    color: #111827;
    font-weight: 900;
    line-height: 1.35;
}

.page-hero,
.detail-hero {
    position: relative;
    padding: 86px max(20px, calc((100vw - 1180px) / 2));
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink), var(--orange) 48%, var(--blue));
}

.small-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
}

.page-hero h1 {
    max-width: 920px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.page-hero p:last-child {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.detail-hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(219, 39, 119, 0.62)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent);
    backdrop-filter: blur(6px);
}

.detail-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 46px;
    width: min(1180px, 100%);
    margin: 0 auto;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.1;
}

.detail-meta,
.detail-desc {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
}

.detail-meta {
    font-weight: 900;
}

.detail-desc {
    max-width: 790px;
    font-size: 18px;
}

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: -72px auto 0;
    position: relative;
    z-index: 5;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #030712;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #030712;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.42), rgba(3, 7, 18, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: var(--pink-deep);
    background: #fff;
    font-size: 31px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

.player-cover strong {
    font-size: clamp(24px, 3vw, 38px);
}

.player-cover small {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 900;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-card {
    padding: clamp(22px, 4vw, 38px);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 45px rgba(31, 41, 55, 0.08);
}

.story-card h2 {
    margin: 0 0 16px;
    font-size: 30px;
}

.story-card p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 2;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(135deg, #1f2937, #111827);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner strong {
    color: #fff;
    font-size: 21px;
}

.footer-inner p {
    max-width: 620px;
    margin: 10px 0 0;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: #f9a8d4;
    font-weight: 800;
}

.is-hidden {
    display: none !important;
}

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

    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column-section {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .hero,
    .hero-stage,
    .hero-slide {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding-top: 92px;
        padding-bottom: 92px;
    }

    .hero-poster {
        max-width: 260px;
        margin: 0 auto;
        transform: none;
    }

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

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

    .detail-poster {
        max-width: 250px;
    }

    .section-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .content-section,
    .home-search-wrap,
    .player-section,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .movie-grid,
    .featured-grid,
    .listing-grid,
    .compact-grid,
    .category-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 44px 64px 1fr;
    }

    .rank-thumb img {
        width: 64px;
        height: 82px;
    }

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

    .primary-button,
    .ghost-button {
        width: 100%;
    }
}
