:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-soft: 0 18px 50px rgba(225, 29, 72, 0.12);
    --shadow-card: 0 16px 34px rgba(17, 24, 39, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--rose-50), #ffffff 420px, var(--gray-50));
    line-height: 1.6;
}

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

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

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb7185, #ec4899);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

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

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

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

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

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

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

.menu-button {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
    background: var(--rose-100);
    color: var(--rose-600);
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.mobile-nav.open {
    display: grid;
    gap: 12px;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
}

.hero-track,
.hero-slide,
.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-backdrop {
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 68% 35%, rgba(255, 255, 255, 0.28), transparent 24%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.14), rgba(17, 24, 39, 0.82));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 70px 0;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -1.2px;
}

.hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

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

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

.primary-button {
    color: var(--rose-600);
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.26);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 32px 70px rgba(17, 24, 39, 0.40);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 32px rgba(244, 63, 94, 0.36);
}

.hero-control {
    position: absolute;
    z-index: 5;
    right: max(24px, calc((100vw - 1200px) / 2));
    bottom: 86px;
    display: flex;
    gap: 12px;
}

.hero-control button,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-control button {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 32px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section,
.page-hero,
.stat-strip {
    width: min(1200px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.page-hero {
    margin-top: 34px;
    margin-bottom: 34px;
    padding: 44px;
    border-radius: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.26), transparent 28%),
        linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
}

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

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -36px;
    position: relative;
    z-index: 10;
}

.stat-strip div {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.stat-strip strong {
    display: block;
    color: var(--rose-600);
    font-size: 30px;
}

.stat-strip span {
    color: var(--gray-500);
    font-size: 14px;
}

.section {
    padding: 54px 0;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--rose-600);
    font-weight: 800;
}

.section h2 {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.15;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--gray-500);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(244, 63, 94, 0.10);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(244, 63, 94, 0.22);
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--rose-100);
}

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

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

.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(225, 29, 72, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-float {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    right: 10px;
    top: 10px;
    padding: 4px 8px;
    background: rgba(17, 24, 39, 0.70);
}

.rank-badge {
    left: 10px;
    top: 10px;
    padding: 4px 9px;
    background: linear-gradient(135deg, #f59e0b, var(--rose-500));
}

.movie-info {
    padding: 14px;
}

.movie-meta {
    display: flex;
    gap: 8px;
    color: var(--rose-600);
    font-size: 12px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 7px 0 7px;
    font-size: 16px;
    line-height: 1.35;
}

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

.movie-info p {
    min-height: 44px;
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--rose-50);
    font-size: 12px;
}

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

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
}

.movie-card.horizontal .poster-link img {
    height: 100%;
    aspect-ratio: auto;
}

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

.category-card {
    padding: 24px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 999px;
    color: var(--rose-600);
    background: linear-gradient(135deg, var(--rose-100), #fce7f3);
    font-size: 26px;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 8px;
}

.category-card p {
    margin: 0;
    color: var(--gray-500);
}

.filter-panel {
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 18px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.search-box input,
.filter-grid select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: #ffffff;
    color: var(--gray-900);
    outline: none;
}

.search-box input {
    min-height: 52px;
    padding: 0 18px;
    font-size: 16px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.filter-grid label span {
    display: block;
    margin: 0 0 6px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.filter-grid select {
    min-height: 46px;
    padding: 0 14px;
}

.filter-result {
    margin: 12px 0 0;
    color: var(--rose-600);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-card);
}

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

.breadcrumb {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto 0;
    color: var(--gray-500);
    font-size: 14px;
}

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

.detail-title {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.detail-desc {
    color: var(--gray-700);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--rose-50);
    font-weight: 800;
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.24);
    cursor: pointer;
}

.player-shell::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.player-shell video,
.player-shell .player-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-poster {
    background-size: cover;
    background-position: center;
}

.player-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.10), rgba(17, 24, 39, 0.72));
}

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 20px 42px rgba(244, 63, 94, 0.36);
    transform: translate(-50%, -50%);
    font-size: 28px;
}

.player-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
    color: #ffffff;
    font-weight: 800;
}

.content-card {
    padding: 28px;
    border: 1px solid rgba(244, 63, 94, 0.10);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.content-card + .content-card {
    margin-top: 20px;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: var(--gray-700);
}

.site-footer {
    margin-top: 70px;
    background: linear-gradient(180deg, #ffffff, var(--gray-100));
    border-top: 1px solid rgba(244, 63, 94, 0.10);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-brand p {
    max-width: 520px;
    color: var(--gray-500);
}

.footer-links h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.footer-links a {
    display: block;
    margin: 8px 0;
    color: var(--gray-500);
}

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 28px;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
}

.hidden-by-filter {
    display: none !important;
}

@media (max-width: 1100px) {
    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-content {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

    .hero {
        min-height: 720px;
    }

    .hero-content {
        min-height: 720px;
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 42px;
    }

    .hero-poster {
        max-width: 240px;
        margin: 0 auto;
    }

    .hero-control {
        right: 18px;
        bottom: 28px;
    }

    .stat-strip,
    .filter-grid,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .horizontal-list {
        grid-template-columns: 1fr;
    }

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

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

    .page-hero {
        padding: 30px 22px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .brand-text {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
