:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --orange: #fb923c;
    --yellow: #fde68a;
    --dark: #111827;
    --slate: #1f2937;
    --muted: #6b7280;
    --line: rgba(15, 23, 42, 0.08);
    --soft: #fff7ed;
    --card: rgba(255, 255, 255, 0.92);
    --radius: 26px;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2937;
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.12), transparent 35rem),
        radial-gradient(circle at 90% 10%, rgba(251, 146, 60, 0.14), transparent 36rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 32%, #fff7ed 100%);
}

body.menu-open {
    overflow: hidden;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 16px 40px rgba(244, 63, 94, 0.26);
}

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.logo-text {
    font-size: 1.45rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-panel a {
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--yellow);
    opacity: 1;
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-panel input,
.big-search input,
.filter-toolbar input,
.search-panel input,
.search-panel select,
.filter-toolbar select {
    border: 0;
    outline: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 16px;
    min-width: 230px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.header-search input::placeholder,
.mobile-panel input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.mobile-panel button,
.big-search button,
.search-panel button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    color: var(--rose);
    background: #fff;
    padding: 11px 18px;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 4px;
    background: #fff;
}

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

.mobile-panel.is-open {
    display: block;
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    padding: 10px 0;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-panel form {
    display: flex;
    gap: 10px;
}

.mobile-panel input {
    width: 100%;
}

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

.hero-track,
.hero-slide {
    min-height: 680px;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.06);
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62) 46%, rgba(15, 23, 42, 0.28)),
        linear-gradient(180deg, rgba(244, 63, 94, 0.38), rgba(251, 146, 60, 0.18));
}

.hero-content {
    position: relative;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
    align-items: center;
    gap: 48px;
    color: #fff;
    padding: 80px 0;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff;
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.95), rgba(251, 146, 60, 0.92));
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-copy h2,
.page-hero h1,
.search-band h1,
.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.5rem, 7vw, 5.9rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-copy p,
.page-hero p,
.search-band p,
.detail-copy .lead {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.9;
}

.hero-tags,
.detail-badges,
.movie-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags span,
.detail-badges span,
.movie-meta span,
.tag-row span {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 18px 36px rgba(244, 63, 94, 0.28);
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.36);
    transform: rotate(2deg);
}

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

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

.hero-dot {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.search-band {
    position: relative;
    margin-top: -42px;
    z-index: 3;
}

.search-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 24px;
    align-items: center;
    border-radius: 30px;
    background: linear-gradient(135deg, #fff, #fff7ed);
    padding: 32px;
    box-shadow: var(--shadow);
}

.search-band h1 {
    color: #111827;
    font-size: clamp(2rem, 4vw, 4.3rem);
}

.search-band p {
    color: var(--muted);
}

.big-search {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.big-search input {
    width: 100%;
    min-width: 0;
    color: #111827;
    background: transparent;
    box-shadow: none;
}

.big-search button {
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    white-space: nowrap;
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 72px auto;
}

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

.section-heading h2 {
    margin: 12px 0 10px;
    color: #111827;
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    color: var(--rose);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.2), 0 14px 36px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

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

.category-tile,
.category-card {
    display: grid;
    gap: 12px;
    border-radius: 24px;
    padding: 22px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 14rem),
        linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 18px 46px rgba(244, 63, 94, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.category-tile span,
.category-card span {
    width: max-content;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
    font-weight: 900;
}

.category-tile strong,
.category-card h2 {
    font-size: 1.25rem;
}

.category-tile em,
.category-card p {
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    line-height: 1.65;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(251, 146, 60, 0.18));
}

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

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

.poster-label {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.76rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

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

.movie-card .movie-meta span,
.movie-card .tag-row span,
.detail-copy .detail-badges span,
.big-tags span {
    color: var(--rose);
    background: rgba(244, 63, 94, 0.09);
}

.movie-card h3,
.rank-row h3 {
    margin: 12px 0 8px;
    color: #111827;
    font-size: 1.12rem;
    line-height: 1.35;
}

.movie-card p,
.rank-row p {
    min-height: 4.8em;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.62;
    font-size: 0.92rem;
}

.compact-grid .compact p,
.compact p {
    min-height: 0;
}

.split-section .rank-panel,
.rank-panel {
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #1f2937 48%, #7f1d1d);
    box-shadow: var(--shadow);
}

.rank-panel ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 14px;
}

.rank-panel li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 3px 12px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    color: #fff;
}

.rank-panel li:hover {
    background: rgba(255, 255, 255, 0.08);
}

.rank-no {
    grid-row: span 2;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-weight: 900;
}

.rank-panel a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 900;
}

.rank-panel small {
    color: rgba(255, 255, 255, 0.68);
}

.page-hero,
.detail-hero {
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.32), transparent 28rem),
        linear-gradient(135deg, #111827, #4c0519 55%, #9f1239);
}

.page-hero .container {
    padding: 94px 0 76px;
}

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

.compact-hero h1,
.category-hero h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
}

.filter-toolbar,
.search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 26px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line), 0 12px 36px rgba(15, 23, 42, 0.08);
}

.filter-toolbar input,
.filter-toolbar select,
.search-panel input,
.search-panel select {
    color: #111827;
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.12);
}

.filter-toolbar input,
.search-panel input {
    flex: 1 1 280px;
}

.filter-toolbar select,
.search-panel select {
    min-width: 160px;
}

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

.inline-links a,
.category-samples a {
    display: inline-flex;
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--rose);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.16);
    font-weight: 800;
}

.category-card {
    color: #fff;
}

.category-card-main {
    display: grid;
    gap: 12px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples a {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.detail-hero {
    padding: 74px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 42px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #020617;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.28), rgba(244, 63, 94, 0.28));
    font-size: 1.05rem;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 22px 48px rgba(244, 63, 94, 0.42);
    font-size: 2rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.72);
}

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

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.text-card,
.detail-side {
    border-radius: 28px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
}

.text-card h2,
.detail-side h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 1.5rem;
}

.text-card p {
    margin: 0;
    color: #4b5563;
    line-height: 2;
    font-size: 1.02rem;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.detail-side dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    color: #111827;
    font-weight: 800;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    border-radius: 26px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
}

.rank-thumb {
    border-radius: 20px;
    overflow: hidden;
}

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

.search-result-title {
    margin-bottom: 20px;
}

.search-result-title h2 {
    margin: 0 0 8px;
    font-size: 2rem;
}

.search-result-title p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    margin-top: 92px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1f2937 55%, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.8fr 1fr;
    gap: 32px;
    padding: 54px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fb7185;
    font-size: 1.08rem;
}

.site-footer p,
.site-footer li {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.75;
}

.site-footer ul {
    display: grid;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    text-align: center;
    padding: 20px;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 1024px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content,
    .search-band-inner,
    .detail-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        width: min(340px, 72vw);
        margin: 0 auto;
    }

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

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

    .header-inner {
        min-height: 66px;
    }

    .logo-text {
        font-size: 1.18rem;
    }

    .hero-slider,
    .hero-track,
    .hero-slide,
    .hero-content {
        min-height: 740px;
    }

    .hero-content {
        gap: 26px;
        padding: 52px 0 86px;
    }

    .hero-copy h2,
    .page-hero h1,
    .search-band h1,
    .detail-copy h1 {
        letter-spacing: -0.05em;
    }

    .search-band-inner,
    .text-card,
    .detail-side {
        padding: 22px;
        border-radius: 24px;
    }

    .big-search,
    .mobile-panel form,
    .filter-toolbar,
    .search-panel,
    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .rank-row p,
    .movie-card p {
        min-height: 0;
    }
}
