:root {
    --flame-50: #fff3e0;
    --flame-100: #ffe0b2;
    --flame-400: #ffa726;
    --flame-500: #ff6b35;
    --phoenix-500: #c1440e;
    --phoenix-600: #a13810;
    --phoenix-900: #5f220d;
    --honey-50: #fff8e1;
    --honey-100: #fff0d1;
    --honey-300: #ffd875;
    --honey-500: #d4a574;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(193, 68, 14, 0.14);
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(95, 34, 13, 0.18);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff8e1 0%, #fff3e0 38%, #ffffff 100%);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.6;
    min-width: 320px;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--flame-500), var(--phoenix-600));
    box-shadow: 0 16px 36px rgba(161, 56, 16, 0.24);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    animation: flameFlicker 3s ease-in-out infinite;
}

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

.site-nav a {
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(255, 202, 40, 0.34), transparent 34%), linear-gradient(135deg, var(--phoenix-900), var(--phoenix-600) 54%, var(--flame-500));
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    right: -110px;
    top: 72px;
    background: rgba(255, 213, 79, 0.18);
    filter: blur(4px);
}

.hero::after {
    width: 520px;
    height: 520px;
    left: -160px;
    bottom: -180px;
    background: rgba(255, 112, 67, 0.22);
}

.hero-stage {
    position: relative;
    z-index: 2;
    min-height: 640px;
}

.hero-slide {
    display: none;
    min-height: 640px;
    align-items: center;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 58px;
    padding: 64px 0 86px;
}

.hero-slide.is-active {
    display: grid;
}

.hero-copy {
    animation: fadeUp 0.7s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: #fff8e1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-title {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-text {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--phoenix-900);
    background: linear-gradient(135deg, var(--honey-300), var(--honey-100));
    font-size: 13px;
    font-weight: 800;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
    box-shadow: 0 16px 32px rgba(193, 68, 14, 0.28);
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(193, 68, 14, 0.34);
}

.button-light {
    color: var(--phoenix-900);
    background: linear-gradient(135deg, var(--honey-100), #ffffff);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.18);
}

.button-ghost {
    color: var(--phoenix-600);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.hero-poster-wrap {
    position: relative;
    min-height: 480px;
    animation: float 6s ease-in-out infinite;
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    isolation: isolate;
}

.hero-poster-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 24%, rgba(0, 0, 0, 0.78));
    z-index: 1;
}

.hero-card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px;
}

.hero-card-caption strong {
    display: block;
    font-size: 26px;
    line-height: 1.25;
}

.hero-card-caption span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

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

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

.section {
    padding: 70px 0;
}

.section-soft {
    background: linear-gradient(90deg, var(--honey-100), #ffffff 48%, var(--flame-100));
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--flame-500);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.section-desc {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 16px 34px rgba(95, 34, 13, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--phoenix-900), var(--flame-500));
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    color: var(--white);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    font-size: 12px;
    font-weight: 900;
}

.card-score {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 10px;
    color: var(--phoenix-900);
    border-radius: 999px;
    background: var(--honey-300);
    font-size: 12px;
    font-weight: 950;
}

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 950;
}

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

.card-text {
    display: -webkit-box;
    min-height: 50px;
    margin: 12px 0 14px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--phoenix-600);
    font-weight: 950;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 26px;
    border-radius: 26px;
    color: var(--white);
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-600));
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    bottom: -80px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
}

.category-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    color: #fff8e1;
    font-weight: 950;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 80px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(95, 34, 13, 0.08);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--white);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-600));
    font-size: 20px;
    font-weight: 950;
}

.rank-cover {
    overflow: hidden;
    width: 76px;
    height: 100px;
    border-radius: 14px;
    background: var(--phoenix-900);
}

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

.rank-info h2,
.rank-info h3 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 950;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
    gap: 12px;
    margin: 28px 0 32px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 34px rgba(95, 34, 13, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(193, 68, 14, 0.16);
    border-radius: 15px;
    color: var(--ink);
    background: #ffffff;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--flame-500);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}

.page-hero {
    padding: 66px 0 52px;
    color: var(--white);
    background: radial-gradient(circle at 85% 15%, rgba(255, 216, 117, 0.26), transparent 32%), linear-gradient(135deg, var(--phoenix-900), var(--flame-500));
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 34px;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--phoenix-900), var(--flame-500));
    box-shadow: var(--shadow);
}

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

.detail-panel {
    padding: 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 50px rgba(95, 34, 13, 0.12);
}

.detail-panel h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 950;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.meta-list li {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--phoenix-600);
    background: var(--flame-50);
    font-size: 14px;
    font-weight: 800;
}

.detail-copy h2,
.detail-copy h3 {
    margin: 32px 0 12px;
    color: #111827;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 950;
}

.detail-copy p {
    margin: 0 0 16px;
    color: #374151;
    font-size: 17px;
}

.player-card {
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.64));
    cursor: pointer;
    z-index: 3;
}

.play-overlay.is-hidden {
    display: none;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-600));
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
    font-size: 36px;
    transform: translateZ(0);
    transition: transform 0.25s ease;
}

.play-overlay:hover .play-circle {
    transform: scale(1.08);
}

.player-title {
    padding: 18px 22px;
    color: var(--white);
    background: linear-gradient(90deg, #111827, #1f2937);
    font-size: 18px;
    font-weight: 950;
}

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

.related-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 26px rgba(95, 34, 13, 0.1);
}

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

.related-card span {
    display: block;
    padding: 10px 12px 12px;
    color: #111827;
    font-weight: 900;
}

.site-footer {
    padding: 42px 0;
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, var(--phoenix-900), #1f130b);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.footer-title {
    color: var(--white);
    font-size: 22px;
    font-weight: 950;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--white);
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-600));
    box-shadow: 0 14px 30px rgba(95, 34, 13, 0.26);
    cursor: pointer;
}

.back-top.is-visible {
    display: grid;
}

@keyframes flameFlicker {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.82;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .site-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 80px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 24px;
        background: linear-gradient(135deg, var(--phoenix-900), var(--phoenix-600));
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        padding: 12px 14px;
    }

    .hero,
    .hero-stage,
    .hero-slide {
        min-height: auto;
    }

    .hero-slide,
    .hero-slide.is-active {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 0 92px;
    }

    .hero-poster-card,
    .hero-poster-card img {
        min-height: 360px;
        height: 360px;
    }

    .section-head,
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
        display: flex;
    }

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

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

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .logo {
        font-size: 20px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .filter-panel,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 48px 70px 1fr;
    }

    .rank-item .button {
        grid-column: 1 / -1;
    }

    .hero-title,
    .page-hero h1 {
        letter-spacing: -0.035em;
    }
}
