:root {
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --amber-500: #f59e0b;
    --yellow-500: #eab308;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 10px 26px rgba(15, 23, 42, 0.1);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-800);
    background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, var(--orange-600), var(--amber-500), var(--yellow-500));
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.22);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    color: var(--orange-600);
    background: var(--white);
    box-shadow: inset 0 -4px 10px rgba(234, 88, 12, 0.12);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
    font-size: 15px;
}

.nav-links a,
.mobile-panel a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #fff7bd;
    transform: translateY(-1px);
}

.nav-search,
.mobile-search,
.intro-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.intro-search input,
.filter-panel input {
    width: 260px;
    border: 0;
    outline: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 11px 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.nav-search button,
.mobile-search button,
.intro-search button,
.primary-button,
.ghost-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button {
    color: var(--orange-600);
    background: var(--white);
}

.menu-button {
    display: none;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
}

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

.hero-bg,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    filter: blur(14px);
    transform: scale(1.08);
    opacity: 0.72;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgba(250, 204, 21, 0.35), transparent 38%),
        linear-gradient(90deg, rgba(67, 20, 7, 0.96), rgba(146, 64, 14, 0.82), rgba(202, 138, 4, 0.55));
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 380px);
    gap: 52px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    min-height: 590px;
    margin: 0 auto;
    padding: 70px 0;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 5.8vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 18px 0 0;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.15;
}

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

.hero-kicker,
.section-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--orange-600);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #fed7aa;
}

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

.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #9a3412;
    background: var(--orange-100);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags .tag-pill,
.detail-tags .tag-pill {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--amber-500));
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.28);
}

.ghost-button {
    color: var(--orange-600);
    background: var(--white);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.nav-search button:hover,
.mobile-search button:hover,
.intro-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

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

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

.hero-dot {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--white);
}

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

.intro-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: center;
}

.intro-card,
.text-panel,
.info-panel,
.filter-panel,
.category-overview-block {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
    padding: 26px;
}

.intro-card h2,
.section-heading h2,
.text-panel h2,
.info-panel h2,
.category-overview-head h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
}

.intro-card p,
.text-panel p,
.category-overview-head p {
    margin: 12px 0 0;
    color: var(--slate-500);
}

.intro-search {
    padding: 8px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.intro-search input {
    flex: 1;
    width: 100%;
    color: var(--slate-800);
    background: var(--slate-100);
}

.intro-search button {
    color: var(--white);
    background: var(--orange-600);
}

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

.section-heading a {
    color: var(--orange-600);
    font-weight: 900;
}

.light-heading h2,
.light-heading a,
.light-heading .section-kicker {
    color: var(--white);
}

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

.category-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-xl);
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.36), transparent 34%),
        linear-gradient(135deg, #9a3412, #ea580c 48%, #f59e0b);
    box-shadow: var(--shadow-card);
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card-kicker {
    color: #ffedd5;
    font-size: 13px;
    font-weight: 900;
}

.category-card strong {
    font-size: 18px;
    line-height: 1.45;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--orange-100), var(--slate-200));
}

.movie-cover img {
    transition: transform 0.35s ease;
}

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

.rank-badge,
.cover-year {
    position: absolute;
    top: 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.68);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    left: 10px;
    background: var(--orange-600);
}

.cover-year {
    right: 10px;
}

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

.movie-card-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--slate-900);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-title:hover,
.rank-title:hover {
    color: var(--orange-600);
}

.movie-card-meta,
.movie-card-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-500);
    font-size: 13px;
    -webkit-box-orient: vertical;
}

.movie-card-meta {
    margin: 8px 0 0;
    -webkit-line-clamp: 1;
}

.movie-card-desc {
    min-height: 42px;
    margin: 8px 0 0;
    line-height: 1.55;
    -webkit-line-clamp: 2;
}

.rank-section {
    width: 100%;
    max-width: none;
    padding: 64px max(16px, calc((100vw - 1180px) / 2));
    color: var(--white);
    background:
        radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.28), transparent 28%),
        linear-gradient(180deg, var(--slate-900), var(--slate-800));
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.rank-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--amber-500));
    font-weight: 900;
}

.rank-cover {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
}

.rank-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
}

.rank-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.72);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: #fed7aa;
    font-size: 13px;
    font-weight: 700;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.28), transparent 34%),
        linear-gradient(135deg, #431407, #9a3412, #f59e0b);
    padding: 92px max(16px, calc((100vw - 1180px) / 2));
}

.small-hero {
    min-height: 310px;
}

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

.filter-panel {
    display: grid;
    gap: 18px;
    margin-top: -42px;
    position: relative;
    z-index: 4;
}

.filter-panel input {
    width: 100%;
    color: var(--slate-800);
    background: var(--slate-100);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    border: 0;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    color: var(--white);
    background: var(--orange-600);
}

.category-overview {
    display: grid;
    gap: 36px;
}

.category-overview-head {
    align-items: center;
}

.detail-main {
    background: var(--slate-50);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-900);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 10%, rgba(250, 204, 21, 0.32), transparent 38%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(67, 20, 7, 0.84), rgba(234, 88, 12, 0.46));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fed7aa;
    font-size: 14px;
    font-weight: 800;
}

.player-section {
    padding-top: 48px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.play-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    color: var(--orange-600);
    background: var(--white);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.player-message {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    color: #fecaca;
    font-weight: 800;
    text-align: center;
    pointer-events: none;
}

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

.info-panel dl {
    margin: 0;
}

.info-panel div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-200);
}

.info-panel dt {
    color: var(--slate-500);
    font-weight: 800;
}

.info-panel dd {
    margin: 0;
    color: var(--slate-900);
    font-weight: 800;
}

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

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
    padding: 42px 0 24px;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 32px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.footer-inner p {
    max-width: 620px;
    margin: 12px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
}

.footer-copy {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .nav-links,
    .nav-search {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

    .hero-inner,
    .detail-hero-inner,
    .intro-strip,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster {
        width: min(320px, 80vw);
    }

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

@media (max-width: 680px) {
    .nav-inner {
        height: 62px;
    }

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

    .hero,
    .hero-inner {
        min-height: 680px;
    }

    .hero-inner,
    .detail-hero-inner {
        gap: 28px;
        padding: 48px 0 74px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-lead {
        font-size: 16px;
    }

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

    .section-heading,
    .category-overview-head {
        display: grid;
        align-items: start;
    }

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

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

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

    .rank-item {
        grid-template-columns: 42px 74px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 13px;
    }

    .rank-title {
        font-size: 16px;
    }

    .detail-content-grid {
        gap: 14px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
