:root {
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --dark: #111827;
    --muted: #6b7280;
    --line: #f1d8ef;
    --soft: #fff7fd;
    --card: #ffffff;
    --shadow: 0 24px 70px rgba(126, 34, 206, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--dark);
    background: linear-gradient(180deg, #fff7fb 0%, #f8fbff 42%, #ffffff 100%);
    -webkit-font-smoothing: antialiased;
}

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: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 36px rgba(236, 72, 153, 0.12);
}

.nav-wrap {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 14px 28px rgba(139, 92, 246, 0.26);
}

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

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

.nav-link,
.mobile-link {
    padding: 10px 14px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 14px 32px rgba(236, 72, 153, 0.2);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff0fa;
    padding: 10px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--pink);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 20px 18px;
    border-top: 1px solid #f9d4ef;
}

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

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #0f1023;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(88, 28, 135, 0.66), rgba(236, 72, 153, 0.28)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 76% 26%, rgba(255, 255, 255, 0.22), transparent 22%), linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.5));
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 86px 24px 112px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 64px;
    align-items: center;
}

.hero-copy {
    max-width: 780px;
    color: #fff;
}

.section-kicker,
.hero-kicker {
    margin: 0 0 14px;
    display: inline-flex;
    color: #be185d;
    background: #fff0fa;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 14px;
    font-weight: 800;
}

.hero-kicker {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1.03;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.hero-text,
.page-hero p,
.detail-line {
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.tag-row span {
    color: #be185d;
    background: #fff0fa;
    border-color: #ffd4ef;
}

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

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

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

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
}

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

.hero-poster {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: #fff;
    background: rgba(17, 24, 39, 0.62);
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.hero-control {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 36px;
    width: min(1280px, calc(100% - 48px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.hero-dot {
    width: 42px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
    background: #fff;
}

.hero-control a {
    color: #fff;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.14);
    padding: 10px 16px;
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.panel,
.section,
.page-hero,
.detail-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.quick-search {
    margin-top: -58px;
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px) 260px;
    gap: 18px;
    align-items: center;
    padding-top: 22px;
    padding-bottom: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(236, 72, 153, 0.14);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.quick-search h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.home-search,
.filter-bar {
    display: flex;
    gap: 10px;
}

.home-search input,
.filter-bar input {
    width: 100%;
    border: 1px solid #f5c8e8;
    background: #fff;
    border-radius: 999px;
    padding: 14px 18px;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.home-search input:focus,
.filter-bar input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.home-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.quick-card {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.quick-card span {
    opacity: 0.8;
    font-size: 13px;
}

.section {
    padding-top: 72px;
    padding-bottom: 72px;
}

.tinted {
    max-width: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.9), rgba(239, 246, 255, 0.9));
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.section-head p:not(.section-kicker) {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    flex: 0 0 auto;
    color: #be185d;
    font-weight: 900;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff0fa;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 28px;
    background: var(--card);
    box-shadow: 0 18px 52px rgba(31, 41, 55, 0.09);
    border: 1px solid rgba(236, 72, 153, 0.1);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(126, 34, 206, 0.18);
}

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.card-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card.compact .card-cover img,
.all-grid .card-cover img {
    aspect-ratio: 2 / 3;
}

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

.card-badge,
.score-badge,
.rank-mark {
    position: absolute;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(10px);
}

.card-badge {
    left: 12px;
}

.score-badge {
    right: 12px;
    background: #facc15;
    color: #713f12;
}

.rank-mark {
    left: 12px;
    top: auto;
    bottom: 12px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.card-body {
    padding: 18px;
}

.card-body h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
}

.card-body h2 a:hover {
    color: var(--pink);
}

.card-meta {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.card-desc {
    margin: 10px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.72;
}

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

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

.category-card {
    position: relative;
    min-height: 182px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 24px;
    border-radius: 28px;
    color: #fff;
    background: var(--cat-color);
    box-shadow: 0 24px 62px rgba(79, 70, 229, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 36px 84px rgba(79, 70, 229, 0.24);
}

.category-card:before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.category-card span,
.category-card h2,
.category-card p {
    position: relative;
    margin: 0;
}

.category-card span {
    width: max-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 900;
    font-size: 13px;
}

.category-card h2 {
    font-size: 24px;
}

.category-card p {
    opacity: 0.88;
    line-height: 1.75;
}

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

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

.rank-list .movie-card {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    border-radius: 24px;
}

.full-rank .movie-card {
    display: block;
}

.rank-list .card-cover img {
    height: 100%;
    min-height: 188px;
    aspect-ratio: auto;
}

.full-rank .card-cover img {
    aspect-ratio: 2 / 3;
}

.page-hero {
    padding-top: 86px;
    padding-bottom: 48px;
}

.page-hero.simple {
    text-align: center;
}

.page-hero.simple h1,
.category-hero h1 {
    color: var(--dark);
}

.page-hero.simple p,
.category-hero p {
    color: var(--muted);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.category-hero {
    max-width: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    color: #fff;
    background: var(--cat-color);
}

.category-hero h1,
.category-hero p {
    color: #fff;
    margin-left: 0;
}

.filter-bar {
    margin: -8px 0 28px;
    align-items: center;
}

.filter-bar input {
    max-width: 680px;
}

.filter-bar span {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-radius: 999px;
    color: #be185d;
    background: #fff0fa;
    font-weight: 900;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(88, 28, 135, 0.76), rgba(236, 72, 153, 0.35)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.detail-bg:after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.54));
}

.detail-wrap {
    position: relative;
    padding-top: 34px;
    padding-bottom: 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    margin-bottom: 32px;
}

.breadcrumb a:hover {
    color: #fff;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 36px 88px rgba(0, 0, 0, 0.42);
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

.detail-line {
    max-width: 850px;
}

.meta-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
}

.meta-list li {
    padding: 13px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.meta-list span {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
}

.meta-list strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
}

.player-section {
    padding-top: 60px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #020617;
    box-shadow: 0 32px 80px rgba(2, 6, 23, 0.28);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.26), rgba(2, 6, 23, 0.68));
}

.player-shell.is-playing .play-layer {
    display: none;
}

.play-icon {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 22px 48px rgba(236, 72, 153, 0.34);
    position: relative;
}

.play-icon:after {
    content: "";
    position: absolute;
    left: 32px;
    top: 23px;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 23px solid #fff;
}

.play-layer strong {
    font-size: 20px;
}

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

.copy-card {
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(236, 72, 153, 0.1);
    box-shadow: 0 18px 52px rgba(31, 41, 55, 0.08);
}

.copy-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

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

.site-footer {
    background: linear-gradient(135deg, #fff1f8, #eff6ff);
    border-top: 1px solid #fbd0ea;
    margin-top: 30px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    margin-bottom: 12px;
    font-size: 22px;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    color: #4b5563;
    margin: 8px 0;
}

.site-footer a:hover {
    color: var(--pink);
}

.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 26px;
    color: var(--muted);
    border-top: 1px solid rgba(236, 72, 153, 0.12);
}

@media (max-width: 1100px) {
    .movie-grid,
    .all-grid,
    .full-rank,
    .category-grid,
    .category-grid.large {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-content,
    .quick-search {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

@media (max-width: 760px) {
    .nav-wrap {
        height: 64px;
        padding: 0 16px;
    }

    .brand-text {
        font-size: 18px;
    }

    .nav-links {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero,
    .hero-content {
        min-height: 610px;
    }

    .hero-content {
        padding: 64px 18px 96px;
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .quick-search {
        margin: -46px 16px 0;
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-search,
    .filter-bar {
        flex-direction: column;
    }

    .section,
    .page-hero,
    .detail-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .section-head {
        display: block;
    }

    .section-more {
        margin-top: 14px;
        display: inline-flex;
    }

    .movie-grid,
    .featured-grid,
    .all-grid,
    .full-rank,
    .category-grid,
    .category-grid.large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 14px;
    }

    .card-body h2 {
        font-size: 16px;
    }

    .card-desc {
        display: none;
    }

    .rank-list .movie-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .detail-main,
    .detail-copy,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-control {
        width: calc(100% - 32px);
        bottom: 24px;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .featured-grid,
    .all-grid,
    .full-rank,
    .category-grid,
    .category-grid.large {
        grid-template-columns: 1fr;
    }

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