:root {
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --pink: #ec4899;
    --orange: #f97316;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff1f2;
    --line: #ffe4e6;
    --panel: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 60px rgba(190, 18, 60, 0.16);
}

* {
    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: linear-gradient(180deg, #fff1f2 0%, #ffffff 34%, #fff7ed 100%);
}

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

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

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: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--rose-dark);
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 10px 28px rgba(244, 63, 94, 0.32);
}

.logo-text {
    font-size: 20px;
    white-space: nowrap;
}

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

.nav-link,
.mobile-nav-link {
    padding: 10px 14px;
    color: #4b5563;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--rose-dark);
    background: #ffe4e6;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.08);
}

.header-search input {
    width: 190px;
    border: 0;
    outline: 0;
    padding: 8px 10px;
    background: transparent;
}

.header-search button,
.wide-search button,
.primary-button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.wide-search button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.34);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #ffe4e6;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--rose-dark);
    border-radius: 999px;
}

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

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

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

.hero-stage {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-backdrop {
    width: 100%;
    height: 100%;
    min-height: 680px;
    object-fit: cover;
    filter: blur(2px) saturate(1.12);
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 24%, rgba(244, 63, 94, 0.48), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.34) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 56px;
    color: #ffffff;
}

.hero-text {
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.hero p {
    margin: 0;
    max-width: 720px;
    color: #f3f4f6;
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--rose-dark);
    background: #ffe4e6;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

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

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.ghost-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.46);
    transform: rotate(2deg);
}

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

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

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

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

.search-band,
.section-block {
    padding: 72px 0;
}

.search-band {
    background: linear-gradient(135deg, #fff1f2, #ffffff 54%, #ffedd5);
}

.search-band-inner {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 560px);
    gap: 28px;
    align-items: center;
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.prose-card h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    color: var(--ink);
    letter-spacing: -0.04em;
}

.search-band p,
.page-hero p,
.category-overview-card p,
.category-card p,
.prose-card p {
    color: var(--muted);
    line-height: 1.78;
}

.wide-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.wide-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    border-radius: 18px;
}

.section-block.soft-bg,
.soft-bg {
    background: rgba(255, 241, 242, 0.72);
}

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

.section-heading > a {
    color: var(--rose-dark);
    font-weight: 800;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(244, 63, 94, 0.09);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244, 63, 94, 0.3);
    box-shadow: 0 26px 58px rgba(244, 63, 94, 0.18);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.32);
}

.movie-info {
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--rose-dark);
    font-size: 12px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-info p {
    margin: 0;
    min-height: 48px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

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

.category-card,
.category-overview-card,
.prose-card {
    display: block;
    padding: 24px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(244, 63, 94, 0.08);
}

.category-card span,
.category-overview-title {
    color: var(--rose-dark);
    font-size: 21px;
    font-weight: 900;
}

.category-card em {
    display: block;
    margin-top: 14px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.6;
    font-style: normal;
}

.page-hero {
    padding: 76px 0 46px;
    background:
        radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.2), transparent 30%),
        linear-gradient(135deg, #fff1f2, #ffffff 55%, #ffedd5);
}

.mini-hero h1 {
    max-width: 860px;
}

.mini-hero p {
    max-width: 820px;
    font-size: 18px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.pill-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--rose-dark);
    background: #ffffff;
    border: 1px solid var(--line);
    font-weight: 700;
}

.pill-link.active,
.pill-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

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

.small-movie-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.small-movie-card {
    display: grid;
    gap: 8px;
}

.small-movie-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.small-movie-card span {
    font-weight: 800;
    line-height: 1.35;
}

.small-movie-card em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.filter-panel {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #ffe4e6;
    border-radius: 16px;
    padding: 0 14px;
    outline: 0;
    background: #fff7f8;
}

.filter-panel select {
    max-width: 180px;
}

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

.detail-hero {
    padding: 34px 0 68px;
    background: linear-gradient(135deg, #111827, #3f0f22 54%, #7f1d1d);
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    color: #fecdd3;
    font-size: 14px;
}

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

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

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
    aspect-ratio: 16 / 9;
}

.movie-video,
.play-cover,
.play-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    z-index: 1;
    background: #000000;
}

.play-cover {
    z-index: 3;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
}

.play-cover img {
    object-fit: cover;
    opacity: 0.64;
}

.play-cover.is-hidden {
    display: none;
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    color: #ffffff;
    font-size: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.36);
}

.detail-info {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

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

.detail-one-line {
    color: #f3f4f6;
    line-height: 1.8;
}

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

.detail-meta div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.detail-meta dt {
    color: #fecdd3;
    font-size: 12px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 6px 0 0;
    color: #ffffff;
    line-height: 1.5;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-text-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 24px;
}

.prose-card p {
    font-size: 17px;
}

.accent-card {
    background: linear-gradient(135deg, #ffffff, #fff1f2);
}

.search-page-form {
    max-width: 760px;
    margin-top: 24px;
}

.search-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.search-tools button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--rose-dark);
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 800;
}

.site-footer {
    padding: 56px 0 24px;
    background: #111827;
    color: #d1d5db;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.7fr;
    gap: 40px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer a {
    display: block;
    margin: 10px 0;
    color: #fecdd3;
}

.site-footer p {
    max-width: 520px;
    line-height: 1.8;
}

.footer-logo {
    color: #ffffff;
    font-size: 24px;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

@media (max-width: 1080px) {
    .movie-grid,
    .ranking-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compact-grid {
        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,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
    }

    .hero-poster {
        width: min(230px, 68vw);
        justify-self: start;
    }

    .search-band-inner,
    .detail-layout,
    .detail-text-grid,
    .footer-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-panel,
    .wide-search {
        flex-direction: column;
    }

    .filter-panel select {
        max-width: none;
    }
}

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

    .hero,
    .hero-stage,
    .hero-backdrop {
        min-height: 720px;
    }

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

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

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

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

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

    .play-button {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
