:root {
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-600: #9333ea;
    --purple-700: #7e22ce;
    --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 48px rgba(219, 39, 119, 0.12);
    --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.08);
    --radius-large: 28px;
    --radius-card: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 24px;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--pink-600), var(--purple-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink-500), var(--purple-600));
    box-shadow: 0 10px 22px rgba(219, 39, 119, 0.25);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.nav-link {
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 650;
    white-space: nowrap;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--pink-600);
    background: var(--pink-100);
    transform: translateY(-1px);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--pink-100);
    border-radius: 999px;
    background: #ffffff;
}

.header-search input,
.mobile-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 8px 6px 8px 12px;
    color: var(--gray-800);
    background: transparent;
}

.header-search button,
.mobile-search button {
    min-width: 38px;
    height: 38px;
    border: 0;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--purple-600));
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: var(--pink-600);
    border-radius: 12px;
    background: var(--pink-100);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    display: block;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--gray-700);
    font-weight: 650;
}

.mobile-link.is-active,
.mobile-link:hover {
    color: var(--pink-600);
    background: var(--pink-100);
}

.hero-section {
    position: relative;
    min-height: 580px;
    overflow: hidden;
    background: var(--gray-900);
}

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

.hero-slide {
    display: none;
    align-items: center;
}

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

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(90deg, rgba(219, 39, 119, 0.92), rgba(147, 51, 234, 0.82) 52%, rgba(17, 24, 39, 0.78));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    color: white;
    padding: 110px 0 84px;
}

.hero-kicker,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fdf2f8;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-content h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 760;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-list,
.detail-meta,
.quick-links,
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-list span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 11px;
    border-radius: 999px;
    color: var(--pink-600);
    background: var(--pink-50);
    font-size: 13px;
    font-weight: 680;
}

.hero-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.text-link,
.quick-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--pink-500), var(--purple-600));
    box-shadow: 0 18px 36px rgba(219, 39, 119, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover,
.quick-links a:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
}

.ghost-button.light {
    background: rgba(255, 255, 255, 0.18);
}

.text-link,
.quick-links a {
    color: var(--pink-600);
    background: var(--pink-50);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    color: white;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

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

.section-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.intro-panel {
    padding-bottom: 32px;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading.center {
    text-align: center;
}

.section-heading.compact {
    margin-bottom: 18px;
}

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

.section-heading h2,
.page-hero h1,
.detail-content h1 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--gray-500);
    font-size: 16px;
}

.center p {
    margin: 0 auto;
}

.quick-links {
    justify-content: center;
    margin-top: 26px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(252, 231, 243, 0.88);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 50px rgba(147, 51, 234, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--pink-100), var(--purple-100));
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(219, 39, 119, 0.88);
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pink-600);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.2);
}

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

.movie-card-meta,
.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 680;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.32;
}

.movie-card p {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

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

.category-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid rgba(252, 231, 243, 0.9);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-card);
}

.category-cover {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--pink-100), var(--purple-100));
}

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

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

.category-card p {
    margin: 0 0 14px;
    color: var(--gray-500);
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.ranking-panel,
.side-panel,
.detail-content,
.player-card {
    border: 1px solid rgba(252, 231, 243, 0.88);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
}

.ranking-panel,
.side-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

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

.rank-list.small {
    gap: 8px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 11px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pink-50), #ffffff);
}

.rank-number,
.rank-dot {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink-500), var(--purple-600));
    font-weight: 850;
}

.rank-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    color: var(--gray-900);
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--gray-500);
    font-size: 12px;
    white-space: nowrap;
}

.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 36px auto 0;
    padding: 64px;
    overflow: hidden;
    border-radius: 34px;
    color: var(--gray-900);
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.95), rgba(243, 232, 255, 0.95));
    box-shadow: var(--shadow-soft);
}

.category-hero,
.ranking-hero {
    color: white;
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.92), rgba(147, 51, 234, 0.9));
}

.category-hero h1,
.category-hero p,
.ranking-hero h1,
.ranking-hero p,
.category-hero span,
.ranking-hero span {
    color: white;
}

.ranking-hero {
    position: relative;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: center;
}

.ranking-hero img {
    width: 260px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 12px;
    border: 1px solid rgba(252, 231, 243, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-card);
}

.filter-bar.large {
    grid-template-columns: minmax(0, 1fr) 220px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--pink-100);
    border-radius: 16px;
    outline: 0;
    padding: 12px 14px;
    color: var(--gray-800);
    background: white;
}

.empty-state {
    display: none;
    margin: 16px 0;
    padding: 22px;
    border-radius: 18px;
    color: var(--gray-500);
    background: white;
    text-align: center;
}

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 20px;
    padding: 16px;
    border: 1px solid rgba(252, 231, 243, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
}

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

.ranking-poster span {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--purple-600));
    font-weight: 850;
}

.ranking-card h2 {
    margin: 4px 0 8px;
    color: var(--gray-900);
    font-size: 24px;
}

.ranking-card p {
    margin: 0 0 12px;
    color: var(--gray-500);
}

.detail-layout {
    width: min(1280px, calc(100% - 32px));
    margin: 36px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

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

.breadcrumb a {
    color: var(--pink-600);
    font-weight: 700;
}

.player-card {
    overflow: hidden;
    padding: 0;
    background: #050505;
}

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

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #050505;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(219, 39, 119, 0.2), rgba(0, 0, 0, 0.38));
    cursor: pointer;
}

.player-start span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--purple-600));
    box-shadow: 0 18px 50px rgba(219, 39, 119, 0.36);
    font-size: 38px;
}

.player-start.is-hidden {
    display: none;
}

.detail-content {
    margin-top: 22px;
    padding: 28px;
}

.detail-content h1 {
    font-size: clamp(30px, 4vw, 50px);
}

.detail-one-line {
    margin: 0 0 18px;
    color: var(--gray-700);
    font-size: 18px;
}

.detail-content h2 {
    margin: 30px 0 12px;
    color: var(--gray-900);
    font-size: 24px;
}

.detail-content p {
    margin: 0 0 14px;
    color: var(--gray-700);
}

.detail-cover {
    display: block;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--pink-100), var(--purple-100));
    box-shadow: var(--shadow-soft);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.side-panel {
    margin-top: 20px;
}

.side-panel h2 {
    margin: 0 0 16px;
    color: var(--gray-900);
}

.related-section {
    padding-top: 48px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(252, 231, 243, 0.9);
    background: linear-gradient(135deg, var(--pink-50), var(--purple-50));
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    gap: 22px;
}

.footer-inner p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--gray-500);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-links a {
    color: var(--gray-700);
    font-weight: 650;
}

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

.copyright {
    color: var(--gray-500);
    font-size: 14px;
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

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

    .category-grid,
    .category-grid.wide,
    .split-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .side-panel {
        position: static;
    }

    .detail-side {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 20px;
        align-items: start;
    }
}

@media (max-width: 760px) {
    .logo {
        font-size: 20px;
    }

    .hero-section {
        min-height: 620px;
    }

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

    .hero-control {
        display: none;
    }

    .section-wrap {
        padding: 48px 0;
    }

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

    .category-card,
    .ranking-card,
    .ranking-hero,
    .detail-side,
    .filter-bar,
    .filter-bar.large {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 36px 24px;
        border-radius: 26px;
    }

    .ranking-hero img,
    .detail-cover {
        width: min(280px, 100%);
    }

    .rank-item {
        grid-template-columns: 40px 1fr;
    }

    .rank-meta {
        grid-column: 2;
    }

    .detail-content {
        padding: 22px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        width: min(100% - 22px, 1280px);
    }

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

    .hero-content,
    .section-wrap,
    .page-hero,
    .detail-layout,
    .footer-inner,
    .mobile-nav {
        width: min(100% - 22px, 1280px);
    }

    .movie-card {
        border-radius: 18px;
    }
}
