:root {
    --pink: #db2777;
    --pink-soft: #fdf2f8;
    --orange: #f97316;
    --orange-soft: #fff7ed;
    --red: #ef4444;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --dark: #111827;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    display: block;
    width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 6px 24px rgba(17, 24, 39, 0.08);
}

.top-strip {
    padding: 8px 16px;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(90deg, #fb923c, #f472b6, #ef4444);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 24px rgba(219, 39, 119, 0.24);
}

.brand-name {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: var(--pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--pink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-search {
    position: relative;
    flex: 0 1 220px;
}

.nav-search input,
.mobile-panel input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 12px 18px;
    color: var(--text);
    outline: none;
    background: #ffffff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.18);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: var(--text);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    background: #f9fafb;
}

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

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 20%, rgba(244, 114, 182, 0.38), transparent 30%), linear-gradient(90deg, rgba(3, 7, 18, 0.92) 0%, rgba(17, 24, 39, 0.78) 48%, rgba(17, 24, 39, 0.34) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    gap: 48px;
    align-items: center;
    padding: 70px 0;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--pink);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.hero h1 {
    margin: 24px 0 16px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-meta,
.mini-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.mini-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    background: #f3f4f6;
}

.hero .hero-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    box-shadow: 0 18px 34px rgba(219, 39, 119, 0.25);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-soft {
    color: var(--pink);
    background: #ffffff;
    border-color: #fbcfe8;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.14);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

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

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

.section {
    padding: 72px 0;
}

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

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

.section-head h1,
.section-head h2,
.page-title h1 {
    margin: 12px 0 0;
    color: var(--text);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.section-head p,
.page-title p,
.category-card p,
.rank-copy p,
.card-body p,
.detail-copy p {
    color: var(--muted);
}

.feature-grid,
.category-grid,
.movie-grid,
.related-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.feature-card,
.category-card,
.movie-card,
.rank-item,
.detail-panel,
.filter-panel {
    background: var(--card);
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: var(--radius);
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.feature-card,
.category-card {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.category-card:hover,
.movie-card:hover,
.rank-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 18px;
    color: #ffffff;
    font-size: 22px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.feature-card h2,
.category-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 38px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.25);
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
}

.card-region,
.card-year {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.card-region {
    left: 12px;
    background: var(--pink);
}

.card-year {
    right: 12px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 17px;
}

.card-body h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.card-body h2 a:hover,
.rank-copy h2 a:hover {
    color: var(--pink);
}

.card-body p {
    min-height: 45px;
    margin: 0 0 12px;
    font-size: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 92px 52px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
}

.rank-number {
    color: var(--orange);
    font-size: 30px;
    font-weight: 900;
}

.rank-copy h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-copy p {
    margin: 0 0 10px;
}

.page-title {
    padding: 58px 0 28px;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 220px 220px;
    gap: 14px;
    padding: 18px;
    margin: 22px 0 28px;
}

.no-results {
    display: none;
    padding: 42px;
    text-align: center;
    color: var(--muted);
    border-radius: var(--radius);
    background: #ffffff;
}

.no-results.is-visible {
    display: block;
}

.detail-hero {
    padding: 50px 0 34px;
    color: #ffffff;
    background: radial-gradient(circle at 80% 20%, rgba(244, 114, 182, 0.35), transparent 28%), linear-gradient(135deg, #111827, #1f2937);
}

.detail-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
    margin: 14px 0 14px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.detail-info p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.detail-info .hero-meta span {
    color: #ffffff;
}

.player-section {
    padding: 48px 0 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.24);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.52), rgba(219, 39, 119, 0.2));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 36px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 20px 50px rgba(219, 39, 119, 0.4);
}

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

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

.detail-panel {
    padding: 28px;
}

.detail-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-copy p {
    margin: 0 0 18px;
    font-size: 16px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag-cloud span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--pink);
    font-weight: 800;
    background: var(--pink-soft);
}

.side-card {
    position: sticky;
    top: 112px;
}

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

.side-card .rank-number {
    display: none;
}

.side-card .rank-copy h2 {
    font-size: 16px;
}

.pagination-note {
    margin-top: 30px;
    color: var(--muted);
    text-align: center;
}

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

    .menu-toggle {
        display: inline-flex;
    }

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

    .hero-poster,
    .detail-cover {
        max-width: 340px;
    }

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

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

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

    .side-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .brand-name {
        font-size: 22px;
    }

    .hero,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding: 46px 0 84px;
    }

    .section-head {
        display: block;
    }

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

    .rank-item {
        grid-template-columns: 76px 42px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        font-size: 22px;
    }

    .card-body {
        padding: 13px;
    }

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

    .card-body p {
        font-size: 13px;
    }
}

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

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

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

    .rank-number {
        display: none;
    }
}
