:root {
    --rose: #e11d48;
    --pink: #db2777;
    --orange: #f97316;
    --amber-bg: #fffbeb;
    --soft-bg: #fff1f2;
    --text: #1f2937;
    --muted: #6b7280;
    --card: #ffffff;
    --line: #fecdd3;
    --shadow: 0 24px 70px rgba(190, 18, 60, 0.16);
}

* {
    box-sizing: border-box;
}

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, #fffbeb 0%, #fff1f2 52%, #fdf2f8 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 241, 242, 0.95), rgba(253, 242, 248, 0.95));
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.12);
    backdrop-filter: blur(12px);
}

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

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

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

.main-nav a:hover {
    background: #ffe4e6;
    color: var(--rose);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: white;
    color: var(--rose);
    font-size: 22px;
    border: 1px solid #fecdd3;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(100deg, #e11d48 0%, #db2777 48%, #f97316 100%);
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.32), transparent 28%),
        radial-gradient(circle at 20% 88%, rgba(255, 255, 255, 0.18), transparent 25%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
}

.hero-inner {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
}

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

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

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

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

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

.primary-btn {
    background: white;
    color: var(--rose);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-light:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn,
.ghost-light {
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: white;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.ghost-light {
    border-color: #fecdd3;
    color: var(--rose);
    background: white;
}

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

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

.hero-tags span,
.chips span {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

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

.hero-poster,
.detail-poster,
.poster {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    background: linear-gradient(135deg, #7f1d1d, #e11d48, #fb923c);
}

.hero-poster {
    min-height: 430px;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    transform: rotate(2deg);
}

.hero-poster::before,
.detail-poster::before,
.poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 100%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.36), transparent 28%);
}

.hero-poster span,
.hero-poster strong,
.hero-poster em,
.detail-poster span,
.detail-poster strong,
.detail-poster em,
.poster span,
.poster strong,
.poster em {
    position: relative;
    z-index: 1;
}

.hero-poster span,
.detail-poster span,
.poster-year {
    align-self: flex-start;
    margin-bottom: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 900;
}

.hero-poster strong {
    font-size: 38px;
    line-height: 1.1;
}

.hero-poster em,
.detail-poster em,
.poster em {
    margin-top: 10px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
}

.poster-0 { background: linear-gradient(135deg, #881337, #e11d48, #fb7185); }
.poster-1 { background: linear-gradient(135deg, #7c2d12, #f97316, #facc15); }
.poster-2 { background: linear-gradient(135deg, #4c1d95, #db2777, #fb7185); }
.poster-3 { background: linear-gradient(135deg, #1e3a8a, #7c3aed, #f472b6); }
.poster-4 { background: linear-gradient(135deg, #064e3b, #059669, #f59e0b); }
.poster-5 { background: linear-gradient(135deg, #111827, #be123c, #f97316); }
.poster-6 { background: linear-gradient(135deg, #581c87, #9333ea, #f97316); }
.poster-7 { background: linear-gradient(135deg, #0f172a, #0ea5e9, #f43f5e); }
.poster-8 { background: linear-gradient(135deg, #713f12, #d97706, #ef4444); }
.poster-9 { background: linear-gradient(135deg, #3f3f46, #e11d48, #f9a8d4); }

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: white;
}

.search-band {
    position: relative;
    z-index: 2;
    margin-top: -46px;
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 18px;
}

.quick-search,
.hot-entry {
    min-height: 92px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(254, 205, 211, 0.8);
    backdrop-filter: blur(14px);
}

.quick-search {
    display: grid;
    grid-template-columns: 110px 1fr 120px;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.quick-search label {
    font-size: 18px;
    font-weight: 900;
    color: var(--rose);
}

.quick-search input,
.search-tools input {
    width: 100%;
    height: 48px;
    border: 2px solid #fecdd3;
    border-radius: 14px;
    padding: 0 16px;
    font: inherit;
    outline: none;
}

.quick-search input:focus,
.search-tools input:focus {
    border-color: var(--rose);
}

.quick-search button {
    height: 48px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    font-weight: 900;
    cursor: pointer;
}

.hot-entry {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    color: white;
    background: linear-gradient(135deg, #111827, #be123c, #f97316);
    font-size: 22px;
    font-weight: 900;
}

.hot-entry span {
    margin-top: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.section-block,
.content-grid,
.rank-list,
.detail-content,
.player-section,
.search-results {
    padding: 54px 0;
}

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

.section-title h2,
.rank-panel h2,
.story-block h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.section-title p,
.rank-panel p,
.story-block p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.category-tile {
    min-height: 154px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, white, #fff7ed);
    box-shadow: 0 16px 40px rgba(190, 18, 60, 0.09);
    border: 1px solid #ffe4e6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(190, 18, 60, 0.16);
}

.category-tile span {
    color: var(--rose);
    font-weight: 900;
}

.category-tile strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 30px;
}

.category-tile em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.6;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: white;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(254, 205, 211, 0.78);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    display: block;
}

.poster {
    height: 250px;
    padding: 18px;
}

.poster strong {
    font-size: 23px;
    line-height: 1.16;
}

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

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

.movie-card h3 a:hover,
.rank-row a:hover,
.search-row a:hover {
    color: var(--rose);
}

.movie-card p {
    min-height: 68px;
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f9fafb;
}

.chips span {
    background: #ffe4e6;
    color: #be123c;
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
    border-radius: 24px;
    color: white;
    background: linear-gradient(135deg, #111827, #831843, #f97316);
    box-shadow: var(--shadow);
}

.rank-panel ol {
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.rank-panel li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-panel a {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 13px 0;
}

.rank-panel span {
    color: #fecdd3;
    font-weight: 900;
}

.rank-panel strong {
    font-size: 15px;
}

.rank-panel em {
    grid-column: 2;
    color: rgba(255, 255, 255, 0.64);
    font-style: normal;
    font-size: 13px;
}

.panel-link {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 900;
}

.page-bg {
    min-height: 70vh;
    background: linear-gradient(135deg, #fffbeb 0%, #fff1f2 55%, #fdf2f8 100%);
}

.page-hero,
.detail-hero {
    padding: 58px 0 20px;
}

.compact-hero {
    padding-bottom: 0;
}

.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 700;
}

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

.page-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.page-stats span,
.page-stats a {
    padding: 9px 12px;
    border-radius: 999px;
    background: white;
    color: var(--rose);
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(190, 18, 60, 0.08);
}

.detail-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
    align-items: center;
    padding: 30px;
    border-radius: 32px;
    background: linear-gradient(135deg, #be123c, #db2777, #f97316);
    color: white;
    box-shadow: var(--shadow);
}

.detail-poster {
    min-height: 430px;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

.detail-poster strong {
    font-size: 34px;
    line-height: 1.14;
}

.detail-copy .lead {
    max-width: 760px;
    margin: 20px 0 0;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.detail-chips {
    margin-top: 24px;
}

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

.player-section {
    padding-bottom: 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: white;
    background:
        radial-gradient(circle at center, rgba(225, 29, 72, 0.42), rgba(2, 6, 23, 0.84)),
        linear-gradient(135deg, rgba(219, 39, 119, 0.56), rgba(249, 115, 22, 0.36));
    cursor: pointer;
    z-index: 2;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: white;
    color: var(--rose);
    font-size: 32px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.story-block,
.info-table {
    padding: 24px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    border: 1px solid #ffe4e6;
}

.accent-block {
    background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

.story-block p {
    font-size: 17px;
}

.info-table {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    padding: 0;
    overflow: hidden;
}

.info-table div {
    display: grid;
    gap: 6px;
    padding: 18px;
    background: white;
}

.info-table span {
    color: var(--muted);
    font-size: 13px;
}

.info-table strong {
    line-height: 1.5;
}

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

.rank-row,
.search-row {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 18px;
    padding: 20px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    border: 1px solid #ffe4e6;
}

.rank-num {
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-weight: 900;
}

.rank-row h2,
.search-row strong {
    margin: 0;
    font-size: 22px;
}

.rank-row p,
.search-row p {
    margin: 8px 0 12px;
    color: var(--muted);
    line-height: 1.7;
}

.search-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 22px;
}

.search-tools span {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--rose);
    background: white;
    font-weight: 900;
}

.search-row {
    grid-template-columns: 1fr;
}

.search-row.is-hidden {
    display: none;
}

.site-footer {
    margin-top: 30px;
    padding: 42px 0;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.site-footer strong {
    display: block;
    margin-bottom: 10px;
    color: white;
    font-size: 24px;
}

.site-footer p {
    max-width: 460px;
    margin: 0;
    line-height: 1.8;
}

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

.footer-links a {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1080px) {
    .category-grid,
    .wide-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .menu-button {
        display: inline-grid;
        place-items: center;
    }

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

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 0 70px;
    }

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

    .hero-copy p,
    .detail-copy .lead {
        font-size: 17px;
    }

    .search-band,
    .quick-search,
    .detail-layout,
    .footer-grid,
    .info-table,
    .search-tools {
        grid-template-columns: 1fr;
    }

    .search-band {
        margin-top: 20px;
    }

    .detail-layout {
        padding: 18px;
    }

    .detail-poster {
        min-height: 300px;
    }
}

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

    .poster {
        height: 220px;
    }

    .section-title {
        display: block;
    }

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

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