:root {
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --pink: #ec4899;
    --orange: #f97316;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #ffe4e6;
    --paper: #ffffff;
    --soft: #fff7f8;
    --shadow: 0 18px 45px rgba(190, 18, 60, 0.14);
    --shadow-strong: 0 30px 70px rgba(190, 18, 60, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 0%, rgba(244, 63, 94, 0.16), transparent 28rem),
        radial-gradient(circle at 92% 18%, rgba(249, 115, 22, 0.12), transparent 24rem),
        linear-gradient(180deg, #fff1f2 0%, #ffffff 22rem, #fff7f8 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 228, 230, 0.9);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    white-space: nowrap;
    font-weight: 800;
}

.brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.25);
}

.brand-text {
    font-size: 1.22rem;
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #4b5563;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-search input,
.mobile-search input {
    width: 12rem;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    padding: 0.62rem 1rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    outline: none;
    transition: all 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus {
    width: 14rem;
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

.header-search button,
.mobile-search button,
.btn {
    border: 0;
    border-radius: 999px;
    padding: 0.68rem 1.15rem;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 12px 26px rgba(244, 63, 94, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(244, 63, 94, 0.3);
}

.btn.btn-light {
    color: var(--rose-dark);
    background: #fff;
    box-shadow: 0 12px 26px rgba(255, 255, 255, 0.22);
}

.btn.btn-ghost {
    color: var(--rose-dark);
    background: #fff1f2;
    box-shadow: none;
}

.mobile-toggle {
    display: none;
    width: 2.65rem;
    height: 2.65rem;
    border: 0;
    border-radius: 0.95rem;
    background: #fff1f2;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 1.15rem;
    height: 2px;
    margin: 4px auto;
    background: var(--rose-dark);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0.75rem 1.25rem 1.1rem;
    border-top: 1px solid #ffe4e6;
    background: rgba(255, 255, 255, 0.96);
}

.mobile-panel a {
    display: block;
    padding: 0.75rem 0;
    color: #4b5563;
    font-weight: 700;
}

.mobile-panel.is-open {
    display: block;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 1.25rem 3rem;
}

.hero-orb {
    position: absolute;
    width: 22rem;
    height: 22rem;
    border-radius: 999px;
    filter: blur(58px);
    opacity: 0.28;
    animation: floatPulse 6s ease-in-out infinite;
}

.hero-orb.one {
    left: 5%;
    top: 3rem;
    background: var(--rose);
}

.hero-orb.two {
    right: 8%;
    top: 10rem;
    background: var(--orange);
    animation-delay: 1.2s;
}

@keyframes floatPulse {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -1rem, 0) scale(1.08);
    }
}

.hero-inner {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
}

.hero-copy {
    max-width: 850px;
    margin: 0 auto 2rem;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    color: var(--rose-dark);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--rose-dark), var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 760px;
    margin: 1.15rem auto 0;
    color: #4b5563;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.65rem;
}

.hero-carousel {
    position: relative;
    margin: 0 auto;
    max-width: 980px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.12fr) minmax(17rem, 0.88fr);
    min-height: 27rem;
    overflow: hidden;
    border-radius: 2rem;
    background: #111827;
    box-shadow: var(--shadow-strong);
}

.hero-slide.is-active {
    display: grid;
}

.hero-media {
    position: relative;
    min-height: 24rem;
    overflow: hidden;
}

.hero-media img {
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-slide:hover .hero-media img {
    transform: scale(1.05);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.84));
}

.hero-panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(136, 19, 55, 0.88));
}

.hero-panel h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.18;
}

.hero-panel p {
    margin: 0;
    color: #ffe4e6;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rose-dark);
    background: #fff1f2;
}

.hero-panel .hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #fecdd3;
    font-size: 0.92rem;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: -1.35rem;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 0.72rem;
    height: 0.72rem;
    border: 0;
    border-radius: 999px;
    background: #fecdd3;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 2rem;
    background: var(--rose);
}

.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.8rem 1.25rem;
}

.page-title {
    margin-bottom: 2rem;
}

.page-title h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
}

.page-title p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
}

.section-block {
    margin-top: 4rem;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.section-heading p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.section-more {
    color: var(--rose);
    font-weight: 800;
    white-space: nowrap;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.35rem;
}

.movie-grid.large-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 228, 230, 0.9);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 25px rgba(190, 18, 60, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-0.45rem);
    border-color: #fecdd3;
    box-shadow: var(--shadow);
}

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

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

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

.play-badge {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.34rem 0.72rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.92);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.movie-body {
    padding: 1rem;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.movie-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.07rem;
    line-height: 1.35;
}

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

.movie-body p {
    min-height: 3.15rem;
    margin: 0 0 0.8rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 12rem;
    padding: 1.3rem;
    border-radius: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, #be123c, #ec4899 52%, #f97316);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-0.4rem);
    box-shadow: var(--shadow-strong);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 9rem;
    height: 9rem;
    right: -3rem;
    bottom: -3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.65rem;
    font-size: 1.45rem;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffe4e6;
}

.sample-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sample-links a {
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid #ffe4e6;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(190, 18, 60, 0.07);
}

.rank-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #111827, #881337);
}

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

.rank-cover span {
    position: absolute;
    left: 0.55rem;
    top: 0.55rem;
    min-width: 2rem;
    padding: 0.18rem 0.45rem;
    text-align: center;
    color: #fff;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.rank-info h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.rank-info h3 a:hover {
    color: var(--rose);
}

.rank-info p {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--rose-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) repeat(3, minmax(8rem, 12rem));
    gap: 0.8rem;
    margin-bottom: 1.4rem;
    padding: 1rem;
    border: 1px solid #ffe4e6;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #fecdd3;
    border-radius: 1rem;
    padding: 0.82rem 0.95rem;
    background: #fff;
    outline: none;
}

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

.no-results {
    display: none;
    margin: 2rem 0;
    padding: 1.2rem;
    text-align: center;
    color: var(--muted);
    border: 1px solid #ffe4e6;
    border-radius: 1rem;
    background: #fff;
}

.no-results.is-visible {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--rose-dark);
    font-weight: 700;
}

.slash {
    color: #fda4af;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
    padding: 1.2rem;
    border-radius: 1.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 242, 0.92));
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.35rem;
    min-height: 22rem;
    background: linear-gradient(135deg, #111827, #881337);
}

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

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.detail-info p {
    margin: 0;
    color: #4b5563;
    font-size: 1.06rem;
}

.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.info-pills span {
    border-radius: 999px;
    padding: 0.38rem 0.78rem;
    color: var(--rose-dark);
    font-weight: 800;
    background: #ffe4e6;
}

.player-section {
    margin-top: 2.5rem;
}

.player-section h2,
.article-section h2,
.related-section h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 1.55rem;
    background: #050505;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.player-video {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    border: 0;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.78)),
        rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

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

.play-circle {
    width: 5.2rem;
    height: 5.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--rose);
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
    transition: transform 0.2s ease;
}

.play-overlay:hover .play-circle {
    transform: scale(1.08);
}

.play-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.article-section {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.article-card {
    padding: 1.3rem;
    border: 1px solid #ffe4e6;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.07);
}

.article-card p {
    margin: 0;
    color: #4b5563;
}

.related-section {
    margin-top: 2.5rem;
}

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid #ffe4e6;
    background: rgba(255, 255, 255, 0.9);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand p {
    max-width: 30rem;
    margin: 1rem 0 0;
    color: var(--muted);
}

.footer-column h2 {
    margin: 0 0 0.9rem;
    font-size: 1rem;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li + li {
    margin-top: 0.45rem;
}

.footer-column a {
    color: var(--muted);
}

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

.footer-bottom {
    padding: 1rem 1.25rem;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid #ffe4e6;
}

@media (max-width: 980px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

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

    .hero-media::after {
        background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.85));
    }

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

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

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

@media (max-width: 640px) {
    .header-inner {
        padding: 0.8rem 1rem;
    }

    .brand-text {
        font-size: 1.02rem;
    }

    .hero-section {
        padding-top: 3.5rem;
    }

    .hero-slide {
        border-radius: 1.25rem;
        min-height: auto;
    }

    .hero-media {
        min-height: 13rem;
    }

    .hero-panel {
        padding: 1.2rem;
    }

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

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

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

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

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

    .play-circle {
        width: 4.2rem;
        height: 4.2rem;
        font-size: 1.65rem;
    }
}
