:root {
    --rose: #fb7185;
    --rose-strong: #f43f5e;
    --teal: #2dd4bf;
    --teal-strong: #14b8a6;
    --pink: #f472b6;
    --amber: #f59e0b;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --soft: #fff7f9;
    --shadow: 0 20px 50px rgba(31, 41, 55, .12);
    --radius: 24px;
}

* {
    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, #ffffff 0%, #fff7f9 42%, #f0fdfa 100%);
    min-height: 100vh;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 241, 242, .94), rgba(255, 255, 255, .96), rgba(240, 253, 250, .94));
    box-shadow: 0 10px 30px rgba(31, 41, 55, .08);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

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

.brand-text,
.footer-logo {
    font-size: 24px;
    letter-spacing: .02em;
    background: linear-gradient(90deg, var(--rose-strong), var(--pink), var(--teal-strong));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #374151;
    font-weight: 700;
}

.nav-links a {
    transition: color .2s ease, transform .2s ease;
}

.nav-links a:hover {
    color: var(--rose-strong);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: 0;
    background: white;
    color: var(--ink);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(31, 41, 55, .10);
}

.hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    padding: 78px 16px 64px;
    background: radial-gradient(circle at 15% 18%, rgba(251, 113, 133, .25), transparent 28%),
                radial-gradient(circle at 85% 35%, rgba(45, 212, 191, .24), transparent 34%),
                linear-gradient(135deg, #fff1f2 0%, #f0fdfa 52%, #fff7ed 100%);
}

.hero-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 999px;
    filter: blur(40px);
    opacity: .32;
    pointer-events: none;
}

.hero-glow-one {
    top: 70px;
    left: 5%;
    background: var(--rose);
}

.hero-glow-two {
    right: 5%;
    bottom: 110px;
    background: var(--teal);
}

.hero-stage {
    position: relative;
    width: min(1180px, 100%);
    min-height: 520px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: 42px;
    opacity: 0;
    transform: translateX(24px) scale(.98);
    pointer-events: none;
    transition: opacity .55s ease, transform .55s ease;
}

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

.hero-bg {
    order: 2;
    min-height: 470px;
    border-radius: 36px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .72);
    position: relative;
    overflow: hidden;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(17, 24, 39, .74));
}

.hero-content {
    order: 1;
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--rose-strong);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero-content h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: .98;
    letter-spacing: -.05em;
    background: linear-gradient(90deg, var(--rose-strong), var(--pink), var(--teal-strong));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 42px);
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(251, 113, 133, .18);
    color: #be123c;
    font-weight: 700;
    font-size: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

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

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--rose-strong), var(--teal-strong));
    box-shadow: 0 16px 30px rgba(244, 63, 94, .25);
}

.btn-soft {
    color: #0f766e;
    background: rgba(240, 253, 250, .92);
    border: 1px solid rgba(20, 184, 166, .24);
}

.btn-ghost {
    color: #be123c;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(251, 113, 133, .24);
}

.hero-toolbar {
    width: min(1180px, 100%);
    margin: 28px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.hero-dots,
.hero-arrows {
    display: flex;
    gap: 10px;
}

.hero-dot,
.hero-arrows button {
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 10px 24px rgba(31, 41, 55, .12);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--rose), var(--teal));
}

.hero-arrows button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 24px;
    color: var(--ink);
}

.hero-search {
    width: min(780px, calc(100% - 32px));
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .8);
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
    color: var(--ink);
}

.hero-search button {
    border: 0;
    padding: 0 24px;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose-strong), var(--teal-strong));
    cursor: pointer;
}

.hero-stats {
    width: min(760px, calc(100% - 32px));
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hero-stats a {
    padding: 18px 16px;
    border-radius: 22px;
    text-align: center;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 26px rgba(31, 41, 55, .08);
}

.hero-stats strong {
    display: block;
    font-size: 28px;
    color: var(--rose-strong);
}

.hero-stats span {
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

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

.soft-section {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(240, 253, 250, .55));
}

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

.section-title-row.compact {
    margin-bottom: 20px;
}

.section-title-row h2,
.rank-heading h2,
.filter-copy h2,
.article-card h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -.04em;
}

.section-link,
.text-btn {
    color: var(--rose-strong);
    font-weight: 900;
}

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

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

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

.movie-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(229, 231, 235, .78);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(31, 41, 55, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(31, 41, 55, .15);
}

.poster {
    position: relative;
    display: block;
    min-height: 270px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(17, 24, 39, .60));
}

.poster-chip,
.rank-badge,
.play-float {
    position: absolute;
    z-index: 2;
}

.poster-chip {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    color: white;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(244, 63, 94, .90);
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--rose-strong));
    box-shadow: 0 10px 18px rgba(245, 158, 11, .22);
}

.play-float {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(.86);
    opacity: 0;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-strong), var(--teal-strong));
    transition: opacity .2s ease, transform .2s ease;
}

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

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

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

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

.movie-card h3 a:hover {
    color: var(--rose-strong);
}

.movie-card p {
    min-height: 72px;
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.65;
    font-size: 14px;
}

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

.category-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px;
    border-radius: 26px;
    color: white;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(17, 24, 39, .08), rgba(17, 24, 39, .76));
}

.category-card span,
.category-count {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    font-weight: 900;
    font-size: 12px;
}

.category-card strong {
    font-size: 24px;
}

.category-card small {
    line-height: 1.55;
    opacity: .92;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
}

.rank-panel,
.filter-panel,
.article-card,
.category-overview-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(229, 231, 235, .8);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(31, 41, 55, .09);
}

.rank-panel {
    align-self: start;
    padding: 24px;
    position: sticky;
    top: 92px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 34px 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #fff7f9;
}

.rank-num {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rose-strong), var(--teal-strong));
}

.rank-cover {
    width: 58px;
    height: 72px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
}

.rank-copy strong,
.rank-copy small {
    display: block;
}

.rank-copy small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.page-hero,
.detail-hero {
    padding: 80px 16px 56px;
    background: radial-gradient(circle at 12% 20%, rgba(251, 113, 133, .20), transparent 30%),
                radial-gradient(circle at 82% 20%, rgba(45, 212, 191, .20), transparent 30%),
                linear-gradient(135deg, #fff1f2, #f0fdfa);
    text-align: center;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 64px);
    letter-spacing: -.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.85;
}

.filter-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 38px auto 0;
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(240px, .7fr) minmax(360px, 1fr) auto;
    align-items: center;
    gap: 20px;
}

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

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 150px 150px;
    gap: 10px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    background: white;
    outline: 0;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, .14);
}

.result-count {
    padding: 13px 16px;
    border-radius: 16px;
    color: #0f766e;
    background: #ccfbf1;
    font-weight: 900;
    white-space: nowrap;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.category-wide-cover {
    min-height: 210px;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
}

.category-overview-card h2 {
    margin: 12px 0 10px;
}

.category-overview-card p,
.category-overview-card small {
    color: var(--muted);
    line-height: 1.7;
}

.category-overview-card small {
    display: block;
    margin-bottom: 16px;
}

.rank-table {
    display: grid;
    gap: 10px;
}

.rank-table-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 80px minmax(180px, .55fr) 150px;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.rank-table-row span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose-strong), var(--teal-strong));
}

.rank-table-row em,
.rank-table-row small {
    color: var(--muted);
    font-style: normal;
}

.rank-table-row b {
    color: #be123c;
}

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    text-align: left;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--rose-strong);
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr);
    gap: 28px;
    text-align: left;
}

.player-shell {
    position: relative;
    min-height: 520px;
    border-radius: 32px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.player-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(17, 24, 39, .10), rgba(17, 24, 39, .78));
}

.movie-video {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    background: rgba(17, 24, 39, .86);
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    cursor: pointer;
    color: white;
    background: radial-gradient(circle, rgba(17, 24, 39, .10), rgba(17, 24, 39, .46));
    transition: opacity .2s ease, visibility .2s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--rose-strong), var(--teal-strong));
    box-shadow: 0 20px 40px rgba(244, 63, 94, .28);
}

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

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

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.detail-info {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border-radius: 32px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .84);
}

.detail-cover {
    min-height: 210px;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
}

.detail-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.lead {
    color: #4b5563;
    line-height: 1.75;
}

.meta-list {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.meta-list div {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
}

.meta-list dt {
    color: var(--muted);
    font-weight: 800;
}

.meta-list dd {
    margin: 0;
    font-weight: 800;
}

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

.article-card {
    padding: 28px;
}

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

.detail-nav-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.detail-nav-row a {
    flex: 1;
    padding: 18px 20px;
    border-radius: 18px;
    color: #be123c;
    background: rgba(255, 255, 255, .82);
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(31, 41, 55, .08);
}

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

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 220px 220px;
    gap: 40px;
}

.footer-brand p,
.site-footer li {
    color: var(--muted);
    line-height: 1.7;
}

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

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

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

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

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

    .split-section,
    .detail-layout,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 22px;
        background: white;
        box-shadow: var(--shadow);
    }

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

    .nav-links a {
        padding: 13px 14px;
        border-radius: 14px;
    }

    .hero {
        min-height: 940px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .hero-bg {
        order: 1;
        min-height: 330px;
    }

    .hero-content {
        order: 2;
    }

    .hero-stats,
    .category-overview-grid,
    .footer-grid,
    .detail-text,
    .detail-info {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

    .category-wide-cover {
        min-height: 250px;
    }

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

    .rank-table-row em,
    .rank-table-row small,
    .rank-table-row b {
        grid-column: 2;
    }
}

@media (max-width: 640px) {
    .movie-grid,
    .small-grid,
    .category-movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-title-row,
    .detail-nav-row,
    .hero-search {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search button {
        min-height: 46px;
    }

    .player-shell,
    .movie-video {
        min-height: 360px;
    }

    .poster {
        min-height: 360px;
    }
}
