:root {
    --rose-50: #fff1f5;
    --rose-100: #ffe4ec;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --pink-500: #ec4899;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-soft: 0 18px 45px rgba(244, 63, 94, 0.14);
    --shadow-card: 0 16px 35px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-800);
    background: linear-gradient(180deg, rgba(255, 241, 245, 0.6), #ffffff 28%, rgba(255, 241, 245, 0.45));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--rose-500);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.28);
}

.brand-text {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.brand-sub {
    display: block;
    margin-left: 2px;
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 500;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

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

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--rose-500);
    background: var(--rose-50);
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #160912;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 118px;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--rose-500);
    background: rgba(255, 241, 245, 0.96);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content h1 {
    max-width: 760px;
    margin: 20px 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-tags,
.meta-pills,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags span,
.meta-pills span,
.tag-row span {
    border: 1px solid rgba(244, 63, 94, 0.16);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--rose-500);
    background: #fff7fa;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    padding: 0 20px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 14px 32px rgba(244, 63, 94, 0.28);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(244, 63, 94, 0.36);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.ghost-button.light {
    color: var(--rose-500);
    border-color: rgba(244, 63, 94, 0.18);
    background: #ffffff;
}

.text-button {
    min-height: auto;
    padding: 0;
    color: var(--rose-500);
}

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

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

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

.feature-panel {
    position: relative;
    z-index: 4;
    margin-top: -82px;
}

.feature-card {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 0.9fr;
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.feature-cover {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    background: var(--rose-100);
}

.feature-cover img,
.category-card img,
.movie-card img,
.category-image img,
.rank-cover img,
.detail-poster img,
.player-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-cover:hover img,
.category-card:hover img,
.movie-card:hover img,
.category-image:hover img,
.rank-cover:hover img {
    transform: scale(1.07);
}

.feature-cover span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 8px 13px;
    color: #ffffff;
    background: var(--rose-500);
    font-size: 0.82rem;
    font-weight: 800;
}

.feature-info,
.hot-list {
    padding: 34px;
}

.feature-info {
    background: linear-gradient(135deg, #fff7fa, #ffffff);
}

.feature-info h2,
.section-heading h2,
.hot-list h2,
.rank-side-list h2,
.category-overview-card h2,
.detail-content h1,
.detail-content h2 {
    margin: 0;
    color: var(--gray-900);
}

.feature-info h2 {
    margin: 14px 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.1;
}

.feature-info p,
.page-hero p,
.rank-hero p,
.category-overview-card p,
.detail-content p,
.site-footer p {
    color: var(--gray-500);
    line-height: 1.8;
}

.hot-list {
    background: linear-gradient(180deg, #fff1f5, #ffffff);
}

.hot-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px 12px;
    align-items: center;
    border-radius: 16px;
    padding: 12px;
    transition: all 0.2s ease;
}

.hot-item:hover {
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.hot-item span {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    font-weight: 900;
}

.hot-item strong {
    overflow: hidden;
    color: var(--gray-800);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hot-item em {
    grid-column: 2;
    margin-top: -8px;
    overflow: hidden;
    color: var(--gray-500);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.82rem;
    font-style: normal;
}

.section-block {
    padding: 64px 0;
}

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

.section-heading h2 {
    margin-top: 10px;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.section-heading a {
    color: var(--rose-500);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--rose-100);
    box-shadow: var(--shadow-card);
}

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

.category-card span,
.category-card p {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
}

.category-card span {
    bottom: 74px;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 900;
}

.category-card p {
    bottom: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tool-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 24px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
}

.search-box {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    min-width: 220px;
    border-radius: 16px;
    padding: 0 14px;
    background: var(--gray-50);
}

.search-box span {
    color: var(--rose-500);
    font-weight: 900;
}

.search-box input {
    width: 100%;
    min-height: 44px;
    border: 0;
    outline: 0;
    color: var(--gray-800);
    background: transparent;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    color: var(--gray-700);
    background: #ffffff;
    font-weight: 800;
    transition: all 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-100), #ffffff);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(244, 63, 94, 0.92);
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 0.78rem;
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
}

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

.movie-meta {
    margin: 0 0 8px;
    color: var(--rose-500);
    font-size: 0.8rem;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 1.08rem;
    line-height: 1.35;
}

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

.movie-desc {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--gray-500);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.9rem;
    line-height: 1.6;
}

.movie-card.compact .movie-card-body {
    padding: 14px;
}

.movie-card.compact h3 {
    font-size: 0.98rem;
}

.movie-card.compact .movie-desc {
    min-height: 0;
    -webkit-line-clamp: 1;
}

.no-results {
    display: none;
    margin: 30px 0 0;
    border-radius: 18px;
    padding: 24px;
    color: var(--gray-500);
    background: #ffffff;
    text-align: center;
}

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

.page-hero {
    padding: 84px 0 70px;
}

.soft-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 12% 10%, rgba(244, 63, 94, 0.16), transparent 34%), linear-gradient(135deg, #fff1f5, #ffffff 58%, #ffe4ec);
}

.page-hero h1,
.rank-hero h1 {
    margin: 18px 0 14px;
    color: var(--gray-900);
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p,
.rank-hero p {
    max-width: 760px;
    font-size: 1.08rem;
}

.small-actions {
    margin-top: 24px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 24px;
    padding: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-image {
    overflow: hidden;
    border-radius: 18px;
    background: var(--rose-100);
}

.category-overview-card h2 {
    margin-top: 5px;
    font-size: 1.5rem;
}

.category-overview-card h2 a:hover {
    color: var(--rose-500);
}

.category-links {
    display: grid;
    gap: 7px;
    margin: 14px 0;
}

.category-links a {
    overflow: hidden;
    color: var(--gray-700);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.category-links a:hover {
    color: var(--rose-500);
}

.rank-hero {
    padding: 70px 0;
    background: linear-gradient(135deg, #160912, #52152f 52%, #9f1239);
    color: #ffffff;
}

.rank-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 320px 0.9fr;
    gap: 34px;
    align-items: center;
}

.rank-hero h1,
.rank-hero p {
    color: #ffffff;
}

.rank-cover {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.rank-cover img {
    aspect-ratio: 2 / 3;
}

.rank-cover span,
.rank-cover strong {
    position: absolute;
    z-index: 2;
    left: 20px;
}

.rank-cover span {
    top: 20px;
    border-radius: 999px;
    padding: 8px 13px;
    color: #ffffff;
    background: var(--rose-500);
    font-weight: 900;
}

.rank-cover strong {
    right: 20px;
    bottom: 20px;
    color: #ffffff;
    font-size: 1.5rem;
}

.rank-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.rank-side-list {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.rank-side-list .hot-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.rank-side-list .hot-item strong,
.rank-side-list .hot-item em,
.rank-side-list h2 {
    color: #ffffff;
}

.detail-shell {
    padding: 34px 0 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--gray-500);
    font-size: 0.92rem;
}

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

.player-card {
    overflow: hidden;
    border-radius: 28px;
    background: #08080b;
    box-shadow: 0 26px 65px rgba(15, 23, 42, 0.24);
}

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

.video-frame video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-frame video {
    z-index: 1;
    background: #000000;
}

.player-cover {
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    overflow: hidden;
    background: #000000;
    cursor: pointer;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.big-play {
    position: relative;
    z-index: 3;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 18px 40px rgba(244, 63, 94, 0.38);
    font-size: 2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    margin-top: 28px;
}

.detail-poster,
.detail-content {
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.detail-poster img {
    border-radius: 18px;
    aspect-ratio: 2 / 3;
}

.primary-button.full {
    width: 100%;
    margin-top: 16px;
}

.detail-content {
    padding: 30px;
}

.detail-content h1 {
    margin-top: 12px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.lead-text {
    border-left: 4px solid var(--rose-500);
    margin: 24px 0;
    padding-left: 16px;
    color: var(--gray-700) !important;
    font-size: 1.08rem;
}

.detail-content h2 {
    margin-top: 26px;
    font-size: 1.35rem;
}

.detail-tags {
    margin-top: 26px;
}

.site-footer {
    border-top: 1px solid rgba(244, 63, 94, 0.1);
    padding-top: 48px;
    background: linear-gradient(180deg, #fff7fa, #ffffff);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 1rem;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: var(--gray-500);
}

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

.footer-bottom {
    margin-top: 36px;
    border-top: 1px solid rgba(244, 63, 94, 0.08);
    padding: 20px;
    color: var(--gray-500);
    text-align: center;
}

@media (max-width: 1120px) {
    .feature-card,
    .rank-hero-inner {
        grid-template-columns: 1fr;
    }

    .feature-cover {
        min-height: 360px;
    }

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

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

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid rgba(244, 63, 94, 0.12);
        border-radius: 20px;
        padding: 12px;
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

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

    .brand-sub {
        display: none;
    }

    .hero-carousel {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 86px;
    }

    .hero-control {
        bottom: 72px;
    }

    .feature-panel {
        margin-top: -48px;
    }

    .tool-panel,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        order: 2;
    }

    .detail-content {
        order: 1;
    }
}

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

    .hero-carousel {
        min-height: 610px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .feature-info,
    .hot-list,
    .detail-content {
        padding: 22px;
    }

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

    .filter-row {
        width: 100%;
    }

    .filter-button {
        flex: 1;
    }

    .page-hero,
    .rank-hero {
        padding: 58px 0;
    }
}
