:root {
    --page-bg: #fff7f9;
    --text: #16151a;
    --muted: #6b7280;
    --line: rgba(15, 23, 42, 0.08);
    --rose: #f43f5e;
    --rose-dark: #e11d48;
    --pink: #ec4899;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.14), transparent 34rem),
        linear-gradient(180deg, #fff7f9 0%, #ffffff 38%, #f9fafb 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(244, 63, 94, 0.08);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.35);
}

.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.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--rose-dark);
    background: rgba(244, 63, 94, 0.1);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    border: 0;
    background: rgba(244, 63, 94, 0.08);
    color: var(--rose-dark);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 20px;
}

.main-offset {
    padding-top: 68px;
}

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

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.08) contrast(1.02);
}

.hero-overlay,
.detail-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(10, 10, 12, 0.9), rgba(10, 10, 12, 0.56) 45%, rgba(10, 10, 12, 0.2)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.18) 58%, rgba(17, 24, 39, 0.5));
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: max(32px, calc((100vw - 1180px) / 2));
    top: 50%;
    width: min(620px, calc(100% - 64px));
    transform: translateY(-45%);
    color: white;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffe4ea;
    background: rgba(244, 63, 94, 0.18);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero p,
.page-hero p,
.detail-info p {
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
    color: var(--rose-dark);
    background: rgba(244, 63, 94, 0.08);
}

.hero-actions,
.detail-actions,
.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.small-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 34px rgba(244, 63, 94, 0.35);
}

.ghost-btn {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.ghost-btn.dark {
    color: var(--rose-dark);
    border-color: rgba(244, 63, 94, 0.2);
    background: rgba(244, 63, 94, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.small-link:hover {
    transform: translateY(-2px);
}

.hero-card {
    position: absolute;
    z-index: 3;
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 110px;
    width: min(310px, 28vw);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    transform: rotate(2deg);
}

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

.hero-card span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 10px 12px;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(12px);
}

.hero-search-panel {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    width: min(920px, calc(100% - 32px));
    transform: translateX(-50%);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(24px);
}

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

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(244, 63, 94, 0.16);
    border-radius: 16px;
    padding: 0 16px;
    color: #111827;
    background: rgba(255, 255, 255, 0.94);
    outline: none;
}

.hero-search button {
    min-width: 120px;
    border: 0;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.quick-links,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.quick-links a,
.filter-chips button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    color: white;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.filter-chips button {
    color: #4b5563;
    background: #f3f4f6;
}

.filter-chips button.is-active {
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.page-section {
    padding: 72px 0;
}

.soft-bg {
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.82), rgba(255, 255, 255, 0.96));
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 950;
}

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

.section-more {
    flex: 0 0 auto;
    color: var(--rose-dark);
    font-weight: 900;
}

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

.category-tile {
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    color: white;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover,
.rank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
}

.category-tile span {
    font-size: 38px;
}

.category-tile strong {
    display: block;
    margin-top: 18px;
    font-size: 21px;
    font-style: normal;
}

.category-tile em {
    display: block;
    margin-top: 9px;
    font-style: normal;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
}

.grad-rose { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.grad-orange { background: linear-gradient(135deg, #f97316, #f43f5e); }
.grad-violet { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.grad-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.grad-green { background: linear-gradient(135deg, #10b981, #22c55e); }
.grad-pink { background: linear-gradient(135deg, #db2777, #f43f5e); }
.grad-cyan { background: linear-gradient(135deg, #0891b2, #3b82f6); }
.grad-amber { background: linear-gradient(135deg, #d97706, #f97316); }
.grad-indigo { background: linear-gradient(135deg, #4f46e5, #8b5cf6); }
.grad-slate { background: linear-gradient(135deg, #334155, #111827); }

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

.movie-card,
.rank-card,
.content-card,
.info-card,
.category-overview-card,
.intro-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card {
    overflow: hidden;
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(236, 72, 153, 0.12));
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent);
}

.poster-play,
.movie-year {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-weight: 900;
}

.poster-play {
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.movie-year {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--rose-dark);
    font-size: 13px;
    font-weight: 900;
}

.movie-card h3,
.rank-info h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 950;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.category-examples a:hover {
    color: var(--rose-dark);
}

.movie-card p,
.rank-info p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-card-compact h3 {
    font-size: 17px;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 98px 56px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.rank-poster {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(244, 63, 94, 0.08);
}

.rank-poster img {
    width: 98px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.rank-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: white;
    font-size: 22px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.small-link {
    min-height: 40px;
    color: var(--rose-dark);
    background: rgba(244, 63, 94, 0.08);
}

.page-hero {
    position: relative;
    padding: 86px 0;
    color: white;
    background:
        radial-gradient(circle at 15% 25%, rgba(244, 63, 94, 0.52), transparent 24rem),
        radial-gradient(circle at 85% 10%, rgba(236, 72, 153, 0.38), transparent 26rem),
        linear-gradient(135deg, #111827, #2a1020 55%, #4c0519);
}

.compact-hero {
    min-height: 370px;
    display: flex;
    align-items: center;
}

.category-hero {
    min-height: 420px;
    display: flex;
    align-items: center;
}

.page-hero .filter-panel {
    max-width: 780px;
    margin-top: 26px;
}

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

.category-overview-card {
    padding: 26px;
}

.category-overview-main span {
    font-size: 38px;
}

.category-overview-main h2 {
    margin: 14px 0 8px;
    font-size: 28px;
    font-weight: 950;
}

.category-overview-main p,
.intro-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.category-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-examples a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 800;
}

.search-empty {
    display: none;
    margin-top: 30px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

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

.detail-hero {
    position: relative;
    min-height: 620px;
    padding: 120px 0 70px;
    overflow: hidden;
    color: white;
    background: #111827;
}

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

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) saturate(1.12);
    transform: scale(1.08);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
}

.detail-cover {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
    transform: rotate(-1deg);
}

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

.detail-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.16);
}

.player-section {
    padding-top: 48px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #05070a;
    box-shadow: 0 34px 100px rgba(15, 23, 42, 0.28);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #05070a;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: #05070a;
}

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

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.76;
}

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.18), rgba(5, 7, 10, 0.78));
}

.big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 94px;
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    color: white;
    font-size: 34px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 20px 58px rgba(244, 63, 94, 0.42);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.content-card,
.info-card,
.intro-panel {
    padding: 30px;
}

.content-card h2,
.info-card h2,
.intro-panel h2 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 950;
}

.content-card p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

.info-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 16px;
    margin: 0;
}

.info-card dt {
    color: var(--muted);
    font-weight: 900;
}

.info-card dd {
    margin: 0;
    color: #111827;
    line-height: 1.7;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f9fafb);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
}

.footer-inner p {
    max-width: 520px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    align-content: start;
}

.footer-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-weight: 800;
}

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    color: #6b7280;
    border-top: 1px solid var(--line);
}

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

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

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

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: white;
        box-shadow: var(--shadow);
    }

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

    .hero {
        min-height: 820px;
    }

    .hero-content {
        top: 170px;
        transform: none;
    }

    .hero-card {
        right: 24px;
        bottom: 210px;
        width: 180px;
    }

    .hero-dots {
        bottom: 172px;
    }

    .hero-search,
    .filter-panel {
        flex-direction: column;
    }

    .hero-search button {
        min-height: 50px;
    }

    .category-grid,
    .movie-grid,
    .category-overview-grid,
    .detail-layout,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 260px;
    }

    .rank-card {
        grid-template-columns: 76px 44px 1fr;
    }

    .rank-poster img {
        width: 76px;
    }

    .small-link {
        grid-column: 3;
        justify-self: start;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .hero-content {
        left: 16px;
        width: calc(100% - 32px);
    }

    .hero-card {
        display: none;
    }

    .page-section {
        padding: 48px 0;
    }

    .section-heading {
        display: block;
    }

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

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

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p {
        display: none;
    }

    .rank-card {
        grid-template-columns: 72px 1fr;
        gap: 12px;
    }

    .rank-number {
        position: absolute;
        left: 18px;
        top: 18px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .rank-info,
    .small-link {
        grid-column: 2;
    }

    .big-play {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}
