:root {
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-500: #a855f7;
    --purple-900: #581c87;
    --ink: #221529;
    --muted: #6b6474;
    --card: #ffffff;
    --line: rgba(168, 85, 247, 0.18);
    --shadow: 0 20px 50px rgba(88, 28, 135, 0.13);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, var(--pink-50), #ffffff 42%, var(--purple-50));
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--pink-500), var(--purple-500), #f472b6);
    box-shadow: 0 12px 36px rgba(219, 39, 119, 0.25);
}

.nav-shell {
    width: min(1220px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    white-space: nowrap;
}

.brand strong {
    font-size: 26px;
    letter-spacing: 0.06em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--purple-900);
    background: #fde047;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    color: #ffffff;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 8px 12px;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.92);
    padding: 10px 16px;
    border-radius: 999px;
    transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--pink-600);
    background: #ffffff;
    box-shadow: 0 12px 20px rgba(88, 28, 135, 0.16);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.22);
    padding: 6px;
    border-radius: 999px;
}

.nav-search input {
    width: 220px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

.nav-search button,
.primary-btn,
.ghost-btn,
.section-link,
.filter-bar button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    transition: 0.25s ease;
}

.nav-search button {
    color: #ffffff;
    background: var(--purple-900);
    padding: 10px 16px;
}

main {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-carousel {
    position: relative;
    margin: 32px auto 24px;
    min-height: 570px;
}

.hero-stage {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    border-radius: 36px;
    box-shadow: var(--shadow);
    background: var(--purple-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 380px;
    align-items: center;
    gap: 48px;
    padding: 58px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.15);
    transform: scale(1.12);
    opacity: 0.55;
}

.hero-bg::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(88, 28, 135, 0.96), rgba(131, 24, 67, 0.74), rgba(0, 0, 0, 0.48));
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink-500), var(--purple-500));
    box-shadow: 0 12px 20px rgba(236, 72, 153, 0.3);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero-content h1,
.detail-copy h1,
.page-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.hero-line,
.detail-line,
.page-hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
    max-width: 760px;
}

.hero-tags,
.tag-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 24px 0;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-actions.single {
    margin-top: 24px;
}

.primary-btn,
.ghost-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    font-weight: 800;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink-500), var(--purple-500));
    box-shadow: 0 16px 26px rgba(236, 72, 153, 0.28);
}

.primary-btn:hover,
.nav-search button:hover,
.filter-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(168, 85, 247, 0.25);
}

.primary-btn.small {
    min-height: 40px;
    padding: 0 18px;
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

.hero-poster img,
.poster-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 36px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #ffffff;
}

.quick-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 24px 0;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search-panel form,
.filter-bar {
    display: flex;
    gap: 12px;
}

.quick-search-panel input,
.filter-bar input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    padding: 14px 18px;
    background: #ffffff;
}

.quick-search-panel button,
.filter-bar button {
    color: #ffffff;
    background: var(--pink-500);
    padding: 0 22px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--pink-600);
    background: var(--pink-100);
    font-weight: 700;
}

.content-section {
    margin: 48px 0;
}

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

.section-heading p {
    margin: 0 0 6px;
    color: var(--pink-600);
    font-weight: 800;
    letter-spacing: 0.08em;
}

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

.section-link {
    color: var(--pink-600);
    background: var(--pink-100);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 16px 32px rgba(88, 28, 135, 0.08);
    transition: 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(88, 28, 135, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--purple-100);
}

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

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

.play-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 42px;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    transition: 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
}

.corner-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.movie-card-body {
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--pink-600);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 10px;
    min-height: 52px;
    font-size: 18px;
    line-height: 1.45;
}

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

.movie-card p {
    margin: 0;
    min-height: 66px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.tag-row {
    margin-top: 14px;
}

.tag-row span {
    color: var(--purple-900);
    background: var(--purple-100);
    font-size: 12px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 26px;
    padding: 22px;
    display: flex;
    align-items: end;
    color: #ffffff;
    background: var(--purple-900);
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: 0.35s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(88, 28, 135, 0.1), rgba(88, 28, 135, 0.88));
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span {
    position: relative;
    z-index: 2;
}

.category-tile strong,
.category-tile small {
    display: block;
}

.category-tile strong {
    font-size: 24px;
    margin-bottom: 8px;
}

.category-tile small {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-list.slim {
    gap: 8px;
}

.rank-item {
    display: grid;
    grid-template-columns: 52px 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(88, 28, 135, 0.08);
    transition: 0.25s ease;
}

.rank-item:hover {
    transform: translateX(5px);
    border-color: rgba(236, 72, 153, 0.35);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
    border-radius: 50%;
    font-weight: 900;
}

.rank-item img {
    width: 72px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-copy strong,
.rank-copy small {
    display: block;
}

.rank-copy strong {
    margin-bottom: 6px;
    font-size: 17px;
}

.rank-copy small,
.rank-item em {
    color: var(--muted);
    font-style: normal;
}

.page-hero.compact {
    margin: 32px 0 36px;
    padding: 58px;
    border-radius: 34px;
    background: radial-gradient(circle at top left, #f472b6, transparent 34%), linear-gradient(135deg, var(--purple-900), #831843 62%, var(--pink-500));
    box-shadow: var(--shadow);
}

.page-hero.compact h1 {
    max-width: 900px;
}

.category-overview {
    display: grid;
    gap: 26px;
    margin-bottom: 48px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.overview-head span {
    color: var(--pink-600);
    font-weight: 800;
}

.overview-head h2 {
    margin: 8px 0 10px;
    font-size: 28px;
}

.overview-head p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.mini-card img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-card strong,
.mini-card small {
    display: block;
}

.mini-card small {
    margin-top: 6px;
    color: var(--muted);
}

.filter-bar {
    margin: 0 0 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 24px rgba(88, 28, 135, 0.06);
}

.filter-bar.large input {
    padding: 16px 20px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    margin: 32px 0 28px;
    border-radius: 36px;
    min-height: 560px;
    background: var(--purple-900);
    box-shadow: var(--shadow);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.12);
    transform: scale(1.12);
    opacity: 0.58;
}

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

.poster-large {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.74);
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.detail-meta {
    margin: 22px 0;
}

.player-section {
    margin: 28px 0;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
    aspect-ratio: 16 / 9;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3), rgba(0, 0, 0, 0.48));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover span {
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.36);
    font-size: 42px;
    padding-left: 6px;
}

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

.detail-body {
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    gap: 24px;
    margin: 34px 0;
}

.story-panel {
    padding: 28px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.story-panel.accent {
    background: linear-gradient(135deg, #ffffff, var(--pink-50));
}

.story-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.story-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.rank-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 48px;
}

.rank-panel {
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.rank-panel h2 {
    margin: 0 0 16px;
}

.site-footer {
    margin-top: 72px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--purple-900), #831843, var(--purple-900));
}

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

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.site-footer p,
.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

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

.footer-bottom {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.is-filtered-out {
    display: none;
}

@media (max-width: 1040px) {
    .nav-shell {
        flex-wrap: wrap;
        height: auto;
        min-height: 72px;
        padding: 10px 0;
    }

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

    .nav-links,
    .nav-search {
        display: none;
        width: 100%;
    }

    .nav-links.is-open,
    .nav-search.is-open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }

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

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

    .hero-poster,
    .poster-large {
        max-width: 320px;
    }

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

    .category-overview-card,
    .detail-body,
    .rank-panels,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    main,
    .nav-shell,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1220px);
    }

    .brand strong {
        font-size: 22px;
    }

    .hero-carousel,
    .hero-stage {
        min-height: 680px;
    }

    .hero-slide,
    .detail-shell,
    .page-hero.compact {
        padding: 30px;
    }

    .hero-content h1,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 36px;
    }

    .hero-dots {
        left: 30px;
        bottom: 24px;
    }

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

    .movie-card-body {
        padding: 13px;
    }

    .movie-card h3 {
        font-size: 16px;
    }

    .rank-item {
        grid-template-columns: 42px 58px minmax(0, 1fr);
    }

    .rank-item em {
        grid-column: 3;
    }

    .rank-item img {
        width: 58px;
        height: 78px;
    }

    .quick-search-panel form,
    .filter-bar {
        flex-direction: column;
    }

    .player-cover span {
        width: 72px;
        height: 72px;
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .category-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-poster,
    .poster-large {
        max-width: 260px;
    }
}
