*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ash-50: #f8f7f6;
    --ash-100: #efedea;
    --ash-300: #c8c1bc;
    --ash-500: #94867e;
    --ash-700: #665d58;
    --ash-900: #4a4441;
    --fire-50: #fff8f0;
    --fire-500: #ff7a14;
    --fire-600: #f05d00;
    --fire-700: #c74400;
    --ember-50: #fdf4f3;
    --ember-600: #cf4332;
    --forest-50: #f3f6f3;
    --forest-600: #475e47;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(74, 68, 65, 0.12);
    --soft-shadow: 0 10px 25px rgba(74, 68, 65, 0.10);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ash-900);
    background: var(--ash-50);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(74, 68, 65, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--fire-500), var(--ember-600));
    box-shadow: 0 12px 25px rgba(240, 93, 0, 0.24);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.brand-text small {
    color: var(--ash-500);
    font-size: 0.78rem;
}

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

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--ash-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--fire-700);
    background: var(--fire-50);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--ash-900);
    background: var(--ash-100);
    cursor: pointer;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 34px 0 42px;
    background: radial-gradient(circle at top left, rgba(255, 122, 20, 0.22), transparent 34%), linear-gradient(135deg, var(--fire-50), var(--ember-50) 52%, var(--ash-100));
}

.hero-shell {
    position: relative;
}

.hero-slider {
    position: relative;
    min-height: 560px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--ash-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.72fr);
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 5vw, 64px);
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(1.08);
    opacity: 0.28;
    transform: scale(1.12);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(20, 18, 17, 0.88), rgba(74, 68, 65, 0.72), rgba(240, 93, 0, 0.28));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--white);
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero h1,
.hero h2 {
    max-width: 760px;
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 6vw, 5.4rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-subtitle {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.35rem;
    font-weight: 800;
}

.hero-content p:not(.hero-subtitle) {
    max-width: 670px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.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;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--fire-600), var(--ember-600));
    box-shadow: 0 12px 25px rgba(240, 93, 0, 0.28);
}

.btn-soft {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

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

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

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

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

.tag-row span {
    color: var(--fire-700);
    background: var(--fire-50);
}

.hero-poster {
    display: block;
    align-self: stretch;
    min-height: 400px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.32);
}

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

.hero-poster:hover img {
    transform: scale(1.05);
}

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

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

.hero-dot.active {
    width: 34px;
    background: var(--white);
}

.hero-category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero-category-strip a {
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--ash-700);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--soft-shadow);
    font-weight: 800;
}

.section {
    padding: 58px 0;
}

.section.alt {
    background: var(--white);
}

.section.tint {
    background: linear-gradient(135deg, var(--forest-50), var(--ash-50));
}

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

.section-head h1,
.section-head h2 {
    margin: 0;
    color: var(--ash-900);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--ash-500);
}

.section-link {
    color: var(--fire-700);
    font-weight: 900;
    white-space: nowrap;
}

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

.movie-card,
.category-card,
.info-panel,
.rank-row,
.detail-card,
.filter-panel {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

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

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ash-100);
}

.poster-link img,
.compact-card img,
.rank-cover img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-link img {
    transition: transform 0.45s ease;
}

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

.card-year,
.rank-num {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
    font-weight: 900;
}

.card-year {
    right: 12px;
}

.rank-num {
    left: 12px;
    background: linear-gradient(135deg, var(--fire-600), var(--ember-600));
}

.card-body {
    padding: 18px;
}

.card-body h2,
.card-body h3 {
    margin: 0 0 9px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
    color: var(--fire-700);
}

.card-body p {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0 0 13px;
    overflow: hidden;
    color: var(--ash-500);
    font-size: 0.94rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--ash-500);
    font-size: 0.82rem;
    font-weight: 800;
}

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

.category-card {
    padding: 22px;
    min-height: 190px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--ash-900);
    font-size: 1.22rem;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--ash-500);
    font-size: 0.95rem;
}

.category-card span {
    color: var(--fire-700);
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(140px, 1fr));
    gap: 14px;
    padding: 18px;
    margin-bottom: 24px;
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--ash-700);
    font-size: 0.86rem;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--ash-100);
    border-radius: 14px;
    color: var(--ash-900);
    background: var(--ash-50);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--fire-500);
    box-shadow: 0 0 0 4px rgba(240, 93, 0, 0.12);
}

.no-result {
    display: none;
    padding: 24px;
    border-radius: var(--radius);
    color: var(--ash-500);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    text-align: center;
}

.no-result.show {
    display: block;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 80px 130px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-index {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--fire-600), var(--ember-600));
    font-size: 1.1rem;
    font-weight: 950;
}

.rank-cover {
    height: 82px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--ash-100);
}

.rank-row h2 {
    margin: 0 0 6px;
    font-size: 1.12rem;
}

.rank-row p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ash-500);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    padding: 54px 0 34px;
    background: linear-gradient(135deg, var(--fire-50), var(--ember-50), var(--ash-100));
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--ash-700);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ash-500);
    font-size: 0.9rem;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--fire-700);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) 360px;
    gap: 28px;
    align-items: start;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--fire-600), var(--ember-600));
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
    font-weight: 950;
    cursor: pointer;
}

.player-start i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: var(--fire-700);
    background: var(--white);
    font-style: normal;
}

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

.detail-card {
    padding: 24px;
}

.detail-card h2,
.detail-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.detail-card p {
    margin: 0 0 16px;
    color: var(--ash-700);
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.detail-meta span {
    display: grid;
    gap: 2px;
    padding: 12px;
    border-radius: 16px;
    background: var(--ash-50);
    color: var(--ash-500);
    font-size: 0.82rem;
    font-weight: 800;
}

.detail-meta b {
    color: var(--ash-900);
    font-size: 0.95rem;
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    background: var(--ash-100);
    box-shadow: var(--soft-shadow);
    aspect-ratio: 16 / 10;
}

.compact-list {
    display: grid;
    gap: 12px;
}

.compact-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.compact-card img {
    height: 64px;
    border-radius: 14px;
    background: var(--ash-100);
}

.compact-card strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card small {
    display: block;
    color: var(--ash-500);
    font-weight: 800;
}

.prose-block {
    display: grid;
    gap: 18px;
}

.prose-block h2 {
    margin: 0;
}

.prose-block p {
    margin: 0;
    color: var(--ash-700);
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

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

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .hero-slider {
        min-height: 560px;
    }

    .hero-slide {
        padding: 28px;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(2.1rem, 12vw, 3.5rem);
    }

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

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

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

    .rank-row {
        grid-template-columns: 48px 86px minmax(0, 1fr);
    }

    .rank-row .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 22px, 1280px);
    }

    .brand-text strong {
        font-size: 1.05rem;
    }

    .brand-text small {
        font-size: 0.68rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .hero {
        padding-top: 18px;
    }

    .hero-slider {
        min-height: 610px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 22px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .rank-cover {
        height: 68px;
    }

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

    .compact-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }
}
