* {
    box-sizing: border-box;
}

:root {
    --pink-50: #fff1f7;
    --pink-100: #ffe4ef;
    --pink-200: #fecddf;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(219, 39, 119, 0.18);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-800);
    background: linear-gradient(180deg, #ffffff 0%, var(--pink-50) 52%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(244, 114, 182, 0.22);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-900);
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 12px 24px rgba(219, 39, 119, 0.28);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 600;
}

.main-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--pink-600);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    width: min(320px, 32vw);
    padding: 4px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 12px;
    color: var(--gray-800);
}

.header-search button,
.hero-search button,
.filter-panel button,
.primary-button,
.secondary-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 14px 30px rgba(219, 39, 119, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 8px 16px;
    white-space: nowrap;
}

.header-search button:hover,
.hero-search button:hover,
.filter-panel button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(219, 39, 119, 0.32);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    background: var(--pink-50);
    border-radius: 12px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--pink-600);
    border-radius: 999px;
}

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

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(244, 114, 182, 0.34), transparent 28%), linear-gradient(120deg, #fff1f7 0%, #ffe4ef 45%, #fff7fb 100%);
}

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

.hero::before {
    width: 260px;
    height: 260px;
    left: 7%;
    top: 12%;
    background: #f9a8d4;
}

.hero::after {
    width: 340px;
    height: 340px;
    right: 5%;
    bottom: -90px;
    background: #fda4af;
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 620px;
    padding: 78px 0 70px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: 52px;
}

.hero-kicker,
.section-label,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--pink-600);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(244, 114, 182, 0.28);
    font-size: 14px;
    font-weight: 800;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 20px;
    color: var(--gray-900);
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero h1 span,
.page-hero h1 span {
    color: var(--pink-600);
}

.hero-lead,
.page-lead {
    max-width: 680px;
    margin: 0 0 28px;
    color: var(--gray-700);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    font-weight: 800;
}

.secondary-button {
    color: var(--pink-600);
    background: #ffffff;
    border: 1px solid var(--pink-200);
    box-shadow: var(--shadow-sm);
}

.hero-search {
    display: flex;
    width: min(620px, 100%);
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(244, 114, 182, 0.2);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 18px;
    color: var(--gray-800);
}

.hero-search button {
    padding: 10px 22px;
    white-space: nowrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 620px;
    margin-top: 28px;
}

.hero-stat {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(244, 114, 182, 0.2);
    box-shadow: var(--shadow-sm);
}

.hero-stat strong {
    display: block;
    color: var(--gray-900);
    font-size: 24px;
    line-height: 1.1;
}

.hero-stat span {
    color: var(--gray-500);
    font-size: 13px;
}

.hero-carousel {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(26px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

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

.hero-feature-card {
    overflow: hidden;
    height: 100%;
    min-height: 500px;
    border-radius: 34px;
    background: #ffffff;
    box-shadow: 0 34px 80px rgba(219, 39, 119, 0.22);
    border: 1px solid rgba(244, 114, 182, 0.28);
}

.hero-poster {
    position: relative;
    height: 330px;
    overflow: hidden;
}

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

.hero-feature-card:hover .hero-poster img {
    transform: scale(1.06);
}

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

.hero-badges {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.hero-feature-body {
    padding: 24px;
}

.hero-feature-body h2 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 26px;
}

.hero-feature-body p {
    margin: 0 0 18px;
    color: var(--gray-600);
}

.carousel-dots {
    position: absolute;
    z-index: 4;
    right: 24px;
    bottom: 22px;
    display: flex;
    gap: 8px;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--pink-200);
    cursor: pointer;
}

.carousel-dots button.is-active {
    width: 28px;
    background: var(--pink-600);
}

main {
    overflow: hidden;
}

.section,
.page-section {
    padding: 70px 0;
}

.section.alt,
.page-section.alt {
    background: rgba(255, 255, 255, 0.65);
}

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

.section-head h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(26px, 3vw, 42px);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 8px 0 0;
    max-width: 680px;
    color: var(--gray-500);
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    min-height: 240px;
    border-radius: 26px;
    background: linear-gradient(145deg, #ffffff, var(--pink-50));
    border: 1px solid rgba(244, 114, 182, 0.22);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(219, 39, 119, 0.42);
    box-shadow: var(--shadow-lg);
}

.category-thumbs {
    height: 98px;
    margin-bottom: 18px;
    display: flex;
    align-items: end;
}

.category-thumbs img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-sm);
}

.category-thumbs img + img {
    margin-left: -22px;
}

.category-card h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 22px;
}

.category-card p {
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 14px;
}

.category-card span {
    color: var(--pink-600);
    font-size: 14px;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.82);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(244, 114, 182, 0.48);
    box-shadow: var(--shadow-lg);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--pink-50);
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(17, 24, 39, 0.74) 100%);
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

.badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
}

.badge-type {
    left: 10px;
    background: rgba(219, 39, 119, 0.9);
}

.badge-year {
    right: 10px;
}

.poster-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--pink-600);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card h3 {
    min-height: 44px;
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 16px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--pink-600);
}

.movie-meta {
    margin: 0 0 8px;
    color: var(--gray-500);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-desc {
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--pink-600);
    background: var(--pink-50);
    border: 1px solid var(--pink-100);
    font-size: 12px;
    font-weight: 700;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 70px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    color: var(--pink-600);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

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

.rank-item h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.rank-item p {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
}

.page-hero {
    position: relative;
    padding: 74px 0 60px;
    background: linear-gradient(120deg, var(--pink-50), #ffffff 45%, #fff7fb);
    border-bottom: 1px solid rgba(244, 114, 182, 0.18);
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 180px auto;
    gap: 12px;
    margin-bottom: 30px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(244, 114, 182, 0.2);
    box-shadow: var(--shadow-md);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--gray-200);
    outline: 0;
    border-radius: 999px;
    padding: 12px 14px;
    background: var(--gray-50);
    color: var(--gray-800);
}

.filter-panel button {
    min-width: 96px;
    padding: 12px 18px;
    font-weight: 800;
}

.empty-state {
    display: none;
    padding: 42px;
    border-radius: 24px;
    color: var(--gray-600);
    background: #ffffff;
    border: 1px solid var(--gray-200);
    text-align: center;
}

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

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

.player-panel,
.detail-info,
.side-panel,
.content-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
}

.player-panel {
    overflow: hidden;
}

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

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111827;
    cursor: pointer;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transform: translate(-50%, -50%);
    padding: 16px 24px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-weight: 900;
}

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

.player-start-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--pink-600);
    background: #ffffff;
}

.detail-info {
    padding: 26px;
    margin-top: 20px;
}

.detail-info h1 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.detail-info .summary-line {
    margin: 0 0 18px;
    color: var(--gray-600);
    font-size: 18px;
}

.meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

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

.article-block h2 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 22px;
}

.article-block p {
    margin: 0;
    color: var(--gray-700);
}

.side-panel {
    overflow: hidden;
    padding: 18px;
}

.side-panel img {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 18px;
}

.side-panel h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.side-panel p {
    margin: 0 0 10px;
    color: var(--gray-600);
}

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

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.content-card {
    padding: 26px;
}

.content-card h2,
.content-card h3 {
    margin-top: 0;
    color: var(--gray-900);
}

.content-card p,
.content-card li {
    color: var(--gray-600);
}

.site-footer {
    margin-top: 30px;
    padding: 52px 0 24px;
    background: linear-gradient(180deg, var(--pink-50), var(--pink-100));
    border-top: 1px solid rgba(244, 114, 182, 0.22);
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--gray-900);
}

.site-footer p,
.site-footer a {
    color: var(--gray-600);
    font-size: 14px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.site-footer a:hover {
    color: var(--pink-600);
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(244, 114, 182, 0.2);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

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

@media (max-width: 1100px) {
    .movie-grid,
    .related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

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

    .search-results {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

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

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border-radius: 20px;
        background: #ffffff;
        border: 1px solid var(--pink-100);
    }

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

    .main-nav a {
        padding: 11px 12px;
        border-radius: 12px;
    }

    .main-nav a:hover {
        background: var(--pink-50);
    }

    .header-search {
        order: 4;
        width: 100%;
        margin-left: 0;
    }

    .hero-inner {
        min-height: auto;
        padding: 48px 0;
    }

    .hero-stats,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .related-grid,
    .search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .section-head {
        display: block;
    }

    .section-more {
        display: inline-block;
        margin-top: 12px;
    }

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

    .rank-item img {
        width: 60px;
        height: 80px;
    }
}

@media (max-width: 520px) {
    .container,
    .header-inner,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1200px);
    }

    .hero-search,
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        border-radius: 24px;
    }

    .hero-search button,
    .hero-search input {
        width: 100%;
    }

    .hero-carousel,
    .hero-feature-card {
        min-height: 460px;
    }

    .hero-poster {
        height: 280px;
    }

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

    .movie-card h3 {
        font-size: 15px;
    }

    .detail-info,
    .content-card {
        padding: 20px;
    }
}
