* {
    box-sizing: border-box;
}

:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --orange: #f97316;
    --orange-soft: #fed7aa;
    --yellow: #facc15;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f9a8d4;
    --bg: #fff7ed;
    --card: #ffffff;
    --shadow: 0 18px 48px rgba(219, 39, 119, 0.16);
}

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(180deg, #fff7ed 0%, #fdf2f8 45%, #fff7ed 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(253, 242, 248, 0.94));
    border-bottom: 1px solid rgba(236, 72, 153, 0.18);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.10);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.28);
    font-size: 14px;
}

.brand-name,
.footer-brand span:last-child {
    font-size: 24px;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, var(--pink-dark), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 15px;
    font-weight: 650;
    color: #4b5563;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--pink-dark);
}

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

.nav-search input,
.filter-input {
    width: 190px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(236, 72, 153, 0.28);
    background: #fff;
    padding: 0 16px;
    outline: none;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.nav-search button,
.btn,
.filter-chip {
    border: 0;
    cursor: pointer;
    font-weight: 800;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button {
    height: 40px;
    padding: 0 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.nav-search button:hover,
.btn:hover,
.filter-chip:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.16);
}

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

.mobile-nav {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 16px;
    color: #4b5563;
    font-weight: 700;
}

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

main {
    min-height: 62vh;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #ec4899 0%, #fb923c 55%, #fde047 100%);
}

.hero-pattern,
.page-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.55;
    pointer-events: none;
}

.hero-shell {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 74px 20px 64px;
}

.hero-carousel {
    position: relative;
    min-height: 520px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(88, 28, 135, 0.28);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) saturate(1.2);
    transform: scale(1.08);
    opacity: 0.55;
}

.hero-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62), rgba(236, 72, 153, 0.30));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 520px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 36px;
    padding: 54px;
}

.hero-copy {
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: #451a03;
    background: linear-gradient(90deg, #fde047, #fed7aa);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(250, 204, 21, 0.22);
}

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -2px;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.hero p {
    max-width: 720px;
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.90);
    margin: 0 0 22px;
}

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.32);
}

.btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(12px);
}

.btn-link {
    color: #fde68a;
    padding-left: 8px;
    padding-right: 8px;
}

.hero-poster {
    position: relative;
    justify-self: center;
    width: min(360px, 100%);
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
    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.08);
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: #7c2d12;
    background: #fde047;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 900;
}

.hero-dots {
    position: absolute;
    left: 74px;
    bottom: 38px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.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: #fff;
}

.section,
.page-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 20px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    color: #1f2937;
}

.section-desc {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.text-link {
    color: var(--pink-dark);
    font-weight: 900;
    white-space: nowrap;
}

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

.movie-card {
    min-width: 0;
}

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(236, 72, 153, 0.13);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.movie-poster {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.movie-card-wide .movie-poster {
    aspect-ratio: 16 / 10;
}

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

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

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

.poster-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.poster-badge {
    top: 12px;
    right: 12px;
    color: #fff;
    background: rgba(236, 72, 153, 0.92);
    padding: 7px 10px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c2d12;
    background: linear-gradient(135deg, #fde047, #fed7aa);
}

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

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

.movie-card-body p {
    margin: 0 0 14px;
    min-height: 45px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 12px;
}

.tag-row span {
    background: #fdf2f8;
    color: var(--pink-dark);
}

.band {
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.72), rgba(252, 231, 243, 0.9));
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 76px 1fr auto;
    gap: 14px;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.11);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.rank-index {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

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

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    font-size: 17px;
    margin-bottom: 6px;
}

.rank-info em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.rank-score {
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 900;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.18);
}

.category-card::after {
    position: absolute;
    right: -40px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 22px;
}

.category-card p {
    position: relative;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    font-size: 14px;
}

.category-card span {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #7c2d12;
    background: #fff7ed;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(110deg, var(--pink), #fb923c 62%, #fde047);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 58px 20px;
}

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

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

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.page-hero p {
    max-width: 840px;
    margin: 0;
    font-size: 18px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.92);
}

.filter-panel {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 34px rgba(236, 72, 153, 0.11);
}

.filter-panel .filter-input {
    width: min(320px, 100%);
}

.filter-chip {
    min-height: 40px;
    padding: 0 14px;
    color: var(--pink-dark);
    background: #fdf2f8;
}

.filter-chip.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.empty-state {
    display: none;
    padding: 46px 20px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.84);
}

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

.detail-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-info,
.story-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #111827;
}

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

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

.play-button {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.40);
    font-size: 30px;
    cursor: pointer;
}

.player-caption {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: #4b5563;
    font-weight: 800;
}

.detail-info {
    padding: 26px;
}

.detail-info .btn-glass {
    color: var(--pink-dark);
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
}

.detail-info h1 {
    margin: 12px 0 14px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
}

.detail-info .lead {
    color: #4b5563;
    line-height: 1.9;
    font-size: 17px;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 850;
    font-size: 13px;
}

.detail-tags span {
    color: var(--pink-dark);
    background: #fdf2f8;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 28px;
}

.story-card {
    padding: 24px;
}

.story-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.story-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.95;
}

.related-section {
    margin-top: 38px;
}

.related-section h2 {
    margin: 0 0 20px;
    font-size: 30px;
}

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

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 44px 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-grid p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 420px;
}

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

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
    color: #6b7280;
}

.footer-grid a:hover {
    color: var(--pink-dark);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 20px 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #6b7280;
    border-top: 1px solid rgba(236, 72, 153, 0.16);
    font-size: 14px;
}

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

    .nav-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

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

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

    .hero-content,
    .detail-top,
    .rank-layout,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

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

    .nav-search {
        order: 3;
        width: 100%;
    }

    .nav-search input {
        flex: 1;
        width: auto;
    }

    .hero-shell {
        padding: 34px 14px 42px;
    }

    .hero-carousel {
        min-height: 560px;
        border-radius: 24px;
    }

    .hero-content {
        min-height: 560px;
        padding: 28px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-dots {
        left: 40px;
        bottom: 26px;
    }

    .section,
    .page-section,
    .detail-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

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

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

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

    .rank-row {
        grid-template-columns: 38px 62px 1fr;
    }

    .rank-score {
        display: none;
    }

    .rank-row img {
        width: 62px;
        height: 62px;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
