:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --text: #111827;
    --muted: #6b7280;
    --line: #f3d5df;
    --soft: #fff1f5;
    --card: #ffffff;
    --shadow: 0 18px 55px rgba(244, 63, 94, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: white;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.logo-text,
.footer-logo {
    font-size: 24px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    transition: color 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--rose);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #374151;
    background: #fff1f5;
    font-size: 24px;
    cursor: pointer;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    padding: 64px 0 42px;
    background:
        radial-gradient(circle at 12% 18%, rgba(251, 113, 133, 0.36), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.28), transparent 30%),
        linear-gradient(135deg, #fff1f5 0%, #fff 42%, #fdf2f8 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(58px);
    opacity: 0.55;
}

.hero::before {
    width: 340px;
    height: 340px;
    left: 7%;
    bottom: 8%;
    background: #fda4af;
}

.hero::after {
    width: 430px;
    height: 430px;
    right: 3%;
    top: 18%;
    background: #f0abfc;
}

.hero-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: 44px;
}

.hero-copy {
    position: relative;
    min-height: 440px;
}

.hero-slide {
    display: none;
    animation: fadeUp 0.55s ease both;
}

.hero-slide.active {
    display: block;
}

.hero-slide .kicker {
    margin-bottom: 18px;
}

.hero-slide h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-slide h1 span {
    background: linear-gradient(135deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-slide p {
    max-width: 660px;
    margin: 0 0 26px;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-meta span,
.tag-row span,
.detail-tag span,
.rank-index {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--rose);
    background: rgba(244, 63, 94, 0.1);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn-primary,
.btn-secondary,
.section-more,
.mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-secondary,
.section-more {
    color: #374151;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(244, 63, 94, 0.16);
}

.btn-primary:hover,
.btn-secondary:hover,
.section-more:hover,
.mini-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-visual {
    position: relative;
}

.hero-poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 0.72;
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 30px 85px rgba(244, 63, 94, 0.24);
}

.hero-poster {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-poster.active {
    opacity: 1;
    transform: scale(1);
}

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

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

.hero-poster-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    color: white;
}

.hero-poster-caption strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.hero-poster-caption span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.hero-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.hero-thumb {
    overflow: hidden;
    min-height: 82px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 18px;
    background: white;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.hero-thumb.active {
    border-color: var(--rose);
}

.hero-thumb img {
    width: 100%;
    height: 82px;
    object-fit: cover;
}

.section {
    padding: 64px 0;
}

.section.alt {
    background: rgba(255, 241, 245, 0.72);
}

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

.kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--rose);
    background: rgba(244, 63, 94, 0.1);
    font-size: 13px;
    font-weight: 900;
}

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 10px 0 8px;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-head p,
.page-title p,
.detail-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 0.72;
    background: #fff1f5;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.play-badge {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    transform: translateX(-50%);
    min-width: 96px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #111827;
    background: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    backdrop-filter: blur(12px);
}

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

.movie-meta,
.breadcrumb {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h2 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

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

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

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

.mini-link {
    min-height: 34px;
    margin-top: 14px;
    padding: 0 14px;
    color: var(--rose);
    background: rgba(244, 63, 94, 0.1);
    font-size: 13px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff, #fff1f5);
    border: 1px solid rgba(244, 63, 94, 0.14);
    box-shadow: 0 14px 42px rgba(17, 24, 39, 0.06);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -42px;
    bottom: -42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.22), rgba(236, 72, 153, 0.22));
}

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

.category-card p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.65;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 22px;
    background: white;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.rank-cover {
    overflow: hidden;
    width: 92px;
    height: 124px;
    border-radius: 16px;
}

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

.rank-item h2,
.rank-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.filter-panel {
    position: sticky;
    top: 68px;
    z-index: 60;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(18px);
}

.filter-inner {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 14px;
    padding: 16px 0;
}

.filter-inner label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.filter-inner input,
.filter-inner select {
    width: 100%;
    height: 46px;
    padding: 0 15px;
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: 15px;
    color: #111827;
    background: white;
    outline: none;
}

.filter-inner input:focus,
.filter-inner select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.page-hero {
    padding: 62px 0 34px;
    background: linear-gradient(135deg, #fff1f5, #ffffff 45%, #fdf2f8);
}

.page-title {
    max-width: 820px;
}

.breadcrumb {
    margin-bottom: 18px;
}

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

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

.player-shell {
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 28px 78px rgba(17, 24, 39, 0.22);
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.player-trigger {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.62));
    cursor: pointer;
}

.player-trigger.hidden {
    display: none;
}

.player-trigger span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 20px 50px rgba(244, 63, 94, 0.36);
    font-size: 34px;
}

.detail-panel {
    padding: 28px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 28px;
    background: white;
    box-shadow: 0 14px 42px rgba(17, 24, 39, 0.06);
}

.detail-title h1 {
    margin-top: 0;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #374151;
    background: #fff1f5;
    font-size: 13px;
    font-weight: 800;
}

.article-block {
    margin-top: 26px;
}

.article-block h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.article-block p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.sidebar-card {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 24px;
    background: white;
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.06);
}

.sidebar-card h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.sidebar-cover {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 0.72;
}

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

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

.related-list a {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-list img {
    width: 56px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
}

.related-list strong {
    display: block;
    margin-bottom: 4px;
}

.related-list span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 42px;
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding: 42px 0;
}

.site-footer p {
    color: #9ca3af;
    line-height: 1.75;
}

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

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: #d1d5db;
}

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

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .hero-copy {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .main-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid rgba(244, 63, 94, 0.12);
        border-radius: 20px;
        background: white;
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        padding: 13px 12px;
    }

    .nav-link::after {
        display: none;
    }

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

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

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

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

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

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

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

    .filter-panel {
        position: static;
    }

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

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

    .rank-item .btn-secondary {
        grid-column: 1 / -1;
    }

    .rank-cover {
        width: 70px;
        height: 94px;
    }
}
