:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --orange: #fb923c;
    --dark: #111827;
    --text: #374151;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #fff7fb 38%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.72);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 650;
}

.nav-links a {
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--rose), var(--pink));
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--rose);
}

.nav-links a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: #fff1f2;
    cursor: pointer;
}

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

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

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

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.54) 42%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: absolute;
    top: 52%;
    left: 50%;
    width: min(1180px, calc(100% - 32px));
    transform: translate(-50%, -50%);
    color: #ffffff;
}

.hero-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.32);
    font-size: 14px;
    font-weight: 800;
}

.hero h1,
.hero h2 {
    max-width: 760px;
    margin: 18px 0 14px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero h2 + h2 {
    margin-top: -2px;
    font-size: clamp(26px, 3vw, 40px);
    color: rgba(255, 255, 255, 0.88);
}

.hero p {
    max-width: 680px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: rgba(255, 241, 242, 0.92);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.page-hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.26);
}

.btn-secondary {
    color: #be123c;
    background: #fff1f2;
}

.btn-glass {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-dots {
    position: absolute;
    right: 50%;
    bottom: 118px;
    z-index: 2;
    display: flex;
    gap: 10px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(50%);
}

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

.hero-dot.is-active {
    width: 58px;
    background: #ffffff;
}

.hero-search {
    position: absolute;
    right: 50%;
    bottom: 38px;
    z-index: 3;
    display: flex;
    width: min(760px, calc(100% - 32px));
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    transform: translateX(50%);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dark);
}

.hero-search button {
    min-width: 116px;
    min-height: 44px;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    cursor: pointer;
    font-weight: 800;
}

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

.soft-section {
    width: 100%;
    margin: 0;
    padding: 76px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, #fff1f2, #fdf2f8 50%, #fff7ed);
}

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

.section-heading h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
    font-weight: 900;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rose);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    padding: 20px;
    color: #ffffff;
    border-radius: var(--radius);
    background: #111827;
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.45s ease;
}

.category-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.82));
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card span {
    display: block;
    margin-top: 76px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #fffafa);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card-link:hover {
    border-color: #fecdd3;
    box-shadow: 0 22px 48px rgba(244, 63, 94, 0.18);
    transform: translateY(-6px);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #881337);
}

.movie-card-compact .poster-wrap {
    aspect-ratio: 3 / 4;
}

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

.movie-card-link:hover .poster-wrap img {
    opacity: 0.88;
    transform: scale(1.08);
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

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

.movie-card-meta,
.movie-card-foot,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 10px 0 8px;
    overflow: hidden;
    color: var(--dark);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card p {
    display: -webkit-box;
    min-height: 3em;
    margin: 0 0 16px;
    overflow: hidden;
    color: #5b6472;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
}

.movie-card-foot {
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

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

.page-main,
.detail-main {
    padding-top: 68px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px max(16px, calc((100% - 1180px) / 2));
    color: #ffffff;
    background: radial-gradient(circle at 80% 10%, rgba(236, 72, 153, 0.42), transparent 26%), linear-gradient(135deg, #111827, #7f1d1d 58%, #831843);
}

.compact-hero {
    padding-top: 78px;
    padding-bottom: 64px;
}

.page-hero h1 {
    max-width: 820px;
    margin: 18px 0 12px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.12;
    font-weight: 900;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 26px;
    padding: 20px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f9fafb;
}

.filter-search span {
    color: var(--rose);
    font-size: 24px;
    font-weight: 900;
}

.filter-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    min-height: 38px;
    padding: 0 15px;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: #fff1f2;
    cursor: pointer;
    font-weight: 800;
}

.filter-chip.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
}

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

.overview-card a {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    height: 100%;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.overview-card img {
    width: 180px;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    border-radius: 18px;
}

.overview-card h2 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 26px;
}

.overview-card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.overview-card ul {
    margin: 0;
    padding-left: 18px;
    color: #4b5563;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.36fr) minmax(320px, 0.64fr);
    gap: 34px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 104px 0 50px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #030712;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #030712;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-orb {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.36);
    font-size: 30px;
}

.player-cover-title {
    font-size: 18px;
    font-weight: 900;
}

.detail-info {
    align-self: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--rose);
    font-weight: 800;
}

.detail-info h1 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: clamp(32px, 3.6vw, 52px);
    line-height: 1.14;
    font-weight: 900;
}

.detail-one-line {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 18px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
    gap: 24px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 40px;
}

.story-card,
.side-card {
    padding: 26px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.story-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 24px;
}

.story-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.85;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 11px 14px;
    margin: 0;
}

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

.side-card dd {
    margin: 0;
    color: var(--dark);
}

.side-card a {
    color: var(--rose);
    font-weight: 800;
}

.related-section {
    padding-top: 26px;
}

.next-prev {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.next-prev a {
    display: block;
    padding: 18px 20px;
    overflow: hidden;
    color: var(--dark);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

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

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 30px;
}

.footer-logo {
    margin-bottom: 14px;
}

.footer-brand p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
}

.footer-column h2 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 18px;
}

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

.footer-column li + li {
    margin-top: 9px;
}

.footer-column a {
    color: var(--muted);
    transition: color 0.18s ease;
}

.footer-column a:hover {
    color: var(--rose);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 30px;
    color: #6b7280;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

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

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

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

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

@media (max-width: 780px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 16px 18px;
        background: #ffffff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 4px;
    }

    .hero {
        min-height: 720px;
    }

    .hero-content {
        top: 48%;
    }

    .hero-actions,
    .page-hero-actions,
    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search {
        bottom: 30px;
        border-radius: 24px;
        flex-direction: column;
    }

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

    .hero-search button {
        width: 100%;
    }

    .hero-dots {
        bottom: 148px;
    }

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

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

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

    .overview-card img {
        width: 100%;
        height: 220px;
    }

    .detail-hero {
        padding-top: 88px;
    }

    .detail-content {
        padding-top: 0;
    }

    .next-prev {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    .brand-name {
        font-size: 18px;
    }

    .content-section,
    .soft-section {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .movie-grid,
    .compact-grid {
        gap: 18px;
    }

    .page-hero {
        padding-top: 58px;
        padding-bottom: 54px;
    }
}
