:root {
    --bg: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f7f7f8;
    --line: #e5e7eb;
    --dark: #111827;
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --red: #dc2626;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.32);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 25px;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--orange), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--orange);
}

.mobile-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 0;
    background: #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
}

.mobile-toggle span {
    height: 2px;
    width: 100%;
    background: #374151;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-links {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 18px;
}

.mobile-link {
    font-weight: 700;
    color: #374151;
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

.hero-bg,
.detail-bg,
.category-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 330px;
    align-items: center;
    gap: 54px;
    padding: 86px 0;
    color: #fff;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 14px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.hero-copy p {
    margin: 22px 0 0;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.hero-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.hero-tags span,
.card-tags span,
.detail-meta-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

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

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 32px rgba(220, 38, 38, 0.28);
}

.btn-light {
    color: #111827;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.44);
}

.hero-poster {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.48);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
    pointer-events: none;
}

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

.hero-arrow {
    width: 46px;
    height: 46px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 32px;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.36);
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 28px;
    background: #fff;
}

.section {
    padding: 78px 0;
}

.section-soft {
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.section-heading {
    margin-bottom: 28px;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 650px;
}

.text-link {
    color: var(--orange);
    font-weight: 900;
}

.movie-grid,
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.library-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.movie-card {
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.96);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(234, 88, 12, 0.28);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.74));
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    color: #fff;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.year-badge {
    left: 12px;
    top: 12px;
}

.rank-badge {
    right: 12px;
    top: 12px;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.card-content {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: var(--orange);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 7px;
}

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

.card-tags {
    margin-top: 12px;
}

.card-tags span {
    color: var(--orange-dark);
    background: #fff7ed;
    border-color: #fed7aa;
    font-size: 12px;
}

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

.category-card {
    position: relative;
    min-height: 245px;
    overflow: hidden;
    color: #fff;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.82));
}

.category-name,
.category-desc,
.category-preview {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0 22px;
}

.category-name {
    margin-top: 118px;
    font-size: 26px;
    font-weight: 900;
}

.category-desc {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-bottom: 24px;
}

.category-preview span {
    max-width: 100%;
    padding: 4px 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 12px;
}

.ranking-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 30px;
    padding: 34px;
    color: #fff;
    background: radial-gradient(circle at left top, rgba(234, 88, 12, 0.46), transparent 34%), linear-gradient(135deg, #111827, #1f2937);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.ranking-copy h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.ranking-copy p {
    color: rgba(255, 255, 255, 0.78);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
}

.rank-index {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 12px;
    font-weight: 900;
}

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

.rank-meta {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.page-hero,
.category-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #111827, #7c2d12);
}

.page-hero {
    padding: 98px 0 82px;
}

.page-hero-warm {
    background: linear-gradient(135deg, #7c2d12, #111827);
}

.page-hero-dark {
    background: radial-gradient(circle at top left, rgba(234, 88, 12, 0.4), transparent 28%), linear-gradient(135deg, #030712, #1f2937);
}

.page-hero-inner p,
.category-hero-content p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.category-hero {
    min-height: 360px;
}

.category-hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38));
}

.category-hero-content {
    position: relative;
    z-index: 2;
    padding: 78px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.filter-box {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 170px;
    gap: 14px;
    margin-bottom: 30px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.filter-box label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.filter-box input,
.filter-box select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: #111827;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
}

.filter-box input:focus,
.filter-box select:focus {
    border-color: rgba(234, 88, 12, 0.55);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

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

.categories-overview {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 26px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.07);
}

.category-overview-media {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.category-overview-media img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 18px;
}

.category-overview-body h2 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.category-overview-body p {
    color: var(--muted);
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0 20px;
}

.mini-links a {
    padding: 7px 11px;
    color: var(--orange-dark);
    background: #fff7ed;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.detail-hero {
    min-height: 520px;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 62px 0 72px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
}

.detail-poster {
    width: 260px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5);
}

.detail-copy h1 {
    max-width: 900px;
}

.detail-one-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.detail-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

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

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    color: #fff;
    background: #000;
    border: 0;
    cursor: pointer;
}

.player-cover img,
.player-cover-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-cover img {
    object-fit: cover;
}

.player-cover-shade {
    background: rgba(0, 0, 0, 0.52);
}

.play-ring {
    position: relative;
    z-index: 4;
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(220, 38, 38, 0.38);
    font-size: 38px;
}

.play-text {
    position: relative;
    z-index: 4;
    margin-top: 120px;
    font-size: 18px;
    font-weight: 900;
}

.player-card.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}

.detail-article,
.detail-side {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.07);
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

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

.detail-side dl {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
}

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

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

.detail-side a {
    color: var(--orange);
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, #111827, #030712);
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    padding: 54px 0 34px;
}

.footer-brand {
    color: #fff;
    font-size: 26px;
}

.footer-grid p {
    max-width: 480px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

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

.footer-links a {
    padding: 7px 11px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

@media (max-width: 960px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 74px 0 112px;
    }

    .hero-poster {
        display: none;
    }

    .ranking-panel,
    .category-overview-card,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-media img {
        height: 180px;
    }

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

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

    .site-nav {
        min-height: 66px;
    }

    .brand-name {
        font-size: 21px;
    }

    .hero-slider,
    .hero-content {
        min-height: 76vh;
    }

    .hero-copy p,
    .detail-one-line,
    .page-hero-inner p,
    .category-hero-content p {
        font-size: 16px;
    }

    .hero-controls {
        bottom: 20px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .section {
        padding: 52px 0;
    }

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

    .movie-grid,
    .ranking-grid,
    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-content {
        padding: 12px;
    }

    .card-title {
        min-height: 42px;
        font-size: 15px;
    }

    .card-desc,
    .card-tags {
        display: none;
    }

    .ranking-panel,
    .detail-article,
    .detail-side {
        padding: 22px;
        border-radius: 24px;
    }

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

    .rank-meta {
        display: none;
    }

    .detail-poster {
        width: 180px;
    }

    .player-card {
        border-radius: 22px;
    }

    .play-ring {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }

    .category-overview-media {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
    }
}
