:root {
    --amber: #d97706;
    --amber-dark: #b45309;
    --orange: #ea580c;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --dark: #111827;
    --shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #fff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 12px 32px rgba(180, 83, 9, 0.25);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: var(--amber);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 600;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
    opacity: 0.95;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #ffedd5;
    opacity: 1;
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    font-weight: 600;
}

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

.hero-carousel {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

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

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

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

.hero-mask,
.detail-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.18), transparent 28%),
                linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
}

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

.eyebrow {
    margin: 0 0 14px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-desc,
.page-hero p,
.lead-text {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.65;
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 0;
}

.hero-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 13px;
    border-radius: 999px;
    color: #fff;
    background: rgba(217, 119, 6, 0.9);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.28);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 34px;
}

.primary-button,
.ghost-button,
.text-button,
.inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: var(--amber);
    box-shadow: 0 14px 26px rgba(217, 119, 6, 0.32);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.inline-link:hover {
    transform: translateY(-2px);
}

.primary-button:hover {
    background: var(--amber-dark);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.text-button,
.inline-link {
    color: #fbbf24;
    padding-inline: 4px;
}

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

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

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 34px;
    transform: translateY(-50%);
}

.hero-nav:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-nav.prev {
    left: 18px;
}

.hero-nav.next {
    right: 18px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.48);
}

.hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: var(--amber);
}

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

.content-section.no-padding {
    padding: 0;
}

.section-heading {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.section-heading > span {
    width: 6px;
    height: 40px;
    margin-top: 5px;
    border-radius: 999px;
    background: var(--amber);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 900;
}

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

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link,
.poster-wrap {
    display: block;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1f2937;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.76) 100%);
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(217, 119, 6, 0.94);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.type-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 8px;
    color: #fff;
    background: var(--amber);
    font-size: 12px;
    font-style: normal;
}

.rank-badge {
    min-width: 32px;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-card h3 {
    margin: 0 0 7px;
    overflow: hidden;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card h3 a:hover {
    color: var(--amber);
}

.movie-card p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.movie-meta span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.soft-section {
    padding: 72px 0;
    background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

.dark-section {
    padding: 72px 0;
    color: #fff;
    background: linear-gradient(90deg, #111827, #1f2937);
}

.dark-section .section-heading p,
.dark-section .year-head a {
    color: #fbbf24;
}

.split-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 42px;
}

.rank-panel,
.rank-list-wide,
.side-ranks {
    display: grid;
    gap: 12px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 36px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-number {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), #ef4444);
    font-weight: 900;
}

.rank-row img {
    width: 58px;
    height: 78px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-row strong,
.rank-row em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row strong {
    margin-bottom: 6px;
    font-size: 15px;
}

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

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

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

.category-tile {
    display: block;
    min-height: 124px;
    padding: 20px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(217, 119, 6, 0.32);
}

.category-tile strong,
.category-tile span {
    display: block;
}

.category-tile strong {
    margin-bottom: 9px;
    font-size: 21px;
}

.category-tile span {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
}

.year-stack {
    display: grid;
    gap: 44px;
}

.year-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.year-head h3 {
    margin: 0;
    font-size: 26px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.page-hero {
    min-height: 340px;
    padding: 80px 0;
}

.page-hero > div {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.compact-hero {
    background: radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.28), transparent 28%),
                linear-gradient(90deg, #111827, #1f2937);
}

.category-hero {
    background: radial-gradient(circle at 70% 20%, rgba(251, 191, 36, 0.26), transparent 26%),
                linear-gradient(90deg, #111827, #7c2d12);
}

.category-list {
    display: grid;
    gap: 24px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.category-cover-set {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-cover-set img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.category-card-large h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-card-large p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.search-toolbar {
    position: sticky;
    top: 86px;
    z-index: 20;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(16px);
}

.search-toolbar.elevated {
    position: relative;
    top: auto;
}

.movie-search {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: #fff;
}

.movie-search:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0 13px;
    color: #7c2d12;
    background: #ffedd5;
    font-weight: 700;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #fff;
    background: var(--amber);
}

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

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

.detail-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 38px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 58px);
}

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

.player-card,
.article-card,
.side-card {
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.player-card {
    padding: 16px;
    margin-bottom: 26px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    aspect-ratio: 16 / 9;
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74));
}

.player-start span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 50%;
    background: var(--amber);
    font-size: 30px;
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.35);
}

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

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

.article-card {
    padding: 30px;
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-card h2:not(:first-child) {
    margin-top: 32px;
}

.article-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.side-card {
    padding: 22px;
    margin-bottom: 22px;
}

.side-card h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

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

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

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

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

.side-ranks .rank-row img {
    display: none;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(90deg, #111827, #1f2937);
}

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

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 16px;
    color: #fff;
}

.footer-grid p {
    margin: 0;
    line-height: 1.8;
}

.footer-grid a {
    display: block;
    margin: 9px 0;
}

.footer-grid a:hover {
    color: #fbbf24;
}

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 14px;
        font-size: 14px;
    }

    .six-grid,
    .five-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .menu-button {
        display: block;
    }

    .hero-carousel {
        height: auto;
        min-height: 620px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
        padding: 58px 0 76px;
    }

    .hero-poster {
        display: none;
    }

    .hero-nav {
        display: none;
    }

    .four-grid,
    .five-grid,
    .six-grid,
    .small-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .category-cover-set {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

    .search-toolbar {
        top: 78px;
    }
}

@media (max-width: 520px) {
    .brand {
        font-size: 20px;
    }

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

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

    .movie-grid {
        gap: 16px;
    }

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

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card p {
        font-size: 13px;
    }

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

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

    .rank-row img {
        width: 50px;
        height: 68px;
    }

    .article-card,
    .side-card {
        padding: 20px;
    }
}
