:root {
    --page-bg: #f9fafb;
    --surface: #ffffff;
    --surface-soft: #fff7fb;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --rose: #e11d48;
    --rose-dark: #9f1239;
    --pink: #db2777;
    --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.header-inner {
    width: min(1200px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #f43f5e, #db2777);
    box-shadow: 0 12px 26px rgba(225, 29, 72, 0.28);
}

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

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--rose);
    background: #fff1f2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    position: relative;
    width: 280px;
}

.header-search input,
.inline-search input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    outline: none;
    padding: 11px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.inline-search input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: #111827;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
}

.mobile-panel a:hover {
    background: #fff1f2;
    color: var(--rose);
}

.hero {
    position: relative;
    min-height: 580px;
    overflow: hidden;
    background: linear-gradient(135deg, #881337, #9d174d 52%, #be123c);
}

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 42%, rgba(244, 63, 94, 0.22), transparent 34%), linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 44%, rgba(0, 0, 0, 0.18));
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1200px, calc(100% - 32px));
    min-height: 580px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 48px;
    color: #ffffff;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffe4e6;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 30px;
}

.hero-meta span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #f43f5e, #db2777);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(219, 39, 119, 0.32);
}

.btn-light {
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
}

.btn-ghost {
    background: #ffffff;
    color: var(--rose);
    border: 1px solid #fecdd3;
}

.hero-card {
    align-self: center;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

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

.hero-card strong {
    display: block;
    margin-top: 14px;
    font-size: 18px;
}

.hero-card span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 24px;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-control.prev {
    left: max(20px, calc((100% - 1200px) / 2 - 62px));
}

.hero-control.next {
    right: max(20px, calc((100% - 1200px) / 2 - 62px));
}

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

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

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

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

.section {
    padding: 58px 0 0;
}

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

.section-kicker {
    color: var(--rose);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section h2,
.page-title h1,
.detail-title h1 {
    margin: 4px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-header p,
.page-title p,
.category-intro,
.detail-lead {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 760px;
}

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 94, 0.28);
    box-shadow: var(--shadow);
}

.card-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fecdd3, #fbcfe8);
}

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

.movie-card:hover .card-cover img {
    transform: scale(1.06);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.card-badge {
    position: absolute;
    z-index: 2;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.92);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.card-year {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.card-title {
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.card-desc {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: 4px 8px;
    background: #fff1f2;
    color: #be123c;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fff1f2);
    border: 1px solid #ffe4e6;
    box-shadow: var(--shadow-soft);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -55px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.1);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    color: var(--muted);
}

.category-card .btn {
    position: relative;
    z-index: 1;
}

.horizontal-row {
    display: grid;
    grid-auto-columns: minmax(220px, 1fr);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
}

.horizontal-row .movie-card {
    scroll-snap-align: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 70px 94px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f43f5e, #db2777);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.rank-poster {
    width: 94px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #ffe4e6;
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-content h2,
.rank-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.rank-content p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    padding: 72px 0 34px;
    background: radial-gradient(circle at 78% 8%, rgba(244, 63, 94, 0.16), transparent 32%), linear-gradient(180deg, #ffffff, #fff7fb);
    border-bottom: 1px solid #ffe4e6;
}

.page-title {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--rose);
}

.tool-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin: 26px 0 26px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.inline-search {
    position: relative;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 10px 13px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
    background: #fff1f2;
    color: var(--rose);
}

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

.player-shell {
    overflow: hidden;
    border-radius: 24px;
    background: #050505;
    box-shadow: var(--shadow);
}

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

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-poster {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    background: #111827;
}

.player-poster.is-hidden {
    display: none;
}

.player-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    filter: blur(1px) saturate(1.05);
}

.play-layer {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: #ffffff;
}

.play-icon {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f43f5e, #db2777);
    box-shadow: 0 16px 36px rgba(219, 39, 119, 0.4);
    font-size: 34px;
}

.play-layer strong {
    font-size: 16px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.detail-panel,
.sidebar-card,
.article-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-panel {
    padding: 28px;
    margin-top: 24px;
}

.detail-title h1 {
    margin-top: 0;
}

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

.detail-panel h2,
.sidebar-card h2,
.article-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 900;
}

.detail-panel p,
.article-card p {
    color: #374151;
    margin: 0 0 16px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-card {
    padding: 18px;
}

.side-cover {
    overflow: hidden;
    border-radius: 18px;
    background: #ffe4e6;
}

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

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.related-item:hover {
    background: #fff1f2;
}

.related-item img {
    width: 64px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.related-item strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.related-item span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    margin-top: 70px;
    padding: 44px 0;
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.footer-inner p,
.footer-inner a {
    color: #9ca3af;
    font-size: 14px;
}

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

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 24px;
    background: #ffffff;
    color: var(--muted);
    text-align: center;
    border: 1px solid var(--line);
}

body.has-filter-empty .empty-state {
    display: block;
}

body.has-filter-empty .filter-target {
    display: none;
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 64px 0;
    }

    .hero-card {
        display: none;
    }

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

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

    .rank-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 64px;
    }

    .brand-text {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

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

    .hero-control {
        display: none;
    }

    .section-header,
    .tool-panel,
    .footer-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    .card-body {
        padding: 12px;
    }

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

    .rank-number {
        height: 42px;
        font-size: 18px;
    }

    .rank-poster {
        width: 74px;
    }

    .detail-panel {
        padding: 20px;
    }
}
