:root {
    --bg: #f7f7fb;
    --text: #172033;
    --muted: #667085;
    --panel: #ffffff;
    --line: rgba(15, 23, 42, 0.1);
    --brand: #f97316;
    --brand-dark: #ea580c;
    --slate: #0f172a;
    --slate-2: #1e293b;
    --radius: 22px;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #111827, #f97316);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, #0f172a, #334155, #0f172a);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

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

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

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.45);
}

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

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.brand-text small {
    color: #cbd5e1;
    font-size: 12px;
}

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

.nav-links a {
    padding: 10px 18px;
    border-radius: 12px;
    color: #e2e8f0;
    font-weight: 600;
    transition: 0.25s ease;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 22px;
}

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    min-height: 650px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
    background-image: linear-gradient(110deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.70), rgba(249, 115, 22, 0.45)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-shade,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(249, 115, 22, 0.25), transparent 28%),
        radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.20), transparent 28%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-lead {
    max-width: 780px;
    color: #e2e8f0;
    font-size: clamp(18px, 2vw, 24px);
}

.hero-small {
    color: #cbd5e1;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

.hero-content .tag,
.detail-copy .tag {
    color: #fff7ed;
    background: rgba(249, 115, 22, 0.28);
    border: 1px solid rgba(251, 146, 60, 0.35);
}

.hero-actions,
.detail-copy .btn + .btn {
    margin-left: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
}

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

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.btn-ghost.dark {
    color: var(--slate);
    background: #fff;
    border: 1px solid var(--line);
}

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

.hero-dots button {
    width: 36px;
    height: 8px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    color: transparent;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: var(--brand);
}

.section-block {
    padding: 64px 0;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.text-link {
    color: var(--brand-dark);
    font-weight: 800;
}

.search-panel {
    position: relative;
    z-index: 4;
    margin-top: -42px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px) auto;
    align-items: center;
    gap: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.search-panel.slim {
    margin-top: 28px;
    grid-template-columns: 1fr auto;
}

.search-box {
    display: grid;
    gap: 6px;
}

.search-box.full {
    width: 100%;
}

.search-box span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.search-box input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 16px;
    outline: none;
    font-size: 15px;
    background: #fff;
}

.search-box input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

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

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

.category-tile {
    min-height: 190px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 8px;
    padding: 22px;
    border-radius: var(--radius);
    color: #fff;
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.92)), var(--tile-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    color: #fed7aa;
}

.category-tile em {
    font-style: normal;
    color: #e2e8f0;
    font-size: 14px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    transition: 0.25s ease;
}

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

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

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

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

.year-badge,
.play-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    background: rgba(249, 115, 22, 0.94);
}

.play-badge {
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.72);
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-card h2 a:hover {
    color: var(--brand-dark);
}

.card-meta {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card p {
    margin: 0;
    color: #475467;
    font-size: 14px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-row em,
.rank-row small {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.rank-num {
    color: var(--brand-dark);
    font-weight: 900;
}

.page-hero {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #334155 58%, #9a3412);
}

.compact-hero {
    padding: 86px 0 110px;
}

.page-hero p {
    max-width: 760px;
    color: #e2e8f0;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #fff;
    background-image: linear-gradient(100deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78), rgba(154, 52, 18, 0.45)), var(--detail-image);
    background-size: cover;
    background-position: center;
}

.detail-layout {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: 48px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 8px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy {
    max-width: 790px;
}

.detail-meta {
    color: #cbd5e1;
    font-weight: 700;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.player-start span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 18px 50px rgba(249, 115, 22, 0.42);
    font-size: 32px;
}

.player-start strong {
    font-size: 20px;
}

.player-box.is-ready .player-start {
    display: none;
}

.detail-content {
    padding: 20px 0 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
}

.story-panel {
    padding: 28px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.story-panel h2 {
    margin-top: 0;
}

.accent-panel {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.rank-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
}

.rank-card h2 {
    margin: 4px 0 4px;
    font-size: 22px;
}

.rank-card p {
    margin: 6px 0;
    color: #475467;
}

.heat {
    color: var(--brand-dark);
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #020617, #1e293b);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.site-footer h2 {
    color: #fff;
    font-size: 18px;
}

.site-footer a {
    display: inline-block;
    margin: 0 12px 8px 0;
    color: #fed7aa;
}

.is-hidden {
    display: none !important;
}

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

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

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

@media (max-width: 760px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.96);
        box-shadow: var(--shadow);
    }

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

    .hero-slider,
    .hero-slide,
    .hero-content {
        min-height: 590px;
    }

    .hero-actions {
        display: grid;
        gap: 12px;
    }

    .search-panel,
    .search-panel.slim {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .category-grid,
    .category-grid.wide,
    .movie-grid,
    .rank-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        padding: 48px 0;
    }

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

    .detail-copy .btn + .btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 84px 1fr;
    }
}
