
:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --orange: #f97316;
    --slate: #0f172a;
    --muted: #64748b;
    --soft: #fff7ed;
    --line: rgba(15, 23, 42, 0.08);
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(244, 63, 94, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 48%, #fff7ed 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.24);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-text {
    font-size: 24px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.main-nav a,
.header-search button,
.nav-toggle {
    border: 0;
    color: #fff;
    background: transparent;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    transition: background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.header-search button:hover,
.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

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

.header-search input {
    width: 260px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    outline: none;
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    font-size: 24px;
}

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

.hero-track {
    position: relative;
    min-height: 580px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center start;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.62), transparent 36%),
        linear-gradient(135deg, #1e1b4b, #7f1d1d 52%, #fb923c);
}

.hero-bg::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.86));
}

.hero-bg img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.04);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 32px));
    margin-left: max(16px, calc((100vw - 1180px) / 2));
    color: #fff;
    padding: 90px 0 72px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: var(--shadow-soft);
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
    margin: 18px 0;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-intro .lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.8;
}

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

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

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

.btn-light {
    color: var(--rose);
    background: #fff;
    box-shadow: var(--shadow);
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: var(--shadow-soft);
}

.btn.wide {
    width: 100%;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 34px;
    display: flex;
    gap: 10px;
}

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

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

.stats-section {
    margin-top: -42px;
    position: relative;
    z-index: 8;
}

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

.stat-card {
    padding: 24px 18px;
    text-align: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.stat-card strong {
    display: block;
    color: #111827;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

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

.soft-bg {
    background: rgba(255, 255, 255, 0.48);
}

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

.section-heading h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-link {
    flex: 0 0 auto;
    color: var(--rose);
    font-weight: 800;
}

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

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    border-radius: 24px;
    padding: 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(244, 63, 94, 0.28);
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.category-icon {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.category-tile strong,
.category-tile em,
.category-tile small {
    display: block;
    position: relative;
    z-index: 1;
}

.category-tile strong {
    font-size: 22px;
}

.category-tile em {
    margin-top: 6px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.86);
}

.category-tile small {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.72);
}

.tone-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.tone-violet { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.tone-emerald { background: linear-gradient(135deg, #059669, #10b981); }
.tone-amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.tone-cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.tone-slate { background: linear-gradient(135deg, #0f172a, #475569); }
.tone-pink { background: linear-gradient(135deg, #ec4899, #fb7185); }
.tone-red { background: linear-gradient(135deg, #dc2626, #fb7185); }
.tone-orange { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.tone-rose { background: linear-gradient(135deg, #e11d48, #f97316); }

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

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

.movie-card {
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    margin: 0;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 30%),
        linear-gradient(135deg, #fb7185, #f97316 45%, #111827);
}

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

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

.poster-frame figcaption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.18;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.88));
}

.badge,
.score {
    position: absolute;
    z-index: 3;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.badge {
    left: 12px;
}

.score {
    right: 12px;
    color: #111827;
    background: #fff;
}

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

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

.movie-card-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta span,
.tag-row span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #64748b;
    font-size: 12px;
    background: #f8fafc;
}

.tag-row {
    margin-top: 10px;
}

.tag-row.large span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.rank-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

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

.rank-item {
    display: grid;
    gap: 6px;
    min-width: 0;
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.rank-no {
    color: var(--rose);
    font-size: 26px;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-item small {
    color: var(--muted);
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    color: #fff;
    padding: 82px 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(135deg, #be123c, #ec4899, #f97316);
}

.small-hero {
    padding: 68px 0;
}

.page-hero p {
    margin-bottom: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.8);
}

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

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select,
.filter-panel button {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    font: inherit;
    outline: none;
    background: #fff;
}

.filter-panel input {
    flex: 1 1 320px;
}

.filter-panel button {
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.result-count {
    margin-left: auto;
    color: var(--muted);
    font-weight: 800;
}

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

.side-panel,
.text-card,
.player-card {
    border-radius: 24px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.side-panel {
    position: sticky;
    top: 94px;
}

.side-panel h2,
.text-card h2,
.player-card h2 {
    margin: 0 0 16px;
}

.side-panel p,
.text-card p {
    color: #334155;
    line-height: 1.85;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.84;
    background: linear-gradient(135deg, #111827, #be123c, #f97316);
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
    min-height: 620px;
    padding-top: 56px;
    padding-bottom: 56px;
}

.detail-poster {
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.detail-intro h1 {
    max-width: 920px;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.detail-content {
    padding-top: 48px;
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.main-column {
    display: grid;
    gap: 22px;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #020617;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.play-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 50%;
    color: var(--rose);
    font-size: 30px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow);
}

.video-player.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
}

.detail-side dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px 14px;
    margin: 0 0 22px;
}

.detail-side dt {
    color: var(--muted);
}

.detail-side dd {
    margin: 0;
    font-weight: 700;
}

.sitemap-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    list-style-position: inside;
}

.sitemap-list li {
    display: grid;
    gap: 4px;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.sitemap-list a {
    color: #111827;
    font-weight: 800;
}

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

.site-footer {
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
    gap: 28px;
    padding: 52px 0;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 26px;
    font-weight: 900;
}

.site-footer p,
.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: var(--shadow-soft);
}

.back-to-top.is-visible {
    display: grid;
    place-items: center;
}

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

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

    .category-grid,
    .category-grid.large,
    .stats-grid,
    .rank-strip,
    .sitemap-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }

    .detail-hero-grid {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        padding: 12px;
        background: rgba(190, 18, 60, 0.96);
        box-shadow: var(--shadow);
    }

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

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

    .hero-carousel,
    .hero-track {
        min-height: 560px;
    }

    .hero-copy {
        padding-top: 80px;
    }

    .hero-dots {
        left: 16px;
        right: auto;
    }

    .stats-grid,
    .category-grid,
    .category-grid.large,
    .movie-grid,
    .compact-grid,
    .rank-strip,
    .sitemap-list {
        grid-template-columns: 1fr;
    }

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

    .detail-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .detail-poster {
        width: min(280px, 100%);
    }

    .result-count {
        width: 100%;
        margin-left: 0;
    }
}
