:root {
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --orange: #f97316;
    --green: #10b981;
    --ink: #111827;
    --text: #374151;
    --muted: #6b7280;
    --line: #f1e8ff;
    --soft: #fff7fb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(99, 102, 241, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #fffafc;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 10px 35px rgba(139, 92, 246, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.3);
}

.brand-name {
    font-size: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #db2777;
    background: #fdf2f8;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fdf2f8;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #db2777;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px 16px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(135deg, #ec4899 0%, #8b5cf6 48%, #2563eb 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.8) 1px, transparent 0);
    background-size: 34px 34px;
}

.hero-slider {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 56px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 72px -12vw 44px;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.24)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(12px) saturate(1.18);
    opacity: 0.42;
    border-radius: 42px;
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 8vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero p {
    max-width: 700px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2.3vw, 23px);
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.rank-meta span,
.meta-row span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

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

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

.primary-button,
.secondary-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.primary-button {
    padding: 14px 26px;
    color: #7c3aed;
    background: #fff;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.2);
}

.secondary-button {
    padding: 13px 24px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.secondary-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    justify-self: end;
    width: min(390px, 100%);
    border-radius: 34px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.38);
    backdrop-filter: blur(12px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    object-fit: cover;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
    transition: all 0.25s ease;
}

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

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: min(760px, calc(100% - 32px));
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: #fff;
    color: #111827;
}

.hero-search input {
    padding: 14px 20px;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    cursor: pointer;
}

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

.soft-section {
    background: #fff;
}

.warm-section {
    background: linear-gradient(135deg, #fffbeb, #fff1f2);
}

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

.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

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

.section-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    color: #db2777;
    background: #fdf2f8;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 8px 24px 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);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge,
.play-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(8px);
    font-size: 12px;
}

.play-mark {
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.32);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.rank-content h3 a:hover,
.side-panel a:hover,
.footer-grid a:hover {
    color: #db2777;
}

.card-body p {
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.meta-row span,
.tag-row span {
    color: #6d28d9;
    background: #f5f3ff;
}

.tag-row span {
    color: #be185d;
    background: #fdf2f8;
}

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

.compact-card .card-body p,
.compact-card .tag-row {
    display: none;
}

.wide-card,
.large-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
}

.wide-card .poster-link img,
.large-card .poster-link img {
    height: 100%;
}

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

.category-tile,
.category-card-detail {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 26px;
    padding: 24px;
    color: #fff;
    background: var(--tile-gradient);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.category-tile:hover,
.category-card-detail:hover {
    transform: translateY(-5px);
}

.category-tile span,
.category-card-detail h2 {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p,
.category-card-detail p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.category-tile img {
    position: absolute;
    right: -18px;
    bottom: -32px;
    width: 112px;
    height: 168px;
    border-radius: 18px;
    object-fit: cover;
    opacity: 0.42;
    transform: rotate(8deg);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: 24px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.rank-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.rank-cover img {
    width: 112px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.rank-cover span {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.rank-content h3 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
}

.rank-content p {
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.rank-meta span {
    color: #c2410c;
    background: #fff7ed;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--page-gradient, linear-gradient(135deg, #ec4899, #8b5cf6, #2563eb));
}

.page-hero .container {
    padding: 82px 0 76px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.slim-hero,
.search-hero,
.rankings-hero {
    background: linear-gradient(135deg, #ec4899, #7c3aed, #2563eb);
}

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

.category-card-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    min-height: 240px;
}

.category-card-posters {
    position: relative;
    min-height: 172px;
}

.category-card-posters img {
    position: absolute;
    width: 92px;
    height: 138px;
    border: 3px solid rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.25);
}

.category-card-posters img:nth-child(1) {
    right: 116px;
    top: 14px;
    transform: rotate(-10deg);
}

.category-card-posters img:nth-child(2) {
    right: 72px;
    top: 40px;
    transform: rotate(4deg);
}

.category-card-posters img:nth-child(3) {
    right: 24px;
    top: 12px;
    transform: rotate(12deg);
}

.category-card-posters img:nth-child(4) {
    right: 0;
    top: 68px;
    transform: rotate(-4deg);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 160px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 12px;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
}

.filter-panel input,
.filter-panel select {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #f3d7ec;
}

.empty-state {
    margin-bottom: 24px;
    padding: 22px;
    border-radius: 20px;
    color: #be185d;
    background: #fdf2f8;
    font-weight: 800;
    text-align: center;
}

.detail-hero {
    color: #fff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.8)), var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
    padding: 76px 0 60px;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 70px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 850px;
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.detail-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

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

.detail-tags span {
    color: #fff;
    background: rgba(236, 72, 153, 0.45);
}

.player-section {
    padding: 42px 0 24px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #050816;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050816;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.28), rgba(17, 24, 39, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    color: #fff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 20px 42px rgba(236, 72, 153, 0.38);
}

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

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    padding: 24px 0 20px;
}

.content-panel,
.side-panel {
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.content-panel {
    padding: 30px;
}

.content-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 24px;
}

.content-panel p {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 17px;
}

.side-panel {
    align-self: start;
    padding: 22px;
}

.side-panel a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f3e8ff;
    color: #4b5563;
    font-weight: 700;
}

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

.site-footer {
    margin-top: 30px;
    border-top: 1px solid rgba(236, 72, 153, 0.12);
    background: linear-gradient(135deg, #fdf2f8, #f5f3ff, #eff6ff);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0 32px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--ink);
}

.footer-grid p,
.footer-grid a {
    color: #6b7280;
    font-size: 14px;
}

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

.footer-grid li + li {
    margin-top: 8px;
}

.footer-bottom {
    padding: 18px 0 28px;
    color: #6b7280;
    font-size: 14px;
}

[hidden],
.movie-card.is-hidden,
.rank-item.is-hidden {
    display: none !important;
}

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

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

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

@media (max-width: 860px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

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

    .hero {
        min-height: 760px;
    }

    .hero-slider {
        min-height: 700px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        align-content: center;
        padding: 40px 0 120px;
    }

    .hero-backdrop {
        inset: 36px -24px 96px;
    }

    .hero-poster {
        justify-self: start;
        width: min(260px, 70vw);
    }

    .hero-controls {
        bottom: 118px;
    }

    .large-grid,
    .three-grid,
    .rank-strip,
    .ranking-list,
    .category-overview-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .wide-card,
    .large-card {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        width: 220px;
    }

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

    .category-card-posters {
        display: none;
    }
}

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

    .brand-name {
        font-size: 20px;
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .hero-search button {
        min-height: 46px;
    }

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

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

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

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

    .rank-cover img {
        width: 92px;
    }

    .card-body {
        padding: 14px;
    }

    .player-overlay span {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }
}
