:root {
    --pink: #ec4899;
    --rose: #fb7185;
    --orange: #fb923c;
    --yellow: #fde68a;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --paper: #ffffff;
    --line: rgba(236, 72, 153, 0.16);
    --shadow: 0 22px 60px rgba(31, 41, 55, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.22), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #fff1f2 34%, #ffffff 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.28);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--pink);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.26);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.88);
}

.nav-search,
.mobile-search,
.page-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.nav-search input,
.mobile-search input,
.page-search input,
.filter-bar input {
    border: 0;
    outline: 0;
    width: 220px;
    padding: 12px 14px;
    color: var(--ink);
    background: transparent;
    font-size: 14px;
}

.nav-search button,
.mobile-search button,
.page-search button {
    border: 0;
    padding: 12px 18px;
    color: #ffffff;
    background: #be185d;
    font-weight: 700;
    cursor: pointer;
}

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

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #ffffff;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-menu.open {
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

main {
    min-height: 68vh;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 46px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 88px 0 140px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.hero-content {
    max-width: 730px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.hero-content p {
    max-width: 640px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    color: #9d174d;
    background: #fff1f2;
    font-size: 12px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.card-button,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.22s ease;
}

.primary-button,
.card-button,
.rank-action {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
}

.primary-button:hover,
.card-button:hover,
.rank-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.36);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

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

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

.hero-control-row {
    position: absolute;
    left: 50%;
    bottom: 32px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 14px;
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #be185d;
    background: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    cursor: pointer;
}

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

.hero-dot {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    cursor: pointer;
    text-align: left;
}

.hero-dot.active {
    background: rgba(255, 255, 255, 0.28);
}

.hero-dot img {
    width: 48px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-dot span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 700;
}

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

.section-heading {
    margin-bottom: 28px;
}

.section-heading.centered {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
    color: var(--muted);
    line-height: 1.8;
}

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

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

.category-tile {
    min-height: 168px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 242, 0.92));
    box-shadow: var(--shadow);
    transition: 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.42);
}

.category-tile span {
    display: block;
    color: #be185d;
    font-size: 21px;
    font-weight: 900;
}

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

.category-tile small {
    display: block;
    color: #9f1239;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    transition: 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 70px rgba(236, 72, 153, 0.2);
}

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

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

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

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(190, 24, 93, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card-meta {
    color: #9f1239;
    font-size: 13px;
    font-weight: 800;
}

.card-body h2,
.rank-info h2 {
    margin: 8px 0;
    font-size: 20px;
    line-height: 1.25;
}

.card-body h2 a:hover,
.rank-info h2 a:hover,
.text-link:hover {
    color: var(--pink);
}

.card-body p {
    min-height: 52px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.card-button {
    width: 100%;
    margin-top: 16px;
}

.text-link {
    color: #db2777;
    font-weight: 800;
}

.wide-band {
    margin: 34px 0;
    padding: 76px 0;
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.86), rgba(252, 231, 243, 0.94), rgba(255, 241, 242, 0.86));
}

.list-stack {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.list-card {
    display: grid;
    grid-template-columns: 164px minmax(0, 1fr);
}

.list-card .card-poster img {
    height: 100%;
    aspect-ratio: 16 / 10;
}

.two-column-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 54px 86px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(31, 41, 55, 0.08);
}

.rank-number {
    color: #be185d;
    font-size: 24px;
    font-weight: 900;
}

.rank-poster img {
    width: 86px;
    height: 70px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.6;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rank-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #9f1239;
    background: #fff1f2;
    font-size: 12px;
    font-weight: 700;
}

.side-panel,
.related-panel,
.detail-article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.side-panel {
    position: sticky;
    top: 92px;
    padding: 28px;
}

.side-panel p {
    color: var(--muted);
    line-height: 1.8;
}

.side-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.side-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: #be185d;
    background: #fff1f2;
    font-weight: 800;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 70px;
    border-radius: 34px;
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(190, 24, 93, 0.92), rgba(236, 72, 153, 0.82), rgba(251, 146, 60, 0.78)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.36), transparent 26rem);
    box-shadow: var(--shadow);
}

.page-hero p {
    max-width: 740px;
    color: rgba(255, 255, 255, 0.9);
}

.slim-hero {
    min-height: 260px;
}

.category-hero {
    min-height: 330px;
}

.filter-bar {
    margin-bottom: 28px;
}

.filter-bar input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(31, 41, 55, 0.08);
}

.empty-state {
    display: none;
    margin-top: 20px;
    padding: 34px;
    border-radius: var(--radius);
    color: #9f1239;
    background: #fff1f2;
    text-align: center;
    font-weight: 800;
}

.empty-state.show {
    display: block;
}

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
    border-radius: 34px;
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(17, 24, 39, 0.94), rgba(190, 24, 93, 0.86), rgba(251, 146, 60, 0.58));
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

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

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

.detail-one-line {
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.28);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.72));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-symbol {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #be185d;
    background: rgba(255, 255, 255, 0.92);
    font-size: 34px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.player-overlay strong {
    font-size: 26px;
}

.player-overlay em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
}

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

.detail-article {
    padding: 34px;
}

.detail-article h2,
.related-panel h2,
.side-panel h2,
.footer-links h2,
.footer-note h2 {
    margin: 0 0 16px;
    color: var(--ink);
}

.detail-article p {
    color: #374151;
    line-height: 2;
    font-size: 17px;
}

.related-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.related-grid {
    display: grid;
    gap: 14px;
}

.mini-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.mini-card img {
    width: 92px;
    height: 62px;
    object-fit: cover;
    border-radius: 14px;
}

.mini-card span {
    color: var(--ink);
    font-weight: 800;
    line-height: 1.45;
}

.mini-card:hover span {
    color: var(--pink);
}

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

.page-search input {
    flex: 1;
    width: auto;
}

.site-footer {
    margin-top: 70px;
    color: #d1d5db;
    background: linear-gradient(90deg, #1f2937, #111827, #000000);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 54px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 18px;
}

.footer-brand p,
.footer-note p {
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h2,
.footer-note h2 {
    color: #ffffff;
    font-size: 18px;
}

.footer-links a:hover {
    color: #f9a8d4;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #9ca3af;
}

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

    .two-column-showcase,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .side-panel,
    .related-panel {
        position: static;
    }
}

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

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

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

    .hero-carousel {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: start;
        gap: 24px;
        padding: 54px 0 170px;
    }

    .hero-poster {
        width: min(240px, 70vw);
        transform: rotate(0);
    }

    .hero-control-row {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    .hero-dots {
        grid-template-columns: repeat(5, 1fr);
    }

    .hero-dot {
        justify-content: center;
    }

    .hero-dot img {
        width: 36px;
        height: 42px;
    }

    .hero-dot span {
        display: none;
    }

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

    .section-heading.split {
        display: block;
    }

    .ranking-item {
        grid-template-columns: 42px 76px minmax(0, 1fr);
    }

    .rank-action {
        grid-column: 2 / 4;
    }

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

    .detail-poster {
        width: min(300px, 80vw);
    }

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

@media (max-width: 560px) {
    .nav-wrap {
        width: calc(100% - 20px);
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

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

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

    .section,
    .page-hero,
    .detail-hero,
    .player-section {
        width: calc(100% - 20px);
    }

    .page-hero {
        padding: 38px 24px;
        border-radius: 26px;
    }

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

    .list-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .list-card .card-body p,
    .list-card .tag-row {
        display: none;
    }

    .ranking-item {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .rank-poster {
        display: none;
    }

    .rank-action {
        grid-column: 2;
    }

    .detail-hero {
        padding: 20px;
        border-radius: 28px;
    }

    .detail-article,
    .related-panel {
        padding: 22px;
    }

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