:root {
    --night-950: #0f1115;
    --night-900: #1a1c23;
    --night-850: #22252e;
    --night-800: #3b3d44;
    --night-700: #454750;
    --maple-500: #ef5844;
    --maple-400: #f88171;
    --maple-900: #7f281d;
    --warm-50: #faf8f3;
    --warm-100: #f3eee0;
    --warm-200: #e7dbc0;
    --warm-300: #d8c299;
    --warm-400: #c8a670;
    --warm-500: #bd9053;
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.32);
    --shadow-card: 0 16px 45px rgba(0, 0, 0, 0.28);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(239, 88, 68, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(200, 166, 112, 0.12), transparent 30rem),
        var(--night-950);
    color: var(--warm-100);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(216, 194, 153, 0.12);
    background: rgba(15, 17, 21, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--maple-500), var(--warm-400));
    color: white;
    box-shadow: 0 12px 34px rgba(239, 88, 68, 0.34);
}

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

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

.nav-link,
.category-strip a,
.footer-links a,
.text-link {
    color: var(--warm-300);
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active,
.category-strip a:hover,
.footer-links a:hover,
.text-link:hover {
    color: var(--maple-400);
}

.nav-link.is-active {
    background: rgba(239, 88, 68, 0.12);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(216, 194, 153, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--warm-100);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 2px;
}

.category-strip {
    border-top: 1px solid rgba(216, 194, 153, 0.08);
}

.category-strip-inner {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar {
    display: none;
}

.category-strip a {
    white-space: nowrap;
    font-size: 14px;
}

main,
.page-main {
    width: 100%;
}

.hero-carousel {
    position: relative;
    min-height: clamp(640px, 78vh, 860px);
    overflow: hidden;
    background: var(--night-900);
}

.hero-slide {
    display: none;
    min-height: clamp(640px, 78vh, 860px);
    background-size: cover;
    background-position: center;
    animation: fadeIn 560ms ease both;
}

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

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.48fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    width: min(1536px, calc(100% - 32px));
    min-height: clamp(640px, 78vh, 860px);
    margin: 0 auto;
    padding: 84px 0 76px;
}

.hero-copy {
    max-width: 780px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--maple-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: var(--warm-50);
    font-size: clamp(42px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.52);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 720px;
    color: var(--warm-200);
    font-size: clamp(16px, 1.6vw, 21px);
}

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

.hero-meta span,
.movie-meta span,
.score-pill,
.poster-year,
.category-count,
.section-count {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(216, 194, 153, 0.18);
    border-radius: 999px;
    background: rgba(26, 28, 35, 0.7);
    color: var(--warm-200);
    font-size: 12px;
    font-weight: 700;
}

.hero-meta span {
    padding: 7px 12px;
}

.movie-meta span {
    padding: 4px 8px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(200, 166, 112, 0.12);
    color: var(--warm-300);
    font-size: 12px;
}

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

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.primary-button,
.secondary-button,
.ghost-button,
.inline-search button,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button,
.hero-search button,
.inline-search button {
    background: linear-gradient(135deg, var(--maple-500), var(--warm-400));
    color: white;
    box-shadow: 0 18px 40px rgba(239, 88, 68, 0.28);
}

.secondary-button,
.ghost-button {
    border: 1px solid rgba(216, 194, 153, 0.16);
    background: rgba(250, 248, 243, 0.06);
    color: var(--warm-100);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.inline-search button:hover,
.hero-search button:hover {
    transform: translateY(-2px);
}

.hero-search,
.inline-search {
    display: flex;
    gap: 10px;
    width: min(100%, 620px);
    margin-top: 30px;
    padding: 8px;
    border: 1px solid rgba(216, 194, 153, 0.14);
    border-radius: 999px;
    background: rgba(15, 17, 21, 0.66);
    box-shadow: var(--shadow-soft);
}

.hero-search input,
.inline-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(216, 194, 153, 0.14);
    outline: none;
    background: rgba(15, 17, 21, 0.74);
    color: var(--warm-50);
}

.hero-search input,
.inline-search input {
    min-width: 0;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    background: transparent;
}

.hero-search input::placeholder,
.inline-search input::placeholder,
.filter-bar input::placeholder {
    color: var(--warm-500);
}

.hero-poster-card {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transform: perspective(1000px) rotateY(-7deg) rotateX(2deg);
}

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

.hero-poster-card span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 17, 21, 0.82);
    color: var(--warm-100);
    font-weight: 800;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(216, 194, 153, 0.18);
    border-radius: 999px;
    background: rgba(15, 17, 21, 0.62);
    color: var(--warm-50);
    cursor: pointer;
    font-size: 32px;
    transform: translateY(-50%);
}

.hero-arrow-left {
    left: 22px;
}

.hero-arrow-right {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(243, 238, 224, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 30px;
    background: var(--maple-400);
}

.section-block {
    width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(38px, 5vw, 72px) 0;
}

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

.section-heading h2,
.rank-panel h2,
.detail-text-block h2,
.side-card h2 {
    margin: 0;
    color: var(--warm-50);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.section-count,
.category-count {
    padding: 7px 11px;
}

.home-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding-top: 28px;
}

.overview-card {
    padding: 22px;
    border: 1px solid rgba(216, 194, 153, 0.12);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(59, 61, 68, 0.52), rgba(26, 28, 35, 0.72));
}

.overview-card strong {
    display: block;
    color: var(--warm-50);
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1;
}

.overview-card span,
.overview-card a {
    color: var(--warm-300);
    font-weight: 700;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.movie-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(216, 194, 153, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(26, 28, 35, 0.78);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
    border-color: rgba(248, 129, 113, 0.38);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.movie-card.is-hidden {
    display: none;
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--night-900);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 260ms ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
}

.poster-year,
.rank-number {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
}

.poster-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(239, 88, 68, 0.92);
    color: white;
    box-shadow: 0 12px 30px rgba(239, 88, 68, 0.34);
}

.rank-number {
    left: auto;
    right: 10px;
    background: var(--maple-500);
    color: white;
}

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

.movie-card h3 {
    margin: 12px 0 8px;
    color: var(--warm-50);
    font-size: 16px;
    line-height: 1.35;
}

.movie-card p {
    display: -webkit-box;
    min-height: 45px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--warm-300);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-actions {
    justify-content: space-between;
    margin-top: 14px;
}

.text-link {
    font-weight: 800;
}

.score-pill {
    padding: 5px 9px;
    color: var(--maple-400);
}

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

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

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

.category-tile {
    position: relative;
    display: block;
    min-height: 180px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(216, 194, 153, 0.12);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(239, 88, 68, 0.18), transparent 50%),
        linear-gradient(135deg, rgba(59, 61, 68, 0.48), rgba(26, 28, 35, 0.86));
    transition: transform 180ms ease, border-color 180ms ease;
}

.category-tile:hover {
    border-color: rgba(248, 129, 113, 0.38);
    transform: translateY(-3px);
}

.category-tile h3 {
    margin: 34px 0 8px;
    color: var(--warm-50);
    font-size: 24px;
}

.category-tile p,
.category-tile small {
    color: var(--warm-300);
}

.category-tile small {
    display: block;
    margin-top: 14px;
}

.rank-panel,
.side-card,
.detail-text-block {
    border: 1px solid rgba(216, 194, 153, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(26, 28, 35, 0.76);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.20);
}

.rank-panel {
    position: sticky;
    top: 128px;
    padding: 22px;
}

.rank-panel-head {
    margin-bottom: 16px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 56px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(216, 194, 153, 0.10);
    border-radius: 14px;
    background: rgba(15, 17, 21, 0.52);
    transition: background 180ms ease, transform 180ms ease;
}

.rank-row:hover {
    background: rgba(239, 88, 68, 0.11);
    transform: translateX(3px);
}

.rank-index {
    color: var(--maple-400);
    font-size: 18px;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    color: var(--warm-50);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-tags {
    color: var(--warm-400);
    font-size: 13px;
}

.rank-hot {
    color: var(--warm-100);
    font-weight: 900;
    text-align: right;
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(54px, 8vw, 96px) 0 24px;
}

.small-hero h1,
.category-hero h1 {
    font-size: clamp(42px, 6vw, 80px);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(160px, 1fr)) auto;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid rgba(216, 194, 153, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(26, 28, 35, 0.66);
}

.filter-bar label {
    display: grid;
    gap: 6px;
    color: var(--warm-400);
    font-size: 12px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    border-radius: 12px;
    padding: 0 12px;
}

.empty-message {
    display: none;
    margin: 24px 0 0;
    color: var(--warm-400);
}

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

.detail-hero {
    min-height: 540px;
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 62px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    color: var(--warm-400);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--maple-400);
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(26px, 4vw, 54px);
    align-items: end;
}

.detail-cover {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.detail-copy h1 {
    font-size: clamp(38px, 6vw, 78px);
}

.detail-meta {
    margin-top: 18px;
}

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

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

.video-player {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(216, 194, 153, 0.14);
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(180deg, rgba(15, 17, 21, 0.22), rgba(15, 17, 21, 0.82));
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

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

.player-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--maple-500), var(--warm-400));
    box-shadow: 0 18px 44px rgba(239, 88, 68, 0.32);
}

.detail-text-block {
    padding: 24px;
}

.detail-text-block p {
    margin: 12px 0 0;
    color: var(--warm-200);
    white-space: pre-line;
}

.detail-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 128px;
}

.side-card {
    padding: 22px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 16px 0 0;
}

.side-card dt {
    color: var(--warm-500);
}

.side-card dd {
    margin: 0;
    color: var(--warm-100);
}

.mini-rank-list .rank-row {
    grid-template-columns: 36px minmax(0, 1fr) 44px;
}

.mini-rank-list .rank-tags {
    display: none;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(216, 194, 153, 0.12);
    background: rgba(15, 17, 21, 0.72);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
}

.footer-inner p {
    max-width: 560px;
    margin: 10px 0 0;
    color: var(--warm-400);
}

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

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

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

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

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

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

    .rank-panel,
    .detail-side {
        position: static;
    }
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: min(320px, calc(100vw - 32px));
        padding: 12px;
        border: 1px solid rgba(216, 194, 153, 0.14);
        border-radius: 18px;
        background: rgba(15, 17, 21, 0.96);
        box-shadow: var(--shadow-soft);
    }

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

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

    .hero-poster-card {
        max-width: 340px;
        transform: none;
    }

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

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

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

    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 640px) {
    .header-inner,
    .category-strip-inner,
    .section-block,
    .page-hero,
    .detail-hero-inner,
    .footer-inner {
        width: min(100% - 24px, 1536px);
    }

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

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

    .hero-shell {
        padding: 48px 0 82px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 40px;
    }

    .hero-search,
    .inline-search,
    .hero-actions,
    .footer-inner {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
    }

    .hero-search input,
    .inline-search input {
        min-height: 44px;
        background: rgba(15, 17, 21, 0.58);
    }

    .movie-grid,
    .large-category-grid,
    .category-grid,
    .home-overview,
    .filter-bar {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .filter-bar label:first-child,
    .filter-bar .ghost-button {
        grid-column: 1 / -1;
    }

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

    .movie-meta span:nth-child(n+3),
    .tag-list span:nth-child(n+3) {
        display: none;
    }

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

    .rank-tags {
        display: none;
    }

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

    .side-card dl {
        grid-template-columns: 1fr;
    }
}
