:root {
    --pink: #ec4899;
    --rose: #f43f5e;
    --soft: #fff1f7;
    --soft-2: #ffe4ef;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fbcfe8;
    --panel: #ffffff;
    --dark: #111827;
    --shadow: 0 18px 50px rgba(236, 72, 153, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

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

.brand-text em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.main-nav a {
    position: relative;
    color: #374151;
    font-weight: 700;
    padding: 8px 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    transition: width 0.2s ease;
}

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

.main-nav a:hover::after {
    width: 100%;
}

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

.header-search input,
.search-panel input,
.search-panel select {
    border: 2px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.menu-toggle {
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--pink), var(--rose));
}

.header-search button {
    padding: 10px 16px;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    font-size: 20px;
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, #1f1221, #7c1d4a 55%, #fb7185);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.9s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.34), transparent 38%),
        linear-gradient(90deg, rgba(10, 10, 20, 0.86), rgba(20, 20, 32, 0.58), rgba(15, 15, 24, 0.2)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 62%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

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

.hero-tags span,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

.hero-tags span:first-child {
    background: linear-gradient(135deg, var(--pink), var(--rose));
    border-color: transparent;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(42px, 8vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #ffe4ef;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

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

.center-actions {
    justify-content: center;
}

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.32);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
}

.btn-light {
    color: var(--pink);
    background: #fff;
}

.btn-outline-light {
    color: #fff;
    border: 2px solid #fff;
}

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

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

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

.feature-strip {
    width: min(1180px, calc(100% - 32px));
    margin: -52px auto 0;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card,
.movie-card,
.category-card,
.category-panel,
.movie-facts,
.movie-article,
.table-wrap,
.search-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.feature-card {
    min-height: 112px;
    border-radius: 24px;
    padding: 24px;
}

.feature-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 20px;
}

.feature-card span {
    color: var(--muted);
}

.section {
    padding: 78px 0;
}

.soft-section {
    background: linear-gradient(90deg, #fff1f7, #fff7fb, #fff);
}

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

.section-head h2,
.page-hero h1,
.split-copy h2,
.cta-box h2,
.movie-article h2,
.movie-facts h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
}

.section-head p,
.page-hero p,
.split-copy p,
.cta-box p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-head a,
.inline-links a,
.movie-facts a {
    color: var(--pink);
    font-weight: 900;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(236, 72, 153, 0.24);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #fecdd3);
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.corner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 10px;
    padding: 5px 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--rose));
}

.card-body {
    padding: 14px;
}

.card-title {
    display: block;
    color: var(--dark);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.card-meta,
.card-desc {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.card-desc {
    display: -webkit-box;
    min-height: 40px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-grid .card-desc,
.compact-card .card-desc {
    display: none;
}

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

.category-card,
.category-panel a {
    position: relative;
    display: flex;
    min-height: 184px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 26px;
    padding: 24px;
}

.category-card:hover,
.category-panel a:hover {
    transform: translateY(-4px);
}

.category-glow {
    position: absolute;
    right: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.18);
}

.category-card strong,
.category-panel h2 {
    position: relative;
    margin: 0;
    color: var(--dark);
    font-size: 25px;
}

.category-card em,
.category-panel p {
    position: relative;
    margin: 12px 0;
    color: var(--muted);
    font-style: normal;
    line-height: 1.7;
}

.category-card span:last-child,
.mini-title-list span {
    color: var(--pink);
    font-size: 13px;
    font-weight: 800;
}

.mini-title-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 30px;
    align-items: start;
}

.rank-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    background: #fff;
}

.rank-num,
.table-rank {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--rose));
}

.rank-title {
    overflow: hidden;
    color: var(--dark);
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--muted);
    font-size: 13px;
}

.cta-section {
    background: linear-gradient(135deg, var(--pink), var(--rose));
    color: #fff;
}

.cta-box {
    text-align: center;
}

.cta-box h2,
.cta-box p {
    color: #fff;
}

.page-main {
    min-height: 70vh;
}

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

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--pink);
    font-size: 13px;
    font-weight: 900;
    background: var(--soft);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(150px, 0.35fr));
    gap: 12px;
    border-radius: 24px;
    padding: 18px;
}

.table-wrap {
    overflow: auto;
    border-radius: 24px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.ranking-table th,
.ranking-table td {
    border-bottom: 1px solid var(--line);
    padding: 16px;
    text-align: left;
    white-space: nowrap;
}

.ranking-table th {
    color: var(--dark);
    background: #fff1f7;
}

.ranking-table a {
    color: var(--dark);
    font-weight: 900;
}

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

.detail-main {
    background: #fff;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: blur(8px) saturate(1.1);
    transform: scale(1.05);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 16%, rgba(236, 72, 153, 0.42), transparent 32%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62)),
        linear-gradient(0deg, #111827, transparent 72%);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.26);
    border-radius: 28px;
    background: linear-gradient(135deg, #fce7f3, #fecdd3);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-line {
    max-width: 820px;
    margin: 18px 0 0;
    color: #ffe4ef;
    font-size: 19px;
    line-height: 1.8;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-tags .pill {
    color: #fff;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.38), rgba(15, 23, 42, 0.68));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-icon {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border-radius: 999px;
    padding-left: 4px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 20px 45px rgba(236, 72, 153, 0.32);
}

.player-shell.is-playing .play-overlay {
    visibility: hidden;
    opacity: 0;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.movie-article,
.movie-facts {
    border-radius: 28px;
    padding: 28px;
}

.movie-article h2,
.movie-facts h2 {
    margin-bottom: 14px;
    font-size: 27px;
}

.movie-article p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

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

.movie-facts dt {
    color: var(--muted);
    font-weight: 800;
}

.movie-facts dd {
    margin: 0;
    color: var(--dark);
    line-height: 1.6;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(135deg, #fff1f7, #ffe4ef);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}

.footer-inner strong {
    font-size: 22px;
    color: var(--dark);
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
    font-weight: 900;
    color: var(--pink);
}

.copyright {
    grid-column: 1 / -1;
    font-size: 13px;
}

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

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

    .category-grid,
    .category-panels,
    .feature-strip {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .article-layout,
    .split-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 66px;
    }

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

    .brand-text em {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: 24px;
        padding: 12px;
        background: #fff;
        box-shadow: var(--shadow);
    }

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

    .main-nav a {
        padding: 12px;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

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

    .feature-strip,
    .category-grid,
    .category-panels,
    .movie-grid,
    .search-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 54px 0;
    }

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

    .detail-wrap {
        grid-template-columns: 1fr;
        padding: 44px 0;
    }

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

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

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .feature-strip,
    .movie-grid,
    .category-grid,
    .category-panels,
    .search-panel {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
    }
}
