:root {
    --bg: #f7f7f5;
    --surface: #ffffff;
    --surface-soft: #f1eee6;
    --text: #27231e;
    --muted: #6f6753;
    --line: #e5dfd2;
    --primary: #e0561b;
    --primary-dark: #ba4118;
    --primary-soft: #fff1e7;
    --accent: #bc8b2c;
    --shadow: 0 24px 60px rgba(42, 31, 17, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    display: block;
    width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(229, 223, 210, 0.88);
    background: rgba(247, 247, 245, 0.88);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 26px rgba(224, 86, 27, 0.32);
}

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

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

.nav-link,
.mobile-nav-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.jump-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 278px;
}

.jump-search input,
.mobile-search input,
.filter-search,
.filter-select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    outline: none;
    padding: 0 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jump-search input:focus,
.mobile-search input:focus,
.filter-search:focus,
.filter-select:focus {
    border-color: rgba(224, 86, 27, 0.58);
    box-shadow: 0 0 0 4px rgba(224, 86, 27, 0.12);
}

.jump-search button,
.mobile-search button,
.hero-cta,
.section-link,
.detail-cta,
.category-card .category-go,
.play-overlay button {
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.jump-search button,
.mobile-search button {
    min-height: 42px;
    padding: 0 18px;
}

.jump-search button:hover,
.mobile-search button:hover,
.hero-cta:hover,
.section-link:hover,
.detail-cta:hover,
.category-card:hover .category-go,
.play-overlay button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(224, 86, 27, 0.22);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid rgba(229, 223, 210, 0.66);
}

.mobile-nav.is-open {
    display: grid;
    gap: 14px;
}

.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 56px;
}

.hero-carousel {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 34px;
    background: #1b1712;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    background-size: cover;
    background-position: center;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    max-width: 760px;
    padding: 72px;
    color: #fff;
}

.hero-kicker,
.eyebrow,
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(38px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 950;
    max-width: 880px;
}

.hero-content h2 {
    font-size: clamp(28px, 4.8vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.hero-content p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-cta,
.detail-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
}

.hero-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-controls {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-controls button,
.hero-dots button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.hero-dots {
    position: absolute;
    left: 72px;
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    opacity: 0.55;
}

.hero-dots button.is-active {
    width: 26px;
    border-radius: 999px;
    opacity: 1;
    background: var(--primary);
}

.section {
    margin-top: 58px;
}

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

.section-head h1,
.section-head h2,
.page-title h1,
.detail-title,
.category-title {
    margin: 8px 0 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.page-title {
    max-width: 860px;
    margin-bottom: 30px;
}

.page-title p,
.category-intro,
.detail-summary,
.detail-review p {
    color: var(--muted);
    line-height: 1.86;
    font-size: 16px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    white-space: nowrap;
}

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

.movie-card {
    min-width: 0;
}

.card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(229, 223, 210, 0.78);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(46, 34, 20, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-link:hover {
    transform: translateY(-6px);
    border-color: rgba(224, 86, 27, 0.42);
    box-shadow: 0 24px 46px rgba(46, 34, 20, 0.14);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #26211b, #7a2c17);
}

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

.card-link:hover img {
    transform: scale(1.07);
}

.year-badge,
.rank-badge,
.play-chip,
.detail-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(8px);
}

.year-badge {
    top: 12px;
    left: 12px;
    min-height: 26px;
    padding: 0 10px;
}

.rank-badge {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: var(--primary);
}

.play-chip {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    background: rgba(224, 86, 27, 0.92);
}

.card-body {
    padding: 16px;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.card-body h3 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.32;
    font-weight: 900;
}

.card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.72;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag-row span,
.detail-tags span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

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

.category-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(229, 223, 210, 0.86);
    background: linear-gradient(145deg, #fff, #fbf2eb);
    box-shadow: 0 16px 30px rgba(46, 34, 20, 0.07);
}

.category-card:before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -42px;
    top: -48px;
    border-radius: 50%;
    background: rgba(224, 86, 27, 0.12);
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.category-card p {
    position: relative;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-go {
    position: relative;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    margin-top: 22px;
}

.rank-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 24px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(229, 223, 210, 0.82);
    box-shadow: 0 10px 20px rgba(46, 34, 20, 0.06);
}

.rank-num {
    color: var(--primary);
    font-size: 22px;
    font-weight: 950;
    text-align: center;
}

.rank-item img {
    width: 74px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.rank-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin: 28px 0 26px;
    padding: 14px;
    border: 1px solid rgba(229, 223, 210, 0.86);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 28px rgba(46, 34, 20, 0.05);
}

.filter-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.empty-state {
    display: none;
    margin: 24px 0;
    padding: 36px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 24px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.62);
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 28px;
    align-items: stretch;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #100d0a;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    height: 100%;
    min-height: 440px;
    aspect-ratio: 16 / 9;
    background: #100d0a;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.play-overlay button {
    min-width: 152px;
    min-height: 54px;
    font-size: 16px;
}

.player-wrap.is-playing .play-overlay {
    display: none;
}

.detail-panel {
    padding: 30px;
    border-radius: 30px;
    border: 1px solid rgba(229, 223, 210, 0.86);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 34px rgba(46, 34, 20, 0.08);
}

.breadcrumb {
    margin-bottom: 12px;
    color: var(--primary);
    letter-spacing: 0;
    text-transform: none;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.detail-title {
    margin-top: 0;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 18px;
}

.detail-cover {
    margin-top: 20px;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #26211b, #7a2c17);
}

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

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    margin-top: 34px;
}

.article-card,
.side-card {
    border: 1px solid rgba(229, 223, 210, 0.86);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 32px rgba(46, 34, 20, 0.06);
}

.article-card {
    padding: 30px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.article-card p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.9;
}

.side-card {
    padding: 18px;
}

.side-card .rank-list {
    gap: 10px;
}

.site-footer {
    border-top: 1px solid rgba(229, 223, 210, 0.88);
    background: #fff;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 16px;
    font-weight: 800;
}

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

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

    .header-inner {
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

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

    .rank-layout,
    .detail-hero,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .detail-content {
        gap: 22px;
    }
}

@media (max-width: 760px) {
    .page-main {
        padding: 22px 16px 44px;
    }

    .header-inner {
        padding: 12px 16px;
    }

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

    .hero-carousel,
    .hero-content {
        min-height: 560px;
        border-radius: 24px;
    }

    .hero-content {
        padding: 38px 24px 86px;
    }

    .hero-dots {
        left: 24px;
        bottom: 28px;
    }

    .hero-controls {
        right: 20px;
        bottom: 20px;
    }

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

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

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

    .movie-player {
        min-height: 260px;
    }

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

    .rank-item {
        grid-template-columns: 36px 64px 1fr;
    }

    .rank-item img {
        width: 64px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-cta,
    .hero-ghost,
    .detail-cta {
        width: 100%;
    }
}
