* {
    box-sizing: border-box;
}

:root {
    --pink: #ec4899;
    --pink-deep: #db2777;
    --orange: #fb923c;
    --blue: #60a5fa;
    --cyan: #22d3ee;
    --green: #10b981;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #f9fafb;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 42%, #eff6ff 100%);
    line-height: 1.6;
}

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

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

.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.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.3);
}

.brand-text {
    color: transparent;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #374151;
    font-weight: 650;
}

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

.main-nav a:hover {
    color: var(--pink);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: #111827;
}

.hero-section {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: white;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.28), transparent 22%),
        radial-gradient(circle at 78% 18%, rgba(255,255,255,0.16), transparent 26%),
        linear-gradient(90deg, #ec4899 0%, #fb923c 50%, #60a5fa 100%);
}

.hero-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-inner {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 48px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-copy h1 {
    max-width: 820px;
    margin: 18px 0 22px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 30px;
    font-size: clamp(18px, 2.2vw, 24px);
    color: rgba(255, 255, 255, 0.9);
}

.hero-chip,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-chip {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.eyebrow {
    color: var(--pink-deep);
    background: #fce7f3;
}

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

.primary-button,
.glass-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 14px 28px;
    color: var(--pink-deep);
    background: white;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.glass-button {
    padding: 14px 28px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.glass-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.text-link {
    color: var(--pink-deep);
    background: #fce7f3;
    padding: 10px 18px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-stats span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 420px;
    border-radius: 34px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 55%);
    z-index: 1;
}

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

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

.hero-poster span {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    font-size: 24px;
    font-weight: 900;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 84px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

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

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    color: #fff7ed;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 70px;
}

.hero-wave path {
    fill: currentColor;
}

.panel,
.content-section {
    margin-top: 56px;
}

.panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 480px);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.panel h2,
.section-heading h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

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

.search-box {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.search-box input {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 18px;
    background: white;
    padding: 16px 18px;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.12);
}

.inline-search {
    max-width: 620px;
    margin-top: 24px;
    color: white;
}

.inline-search input {
    border-color: rgba(255, 255, 255, 0.4);
}

.wide-search {
    max-width: 840px;
}

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

.category-grid,
.category-large-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.category-tile,
.category-card-large {
    border-radius: 22px;
    background: white;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile {
    display: grid;
    min-height: 160px;
    align-content: space-between;
    padding: 22px;
    overflow: hidden;
    position: relative;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: auto -30px -50px auto;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(236,72,153,0.22), rgba(96,165,250,0.22));
}

.category-tile span,
.category-card-head span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong,
.category-card-head strong {
    color: var(--pink-deep);
}

.category-tile small {
    color: var(--muted);
}

.category-tile:hover,
.category-card-large:hover,
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.13);
}

.category-card-large {
    padding: 22px;
}

.category-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.category-card-large p {
    color: var(--muted);
}

.mini-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.mini-list a,
.related-list a {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    border-radius: 14px;
    padding: 8px;
    background: #f9fafb;
}

.mini-list img,
.related-list img {
    width: 56px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

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

.movie-type,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.movie-type {
    left: 12px;
    color: var(--pink-deep);
}

.rank-badge {
    right: 12px;
    color: #111827;
}

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

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--muted);
}

.movie-meta-line a {
    color: var(--pink-deep);
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.32;
}

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

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

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

.tag-row.light span {
    color: white;
    background: rgba(255, 255, 255, 0.18);
}

.sub-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(90deg, #ec4899 0%, #fb923c 50%, #60a5fa 100%);
}

.sub-hero .container {
    padding: 72px 0;
}

.sub-hero h1 {
    margin: 14px 0 14px;
    font-size: clamp(40px, 6vw, 66px);
    line-height: 1.05;
}

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

.back-link {
    display: inline-flex;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    background: white;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.rank-table th,
.rank-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.rank-table th {
    background: #f9fafb;
    color: #374151;
}

.rank-table a {
    color: var(--pink-deep);
    font-weight: 800;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    filter: blur(10px);
    transform: scale(1.05);
    opacity: 0.3;
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 44px;
    align-items: center;
    min-height: 620px;
    padding: 60px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.05;
}

.detail-copy p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
    align-content: start;
}

.player-card,
.text-card,
.side-card {
    border-radius: 24px;
    background: white;
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.09);
}

.player-card {
    overflow: hidden;
}

.player-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
}

.source-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    color: #374151;
    background: #f3f4f6;
    font-weight: 800;
}

.source-button.is-active {
    color: white;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

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

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    border: 0;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.76), rgba(0,0,0,0.28));
    font: inherit;
    font-weight: 900;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 999px;
    color: var(--pink-deep);
    background: white;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.play-overlay.is-hidden {
    display: none;
}

.player-note {
    margin: 0;
    padding: 14px 20px 20px;
    color: var(--muted);
    font-size: 14px;
}

.text-card,
.side-card {
    padding: 24px;
}

.text-card h2,
.side-card h2 {
    margin: 0 0 14px;
}

.text-card p {
    margin: 0;
    color: #374151;
    white-space: pre-line;
}

.highlight-card {
    background: linear-gradient(135deg, #fdf2f8, #fff7ed);
}

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

.related-list a {
    grid-template-columns: 64px 1fr;
}

.related-list small {
    display: block;
    color: var(--muted);
}

.site-footer {
    margin-top: 72px;
    background: #111827;
    color: white;
}

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

.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: #9ca3af;
}

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

.footer-grid a:hover {
    color: #f9a8d4;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.is-filter-hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border-radius: 18px;
        background: white;
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
    }

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

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

    .mobile-menu-button {
        display: block;
    }

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

    .hero-section,
    .hero-inner,
    .hero-slide {
        min-height: 780px;
    }

    .hero-slide {
        gap: 24px;
        align-content: center;
    }

    .hero-poster {
        min-height: 280px;
        transform: none;
    }

    .hero-poster img {
        min-height: 280px;
    }

    .hero-dots {
        bottom: 34px;
    }

    .section-heading,
    .player-toolbar,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-hero-inner {
        padding: 36px 0;
    }
}

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

    .brand {
        font-size: 20px;
    }

    .movie-grid,
    .rank-strip,
    .category-grid,
    .category-large-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .sub-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .hero-actions {
        flex-direction: column;
    }
}
