:root {
    color-scheme: light;
    --bg: #f9fafb;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --pink: #ec4899;
    --yellow: #f59e0b;
    --green: #22c55e;
    --blue: #3b82f6;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #ca8a04, #ec4899, #16a34a);
    -webkit-background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--yellow));
    color: #fff;
    font-size: 14px;
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 9px 15px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #db2777;
    background: #fce7f3;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--soft);
    color: var(--text);
    border-radius: 14px;
    padding: 9px 12px;
    font-size: 20px;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    background: linear-gradient(135deg, #fdf2f8 0%, #eff6ff 52%, #ecfdf5 100%);
}

.hero-track {
    position: relative;
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: 52px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 82px;
    opacity: 0;
    transform: translateX(28px);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: -10% -12%;
    background-size: cover;
    background-position: center;
    filter: blur(38px) saturate(1.25);
    opacity: 0.22;
    transform: scale(1.04);
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fce7f3;
    color: #db2777;
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 22px 0 12px;
    max-width: 790px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero h1::first-line {
    color: #111827;
}

.hero h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.15;
    background: linear-gradient(90deg, #ca8a04, #ec4899, #16a34a);
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 650px;
    margin: 0 0 30px;
    color: #374151;
    font-size: 19px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.13);
}

.btn.primary {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--yellow));
}

.btn.light {
    background: #fff;
    color: #111827;
}

.btn.ghost {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.55);
    color: #374151;
}

.hero-poster {
    justify-self: center;
    width: min(390px, 100%);
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 38px 80px rgba(15, 23, 42, 0.24);
    transform: rotate(2deg);
}

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

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

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

.hero-dot {
    width: 36px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.18);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 56px;
    background: linear-gradient(90deg, var(--pink), var(--yellow));
}

.panel,
.section,
.filter-panel,
.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.quick-search {
    margin-top: -44px;
    position: relative;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search h2,
.section-head h2,
.ranking-panel h2,
.page-hero h1 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.search-bar,
.filter-panel {
    display: flex;
    gap: 12px;
}

.search-bar input,
.filter-panel input,
.filter-panel select {
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 13px 18px;
    background: #fff;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-bar input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #f9a8d4;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.search-bar button,
.filter-panel button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    background: linear-gradient(90deg, var(--pink), var(--yellow));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

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

.section-head.simple {
    align-items: center;
}

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

.more-link {
    color: #db2777;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 42px rgba(17, 24, 39, 0.13);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eef2f7;
}

.poster-link img,
.compact-card img,
.ranking-poster img,
.category-tile img,
.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover .poster-link img,
.compact-card:hover img,
.category-tile:hover img,
.category-cover:hover img {
    transform: scale(1.08);
}

.badge,
.score {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.badge {
    left: 12px;
    background: rgba(236, 72, 153, 0.86);
}

.score {
    right: 12px;
    background: rgba(17, 24, 39, 0.72);
}

.card-body {
    padding: 17px;
}

.card-title {
    display: block;
    margin-bottom: 6px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-title:hover {
    color: #db2777;
}

.card-meta,
.card-text {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.card-text {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span,
.mini-tags span {
    border-radius: 999px;
    padding: 4px 9px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

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

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

.category-tile {
    position: relative;
    min-height: 168px;
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 15%, rgba(17, 24, 39, 0.84) 100%);
}

.category-tile span,
.category-tile small {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
}

.category-tile span {
    bottom: 42px;
    font-size: 20px;
    font-weight: 900;
}

.category-tile small {
    bottom: 16px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-panel {
    align-self: start;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 9px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: #fdf2f8;
    transform: translateX(3px);
}

.rank-no {
    color: #db2777;
    font-weight: 900;
}

.rank-row img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-title {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row small {
    grid-column: 3;
    color: var(--muted);
}

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

.compact-card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.07);
}

.compact-card img {
    aspect-ratio: 3 / 4;
}

.compact-card span,
.compact-card small {
    display: block;
    overflow: hidden;
    padding: 0 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card span {
    padding-top: 12px;
    font-weight: 800;
}

.compact-card small {
    padding-bottom: 14px;
    color: var(--muted);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eff6ff 0%, #fdf2f8 58%, #ecfdf5 100%);
}

.page-hero {
    padding: 74px 24px;
    text-align: center;
}

.page-hero.slim {
    padding-bottom: 58px;
}

.page-hero p {
    max-width: 760px;
    margin: 16px auto 0;
    color: #4b5563;
    font-size: 18px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
}

.crumbs a {
    color: #db2777;
    font-weight: 700;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.category-cover {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
}

.category-overview-card h2 {
    margin: 4px 0 8px;
    font-size: 24px;
}

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

.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.filter-panel {
    align-items: center;
    padding-top: 32px;
    padding-bottom: 28px;
}

.filter-panel input {
    flex: 1 1 360px;
}

.filter-panel select {
    width: 160px;
}

.no-top {
    padding-top: 0;
}

.empty-state {
    display: none;
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
}

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

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.ranking-poster {
    position: relative;
    width: 92px;
    height: 122px;
    overflow: hidden;
    border-radius: 16px;
}

.ranking-poster span {
    position: absolute;
    left: 8px;
    top: 8px;
    min-width: 30px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.9);
    color: #fff;
    font-weight: 900;
    text-align: center;
}

.ranking-info h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-info p {
    margin: 3px 0;
    color: var(--muted);
}

.ranking-card strong {
    color: #db2777;
    font-size: 24px;
}

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

.detail-bg {
    position: absolute;
    inset: -12%;
    background-size: cover;
    background-position: center;
    filter: blur(42px) saturate(1.18);
    opacity: 0.28;
}

.detail-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 24px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 32px 70px rgba(17, 24, 39, 0.23);
}

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

.detail-info h1 {
    margin: 18px 0 14px;
    max-width: 760px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.lead {
    max-width: 760px;
    margin: 0 0 20px;
    color: #374151;
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.76);
    color: #374151;
    font-weight: 800;
}

.detail-tags span {
    background: #fff;
}

.player-section {
    padding-top: 42px;
    padding-bottom: 28px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #050816;
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.32);
    aspect-ratio: 16 / 9;
}

.main-player {
    width: 100%;
    height: 100%;
    background: #050816;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(180deg, rgba(5, 8, 22, 0.18), rgba(5, 8, 22, 0.72));
    color: #fff;
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--yellow));
    font-size: 30px;
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.34);
}

.player-cover strong {
    max-width: min(680px, 86%);
    overflow: hidden;
    font-size: clamp(22px, 4vw, 44px);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-cover small {
    font-size: 16px;
    font-weight: 800;
}

.detail-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.text-panel,
.side-panel {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.text-panel {
    padding: 32px;
}

.text-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.text-panel p {
    margin: 0 0 26px;
    color: #374151;
    font-size: 17px;
}

.text-panel p:last-child {
    margin-bottom: 0;
}

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

.side-panel dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

.side-panel dt {
    color: #6b7280;
}

.side-panel dd {
    margin: 0;
    font-weight: 800;
}

.side-panel a {
    color: #db2777;
}

.site-footer {
    margin-top: 48px;
    padding: 50px 24px 28px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid p {
    max-width: 430px;
    color: var(--muted);
}

.footer-grid h3 {
    margin: 0 0 12px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #4b5563;
}

.footer-links a:hover {
    color: #db2777;
}

.copyright {
    max-width: 1280px;
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1120px) {
    .movie-grid,
    .listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .ranking-panel {
        width: 100%;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 66px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow);
    }

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

    .hero,
    .hero-track {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 42px;
    }

    .hero-poster {
        width: min(290px, 76vw);
        transform: none;
    }

    .quick-search,
    .section-head,
    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input,
    .filter-panel input,
    .filter-panel select {
        width: 100%;
    }

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

    .category-overview-card {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .detail-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .detail-cover {
        width: min(280px, 72vw);
        margin: 0 auto;
    }

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

@media (max-width: 620px) {
    .nav-wrap,
    .panel,
    .section,
    .filter-panel,
    .player-section {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .card-body {
        padding: 13px;
    }

    .card-title {
        font-size: 16px;
    }

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

    .ranking-card {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .ranking-card strong {
        grid-column: 2;
        font-size: 18px;
    }

    .ranking-poster {
        width: 74px;
        height: 98px;
    }

    .detail-info h1 {
        font-size: 34px;
    }

    .player-box {
        border-radius: 20px;
    }

    .text-panel,
    .side-panel {
        padding: 22px;
    }

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