:root {
    --bg: #fff7fb;
    --panel: #ffffff;
    --panel-soft: #fff1f7;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(244, 114, 182, 0.18);
    --pink: #db2777;
    --rose: #e11d48;
    --pink-soft: #fce7f3;
    --accent: #fb7185;
    --gold: #f59e0b;
    --shadow: 0 18px 45px rgba(190, 24, 93, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 0%, rgba(244, 114, 182, 0.16), transparent 34rem),
        radial-gradient(circle at 90% 10%, rgba(251, 113, 133, 0.12), transparent 36rem),
        var(--bg);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 241, 242, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(190, 24, 93, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--pink);
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 10px 24px rgba(219, 39, 119, 0.28);
}

.brand-name {
    font-size: 22px;
    letter-spacing: 0.03em;
}

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

.nav-link,
.mobile-nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    color: #4b5563;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--pink);
    background: rgba(244, 114, 182, 0.12);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(190, 24, 93, 0.10);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--pink);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

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

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(219, 39, 119, 0.92), rgba(225, 29, 72, 0.88)),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.24), transparent 28rem);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(2px);
}

.hero::before {
    right: -12rem;
    top: -12rem;
}

.hero::after {
    left: -14rem;
    bottom: -16rem;
}

.hero-slider {
    position: relative;
    z-index: 2;
}

.hero-slide {
    display: none;
    min-height: 660px;
    align-items: center;
    gap: 54px;
    padding: 70px 0;
}

.hero-slide.active {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
}

.hero-copy {
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    font-weight: 700;
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    width: min(720px, 100%);
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--pink);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(136, 19, 55, 0.22);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

.hero-media {
    position: relative;
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4.1;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(88, 28, 65, 0.38);
    transform: rotate(2deg);
    background: rgba(255, 255, 255, 0.16);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.38));
}

.hero-info-card {
    position: absolute;
    left: -34px;
    bottom: 36px;
    width: min(280px, 80%);
    padding: 18px;
    color: #ffffff;
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.74);
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.25);
    backdrop-filter: blur(14px);
}

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

.hero-dot {
    width: 36px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.38);
}

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

.section {
    padding: 72px 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.48);
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.search-panel {
    margin-top: -46px;
    position: relative;
    z-index: 6;
}

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

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-input,
.filter-input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(219, 39, 119, 0.18);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    color: var(--ink);
    background: #ffffff;
}

.search-input:focus,
.filter-input:focus {
    border-color: rgba(219, 39, 119, 0.58);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.14);
}

.category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-top: 16px;
}

.category-pill {
    white-space: nowrap;
    padding: 10px 15px;
    border-radius: 999px;
    background: var(--pink-soft);
    color: var(--pink);
    font-weight: 800;
}

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

.category-card {
    padding: 22px;
    min-height: 170px;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff, #fff1f7);
    border: 1px solid var(--line);
    box-shadow: 0 16px 34px rgba(190, 24, 93, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h3 {
    margin: 0 0 10px;
    color: var(--pink);
    font-size: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(190, 24, 93, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card.hidden {
    display: none;
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #ffe4e6);
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(219, 39, 119, 0.92);
    font-weight: 800;
    font-size: 12px;
}

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

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

.movie-card h3 {
    margin: 0 0 9px;
    font-size: 19px;
    line-height: 1.35;
}

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

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff1f7;
    color: #be185d;
    font-size: 12px;
    font-weight: 700;
}

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

.rank-card {
    display: grid;
    grid-template-columns: auto 88px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(190, 24, 93, 0.07);
}

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

.rank-thumb {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: #fff1f7;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-card h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.rank-card p {
    margin: 0 0 9px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.rank-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--pink);
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    padding: 78px 0 58px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.24), transparent 25rem),
        linear-gradient(135deg, var(--pink), var(--rose));
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 62px);
    letter-spacing: -0.05em;
}

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

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

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

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 34px rgba(190, 24, 93, 0.08);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.filter-chip {
    border: 0;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--pink);
    background: var(--pink-soft);
    font-weight: 800;
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: start;
}

.detail-poster {
    position: sticky;
    top: 96px;
    border-radius: 32px;
    overflow: hidden;
    background: #fff1f7;
    box-shadow: var(--shadow);
}

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

.detail-card {
    padding: 28px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 42px rgba(190, 24, 93, 0.08);
}

.detail-card h2 {
    margin: 0 0 18px;
    font-size: 30px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

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

.detail-text p {
    color: #374151;
    line-height: 2;
    margin: 0 0 16px;
}

.watch-panel {
    margin-top: 28px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 22px 50px rgba(17, 24, 39, 0.18);
    cursor: pointer;
}

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

.video-start {
    position: absolute;
    inset: auto auto 24px 24px;
    z-index: 3;
    min-width: 132px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: var(--pink);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    font-weight: 900;
}

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

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

.next-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

.next-links a {
    flex: 1;
    padding: 14px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--pink);
    font-weight: 800;
    text-align: center;
}

.search-results {
    margin-top: 26px;
}

.empty-state {
    padding: 34px;
    text-align: center;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--muted);
}

.site-footer {
    background: linear-gradient(180deg, #fff7fb, #fce7f3);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 28px;
    padding: 52px 0;
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer p,
.site-footer li {
    color: var(--muted);
    line-height: 1.75;
}

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

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

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

@media (max-width: 1024px) {
    .hero-slide.active,
    .detail-wrap {
        grid-template-columns: 1fr;
    }

    .hero-media {
        max-width: 430px;
    }

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

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

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

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

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

    .header-inner {
        height: 64px;
    }

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

    .hero,
    .hero-slide {
        min-height: auto;
    }

    .hero-slide {
        padding: 48px 0 80px;
    }

    .hero-slide.active {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-info-card {
        left: 16px;
        bottom: 18px;
    }

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

    .section {
        padding: 48px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .rank-grid,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: auto 76px 1fr;
    }

    .detail-poster {
        position: static;
    }

    .next-links {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

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

    .rank-num {
        width: 38px;
        height: 38px;
    }
}

.category-card-wide {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.category-mini-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.category-mini-links a {
    color: var(--muted);
    font-size: 14px;
}

.category-mini-links a:hover {
    color: var(--pink);
}
