:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --amber-50: #fffbeb;
    --amber-300: #fcd34d;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
    --soft-shadow: 0 14px 34px rgba(244, 63, 94, 0.16);
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--rose-50), var(--white) 44%, var(--amber-50));
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.header-inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: var(--soft-shadow);
}

.brand-text {
    font-size: 1.55rem;
    color: transparent;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-600));
    background-clip: text;
    -webkit-background-clip: text;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--rose-500);
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--rose-600);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.header-search,
.mobile-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
    border: 2px solid var(--gray-200);
    border-radius: 999px;
    outline: none;
    background: var(--white);
    color: var(--gray-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 220px;
    padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--rose-400);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

.header-search button,
.mobile-search button,
.search-page-form button,
.primary-button,
.watch-link {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    font-weight: 800;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
    box-shadow: var(--soft-shadow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button,
.mobile-search button,
.search-page-form button {
    padding: 10px 18px;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.primary-button:hover,
.watch-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.26);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--gray-100);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--gray-800);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--gray-200);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-search input {
    flex: 1;
    padding: 12px 16px;
}

.mobile-nav-link {
    display: block;
    padding: 14px 4px;
    color: var(--gray-700);
    font-weight: 800;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-link.is-active {
    color: var(--rose-600);
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(251, 113, 133, 0.34), transparent 34%), linear-gradient(135deg, #fff1f2, #ffffff 46%, #fff7ed);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 45vw);
    gap: 36px;
    align-items: center;
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
    opacity: 0;
    transform: translateY(24px) scale(0.99);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--rose-600);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(2.5rem, 7vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-summary {
    margin: 24px 0 0;
    color: var(--gray-700);
    font-size: 1.15rem;
    line-height: 1.9;
}

.hero-tags,
.movie-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.hero-tags span,
.movie-card-tags span,
.feature-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--rose-600);
    background: rgba(244, 63, 94, 0.1);
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
}

.secondary-button {
    color: var(--rose-600);
    background: var(--white);
    border: 2px solid rgba(244, 63, 94, 0.2);
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.ghost-button {
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.hero-visual {
    min-height: 450px;
    border-radius: 42px;
    background-image: linear-gradient(135deg, rgba(17, 24, 39, 0.12), rgba(244, 63, 94, 0.22)), var(--hero-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    border: 10px solid rgba(255, 255, 255, 0.78);
}

.hero-bottom {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 42px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.22);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 38px;
    background: var(--rose-500);
}

.hero-mini-rank {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.hero-mini-rank span {
    color: var(--rose-600);
    font-weight: 900;
}

.hero-mini-rank a {
    color: var(--gray-700);
    font-weight: 800;
}

.section {
    padding: 78px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-head.compact {
    align-items: center;
}

.section-head h2,
.footer-grid h2,
.story-panel h2,
.info-panel h2,
.review-card h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    letter-spacing: -0.05em;
}

.section-head p {
    max-width: 520px;
    margin: 0;
    color: var(--gray-500);
    line-height: 1.75;
}

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

.category-grid.large {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 22px;
    color: var(--white);
    border-radius: var(--radius-md);
    background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.78)), var(--category-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 54px rgba(17, 24, 39, 0.18);
}

.category-card span {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-card strong,
.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
}

.category-card p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.65;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-100), var(--amber-50));
}

.poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(17, 24, 39, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

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

.movie-card-meta {
    display: flex;
    gap: 8px;
    color: var(--rose-600);
    font-size: 0.78rem;
    font-weight: 900;
}

.movie-card h2 {
    margin: 10px 0 0;
    font-size: 1.16rem;
    line-height: 1.32;
    letter-spacing: -0.03em;
}

.movie-card h2 a:hover,
.text-link:hover,
.footer-grid a:hover {
    color: var(--rose-600);
}

.movie-card p {
    margin: 12px 0 0;
    color: var(--gray-500);
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.text-link {
    color: var(--rose-600);
    font-weight: 900;
}

.watch-link {
    padding: 9px 14px;
    font-size: 0.86rem;
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
}

.ranking-panel,
.featured-panel,
.story-panel,
.info-panel,
.review-card {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(244, 63, 94, 0.08);
}

.ranking-panel,
.featured-panel,
.story-panel,
.info-panel,
.review-card {
    padding: 28px;
}

.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 62px 64px;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.ranking-list li:last-child {
    border-bottom: 0;
}

.rank-index {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--white);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    font-weight: 900;
}

.ranking-list a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 900;
}

.ranking-list span,
.ranking-list em {
    color: var(--gray-500);
    font-style: normal;
    font-weight: 800;
}

.ranking-page-list {
    padding: 18px 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.featured-panel {
    min-height: 100%;
    color: var(--white);
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 34%), linear-gradient(135deg, #111827, #881337 48%, #f43f5e);
}

.featured-panel h2,
.featured-panel p,
.featured-panel .eyebrow {
    color: var(--white);
}

.featured-panel p {
    line-height: 1.9;
}

.feature-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    background-image: linear-gradient(135deg, rgba(255, 241, 242, 0.95), rgba(255, 255, 255, 0.9), rgba(255, 251, 235, 0.93)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.small-hero {
    min-height: 320px;
    display: grid;
    align-items: center;
}

.page-hero p,
.detail-copy p {
    max-width: 720px;
    color: var(--gray-700);
    line-height: 1.9;
    font-size: 1.08rem;
}

.filter-bar,
.search-page-form {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.07);
}

.filter-bar {
    display: flex;
    gap: 12px;
}

.filter-bar input {
    flex: 1;
    padding: 13px 18px;
}

.filter-bar select {
    min-width: 160px;
    padding: 13px 18px;
}

.search-page-form input {
    flex: 1;
    padding: 14px 18px;
}

.detail-hero {
    padding: 76px 0 66px;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.78);
    border-radius: 34px;
    background: linear-gradient(135deg, var(--rose-100), var(--amber-50));
    box-shadow: var(--shadow);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--gray-500);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--rose-600);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #050816;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

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

.video-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(244, 63, 94, 0.28), rgba(5, 8, 22, 0.62));
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.video-shell.is-playing .video-start {
    display: none;
}

.play-triangle {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 18px 38px rgba(244, 63, 94, 0.34);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 24px;
}

.story-panel p,
.review-card p {
    color: var(--gray-700);
    line-height: 1.95;
    font-size: 1.02rem;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 22px 0 0;
}

.info-panel dt {
    color: var(--gray-500);
    font-weight: 800;
}

.info-panel dd {
    margin: 0;
    font-weight: 900;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.72);
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 34px;
    padding: 54px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 1.35rem;
}

.footer-grid p {
    max-width: 460px;
    line-height: 1.8;
}

.footer-grid h2 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li {
    margin: 10px 0;
}

.footer-bottom {
    padding: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

    .menu-button {
        display: block;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 56px 0;
    }

    .hero-visual {
        min-height: 300px;
        order: -1;
    }

    .category-grid,
    .category-grid.large,
    .movie-grid,
    .split-grid,
    .detail-hero-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: 66px;
    }

    .brand-text {
        font-size: 1.25rem;
    }

    .hero {
        min-height: 720px;
    }

    .hero-slide {
        width: min(calc(100% - 24px), var(--container));
    }

    .hero-bottom,
    .section-head,
    .filter-bar,
    .search-page-form {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-mini-rank {
        border-radius: 22px;
    }

    .section {
        padding: 54px 0;
    }

    .category-grid,
    .category-grid.large,
    .movie-grid,
    .split-grid,
    .detail-hero-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .ranking-list li {
        grid-template-columns: 42px minmax(0, 1fr) 54px;
    }

    .ranking-list li em {
        display: none;
    }

    .info-panel dl {
        grid-template-columns: 72px minmax(0, 1fr);
    }
}
