:root {
    --pink: #ec4899;
    --red: #ef4444;
    --orange: #f97316;
    --rose-50: #fff1f2;
    --pink-50: #fdf2f8;
    --orange-50: #fff7ed;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(236, 72, 153, 0.08);
    --shadow-md: 0 18px 44px rgba(236, 72, 153, 0.14);
    --shadow-lg: 0 28px 70px rgba(236, 72, 153, 0.22);
    --radius: 22px;
    --radius-lg: 30px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(180deg, #ffffff 0%, #fff7fb 45%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img,
video {
    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;
    border-bottom: 1px solid rgba(251, 207, 232, 0.9);
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.96));
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

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

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink), var(--red), var(--orange));
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.28);
    font-size: 13px;
}

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

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

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--pink);
    background: rgba(251, 207, 232, 0.55);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--gray-700);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 92px;
    background: radial-gradient(circle at 15% 18%, rgba(244, 114, 182, 0.34), transparent 24%), radial-gradient(circle at 82% 14%, rgba(248, 113, 113, 0.30), transparent 26%), radial-gradient(circle at 55% 84%, rgba(251, 146, 60, 0.24), transparent 28%), linear-gradient(135deg, #fff1f2 0%, #fdf2f8 46%, #fff7ed 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.18);
    filter: blur(2px);
    animation: pulseGlow 4s ease-in-out infinite;
}

.hero::before {
    top: 76px;
    left: 9%;
}

.hero::after {
    right: 8%;
    bottom: 80px;
    background: rgba(249, 115, 22, 0.18);
    animation-delay: 1.3s;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.18);
        opacity: 0.85;
    }
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 34px;
    align-items: center;
}

.hero-copy {
    text-align: left;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    color: var(--pink);
    border: 1px solid rgba(244, 114, 182, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    font-weight: 800;
}

.hero h1,
.page-hero h1 {
    margin: 18px 0 18px;
    color: transparent;
    background: linear-gradient(90deg, var(--pink), var(--red), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: clamp(36px, 5.5vw, 66px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-lead,
.page-lead {
    max-width: 620px;
    margin: 0 0 28px;
    color: var(--gray-700);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.hero-tags,
.section-heading,
.detail-actions,
.filter-row,
.breadcrumb,
.tag-row,
.card-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    box-shadow: 0 14px 32px rgba(236, 72, 153, 0.24);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(236, 72, 153, 0.30);
}

.btn.secondary {
    color: var(--pink);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.hero-search {
    display: flex;
    width: min(560px, 100%);
    margin: 24px 0 20px;
    padding: 7px;
    border: 1px solid rgba(251, 207, 232, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.hero-search input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid rgba(251, 207, 232, 0.9);
    outline: 0;
    color: var(--gray-800);
    background: #ffffff;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    background: transparent;
}

.hero-search button {
    border: 0;
    white-space: nowrap;
}

.hero-tags a,
.tag-pill,
.corner-pill,
.rank-badge,
.category-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags a,
.category-chip {
    padding: 8px 14px;
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.08);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-tags a:hover,
.category-chip:hover {
    color: var(--pink);
    background: #ffffff;
    transform: translateY(-2px);
}

.hero-panel {
    position: relative;
    min-height: 500px;
}

.hero-feature {
    position: absolute;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.84);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-feature:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 34px 84px rgba(236, 72, 153, 0.26);
}

.hero-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-feature:hover img {
    transform: scale(1.07);
}

.hero-feature .feature-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.04));
}

.hero-feature strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.hero-feature em {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

.hero-feature.primary {
    top: 0;
    right: 0;
    width: 70%;
    height: 360px;
}

.hero-feature.secondary {
    bottom: 18px;
    left: 0;
    width: 46%;
    height: 230px;
}

.hero-feature.tertiary {
    right: 34px;
    bottom: 0;
    width: 42%;
    height: 220px;
}

.section {
    padding: 64px 0;
}

.section.soft {
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.9), rgba(255, 241, 242, 0.75), rgba(255, 247, 237, 0.88));
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 26px;
}

.section-heading h2,
.section-title,
.detail-card h2,
.footer-grid h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: 26px;
    line-height: 1.2;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 207, 232, 0.62);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(244, 114, 182, 0.56);
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #111827;
}

.compact-card .poster-link {
    aspect-ratio: 16 / 10;
}

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

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

.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.02) 52%, rgba(0, 0, 0, 0.16));
}

.play-float {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    color: var(--pink);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.corner-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(236, 72, 153, 0.92);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.22);
}

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

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

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

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    gap: 8px;
    color: var(--gray-500);
    font-size: 12px;
}

.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #d1d5db;
}

.tag-row {
    gap: 7px;
    margin-top: 12px;
}

.tag-pill {
    padding: 5px 9px;
    color: var(--pink);
    background: rgba(253, 242, 248, 0.95);
}

.horizontal-scroll {
    overflow-x: auto;
    padding: 4px 0 16px;
}

.horizontal-track {
    display: grid;
    grid-auto-columns: 270px;
    grid-auto-flow: column;
    gap: 18px;
}

.page-hero {
    padding: 54px 0 44px;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8, #fff7ed);
}

.page-hero h1 {
    font-size: clamp(32px, 4vw, 52px);
}

.filter-panel {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid rgba(251, 207, 232, 0.7);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.filter-row {
    gap: 12px;
}

.filter-input,
.filter-select {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
}

.filter-input {
    flex: 1 1 260px;
}

.filter-select {
    width: auto;
    min-width: 150px;
}

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

.category-card {
    padding: 22px;
    border: 1px solid rgba(251, 207, 232, 0.72);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

.category-samples img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 72px 132px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(251, 207, 232, 0.7);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.ranking-number {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #ffffff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-size: 20px;
    font-weight: 900;
}

.ranking-item img {
    width: 132px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
}

.ranking-item h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.ranking-item p {
    margin: 0 0 10px;
    color: var(--gray-600);
}

.breadcrumb {
    margin: 22px 0;
    color: var(--gray-500);
    font-size: 14px;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #050505;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

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

.player-shell video {
    object-fit: contain;
    background: #000000;
}

.player-cover {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: #ffffff;
    background: #000000;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.20));
}

.play-ring {
    position: relative;
    z-index: 2;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

.play-ring::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 7px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid var(--pink);
}

.detail-card {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid rgba(251, 207, 232, 0.66);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.detail-card h1 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
}

.detail-card h2 {
    margin: 26px 0 12px;
}

.detail-card p {
    margin: 0 0 14px;
    color: var(--gray-700);
    font-size: 16px;
}

.movie-meta-line {
    margin-bottom: 18px;
    color: var(--gray-500);
}

.side-card {
    overflow: hidden;
    border: 1px solid rgba(251, 207, 232, 0.66);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.side-card-body dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px 12px;
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.side-card-body dt {
    color: var(--gray-500);
}

.side-card-body dd {
    margin: 0;
    font-weight: 700;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(251, 207, 232, 0.66);
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.mini-card img {
    width: 88px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.mini-content strong,
.mini-content em {
    display: block;
}

.mini-content strong {
    color: var(--gray-800);
    font-size: 15px;
    line-height: 1.35;
}

.mini-content em {
    margin-top: 6px;
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

.mini-rank {
    display: inline-grid;
    min-width: 26px;
    height: 26px;
    margin-bottom: 5px;
    place-items: center;
    color: #ffffff;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-size: 12px;
    font-weight: 900;
}

.no-result {
    display: none;
    padding: 30px;
    color: var(--gray-500);
    text-align: center;
    border-radius: var(--radius);
    background: #ffffff;
}

.no-result.is-visible {
    display: block;
}

.site-footer {
    margin-top: 54px;
    border-top: 1px solid rgba(251, 207, 232, 0.78);
    background: linear-gradient(180deg, #fff7fb, #ffffff);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 34px;
    padding: 44px 0;
}

.footer-grid p {
    max-width: 420px;
    color: var(--gray-600);
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--gray-600);
    font-weight: 700;
}

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

.footer-bottom {
    padding: 18px 16px 28px;
    color: var(--gray-500);
    text-align: center;
    font-size: 13px;
}

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

    .hero-panel {
        min-height: 420px;
    }

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

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

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

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 48px 0 64px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lead,
    .hero-search {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions,
    .hero-tags,
    .section-heading {
        justify-content: center;
    }

    .hero-panel {
        min-height: 600px;
    }

    .hero-feature.primary,
    .hero-feature.secondary,
    .hero-feature.tertiary {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        height: 220px;
        margin-bottom: 16px;
    }

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

    .ranking-item {
        grid-template-columns: 46px 96px 1fr;
    }

    .ranking-item .btn {
        grid-column: 2 / -1;
    }

    .ranking-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 17px;
    }

    .ranking-item img {
        width: 96px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 22px;
    }

    .hero-search input {
        min-height: 44px;
    }

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

    .filter-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .filter-select {
        width: 100%;
    }
}
