:root {
    --pink: #ec4899;
    --rose: #fb7185;
    --orange: #fb923c;
    --yellow: #fde68a;
    --text: #111827;
    --muted: #6b7280;
    --soft: #fff7fb;
    --line: rgba(17, 24, 39, 0.08);
    --shadow: 0 22px 60px rgba(236, 72, 153, 0.16);
    --radius: 24px;
}

* {
    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(135deg, #fff1f8 0%, #fff7ed 42%, #ecfeff 100%);
    min-height: 100vh;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.98), rgba(251, 113, 133, 0.98), rgba(251, 146, 60, 0.98));
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.28);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: rotate(12deg) scale(1.04);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links > a {
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links > a:hover,
.nav-links > a.active {
    background: #fff;
    color: var(--pink);
    transform: translateY(-1px);
}

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

.nav-search input {
    width: 220px;
    border: 0;
    outline: 0;
    color: #fff;
    border-radius: 999px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.nav-search button,
.menu-toggle {
    border: 0;
    border-radius: 999px;
    color: var(--pink);
    background: #fff;
    font-weight: 800;
    padding: 10px 16px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    font-size: 20px;
}

.hero {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, #ec4899, #fb7185, #fb923c);
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: saturate(1.2);
}

.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.34), transparent 24%),
        linear-gradient(90deg, rgba(236, 72, 153, 0.88), rgba(251, 113, 133, 0.78), rgba(251, 146, 60, 0.74));
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    align-items: center;
    gap: 48px;
    color: #fff;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 50px rgba(15, 23, 42, 0.22);
}

.hero-copy h2 + p,
.hero-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.9;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #fff7bf;
    font-weight: 800;
    letter-spacing: 0.08em;
}

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

.hero-tags span,
.tag-cloud span {
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

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

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

.btn-primary {
    color: var(--pink);
    background: #fff;
    padding: 15px 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.btn-ghost {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.16);
    padding: 13px 24px;
}

.btn-primary:hover,
.btn-ghost:hover,
.section-link:hover,
.ranking-action:hover {
    transform: translateY(-2px);
}

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

.hero-poster img,
.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img,
.detail-poster:hover img,
.movie-thumb:hover img,
.category-card:hover img,
.category-tile:hover img {
    transform: scale(1.08);
}

.hero-poster span,
.detail-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--pink);
    box-shadow: 0 14px 40px rgba(236, 72, 153, 0.45);
    font-size: 28px;
}

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

.hero-dots button {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 56px;
    background: #fff;
}

.section {
    padding: 76px 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.46);
}

.section-warm {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.88), rgba(253, 242, 248, 0.92));
}

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

.section-kicker {
    color: var(--pink);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-link {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    padding: 12px 20px;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.22);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.movie-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #fdf2f8, #fff7ed);
}

.movie-card-large .movie-thumb {
    aspect-ratio: 3 / 4;
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.72));
}

.movie-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--pink), var(--rose));
}

.movie-play {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(236, 72, 153, 0.92);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.movie-info {
    padding: 18px;
}

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

.movie-info h3 a:hover,
.ranking-row h2 a:hover,
.article-card a:hover,
.side-card a:hover {
    color: var(--pink);
}

.movie-line {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span {
    border-radius: 999px;
    padding: 5px 10px;
    background: #f9fafb;
}

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

.category-tile,
.category-card a {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    border-radius: 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    isolation: isolate;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.category-card a {
    min-height: 260px;
}

.category-tile::before,
.category-card a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.86), rgba(251, 146, 60, 0.82));
}

.category-tile img,
.category-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-tile strong,
.category-card h2 {
    font-size: 22px;
    margin: 10px 0 8px;
}

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

.tile-icon,
.category-card span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.24);
    font-weight: 900;
}

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

.ranking-panel,
.article-card,
.side-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    padding: 24px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
    position: sticky;
    top: 96px;
}

.ranking-panel h2,
.article-card h2,
.side-card h2 {
    margin: 0 0 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.14);
}

.rank-item img {
    width: 64px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
}

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

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

.rank-views {
    color: var(--pink);
    font-weight: 900;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #fb7185, #fb923c);
}

.small-hero {
    padding: 88px 0 70px;
}

.page-hero h1,
.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p,
.detail-copy p {
    max-width: 760px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
}

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

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.filter-bar input,
.filter-bar select {
    min-height: 48px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.filter-bar input {
    width: min(520px, 100%);
}

.empty-state {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--muted);
    font-weight: 800;
}

.empty-state.is-visible {
    display: block;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 72px 120px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.ranking-num {
    color: var(--pink);
    font-size: 24px;
    font-weight: 950;
    text-align: center;
}

.ranking-cover img {
    width: 120px;
    height: 82px;
    border-radius: 18px;
    object-fit: cover;
}

.ranking-main h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-main p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
}

.ranking-action {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    padding: 11px 18px;
}

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

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.26;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) saturate(1.2);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.9), rgba(251, 113, 133, 0.78), rgba(251, 146, 60, 0.82));
}

.detail-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 42px;
    align-items: center;
}

.detail-tags {
    margin-bottom: 14px;
}

.tag-cloud span {
    color: #fff;
}

.detail-poster {
    transform: rotate(1deg);
}

.player-section {
    padding-top: 56px;
}

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

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

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    cursor: pointer;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.36), rgba(15, 23, 42, 0.64));
}

.video-overlay span {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 16px 38px rgba(236, 72, 153, 0.4);
    font-size: 34px;
}

.video-overlay strong {
    font-size: 22px;
}

.video-overlay.is-hidden {
    display: none;
}

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

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

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

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

.side-card dd {
    margin: 0;
    font-weight: 800;
}

.prev-next {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.prev-next a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fdf2f8;
    color: var(--pink);
    font-weight: 800;
}

.site-footer {
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 56px 0 34px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #f9a8d4;
    font-size: 20px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

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

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

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

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

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

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

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-wrap {
        min-height: 66px;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 24px;
        background: linear-gradient(135deg, rgba(236, 72, 153, 0.98), rgba(251, 146, 60, 0.98));
        box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
    }

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

    .nav-search {
        margin-left: 0;
    }

    .nav-search input {
        width: 100%;
    }

    .hero {
        height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 22px;
        align-content: center;
    }

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

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

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

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

    .detail-poster {
        width: min(280px, 76vw);
    }

    .ranking-row {
        grid-template-columns: 52px 88px 1fr;
    }

    .ranking-action {
        grid-column: 2 / -1;
    }

    .ranking-cover img {
        width: 88px;
        height: 68px;
    }

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

@media (max-width: 560px) {
    .container,
    .nav-wrap,
    .footer-grid {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        height: 780px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 38px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
    }

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

    .section {
        padding: 52px 0;
    }

    .small-hero,
    .detail-hero {
        padding: 62px 0 52px;
    }

    .ranking-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .ranking-num {
        text-align: left;
    }

    .ranking-cover img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .ranking-action {
        grid-column: auto;
    }

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