:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-600: #ea580c;
    --red-500: #ef4444;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(120, 53, 15, 0.16);
    --shadow-card: 0 14px 32px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fffaf0 100%);
    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: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-700), var(--amber-500));
    box-shadow: 0 8px 28px rgba(146, 64, 14, 0.22);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.logo-icon,
.footer-logo span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-700);
    background: var(--white);
    border-radius: 50%;
    box-shadow: inset 0 0 0 5px rgba(245, 158, 11, 0.18);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 22px;
    letter-spacing: 0.04em;
}

.logo-text em {
    margin-top: 5px;
    font-size: 12px;
    color: var(--amber-100);
    font-style: normal;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--white);
    transform: translateY(-1px);
}

.top-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 250px;
}

.top-search input,
.mobile-nav input,
.search-panel input,
.filter-panel input,
.filter-panel select,
.search-panel select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--slate-900);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(146, 64, 14, 0.1);
}

.top-search button,
.mobile-nav button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--amber-900);
    background: var(--amber-100);
    cursor: pointer;
    font-weight: 800;
}

.mobile-menu-button {
    display: none;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
}

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

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-nav form {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(245, 158, 11, 0.34), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(120, 53, 15, 0.76) 45%, rgba(15, 23, 42, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 54px;
    align-items: center;
    padding: 76px 0 92px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-200);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

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

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(14px);
}

.tag-list span {
    color: var(--amber-800);
    background: var(--amber-100);
}

.tag-list.compact span {
    padding: 5px 9px;
    font-size: 12px;
}

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

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

.primary-button {
    color: var(--amber-900);
    background: linear-gradient(90deg, var(--amber-200), #ffffff);
    box-shadow: 0 18px 32px rgba(245, 158, 11, 0.22);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    min-height: 480px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.92);
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

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

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    font-size: 26px;
    line-height: 1;
}

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

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

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

.section {
    padding: 72px 0;
}

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

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    color: var(--amber-900);
}

.section-kicker {
    color: var(--amber-600);
}

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

.section-link {
    color: var(--amber-900);
    background: var(--amber-100);
}

.scroll-shell {
    position: relative;
}

.horizontal-rail {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 4px 28px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.horizontal-rail::-webkit-scrollbar {
    display: none;
}

.horizontal-rail .movie-card {
    flex: 0 0 288px;
}

.scroll-button {
    position: absolute;
    top: 42%;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--amber-900);
    background: var(--white);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    font-size: 28px;
}

.scroll-button.left {
    left: -12px;
}

.scroll-button.right {
    right: -12px;
}

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

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

.movie-card-link {
    display: block;
    overflow: hidden;
    height: 100%;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--amber-100);
}

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

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

.poster-badge,
.poster-score,
.rank-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.poster-badge {
    top: 14px;
    left: 14px;
    padding: 7px 11px;
    color: var(--white);
    background: rgba(120, 53, 15, 0.82);
}

.poster-score {
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.9);
}

.rank-mark {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--red-500);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-meta {
    margin: 0 0 10px;
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-desc {
    margin: 0 0 14px;
    color: var(--slate-500);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.category-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, var(--white), var(--amber-50));
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(146, 64, 14, 0.18);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    min-height: 110px;
}

.category-thumbs img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
}

.category-card h3 {
    margin: 0 0 8px;
    color: var(--amber-900);
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--slate-500);
    font-size: 14px;
}

.rank-preview {
    width: min(1260px, calc(100% - 32px));
    padding: 46px 40px 58px;
    border-radius: 36px;
    background: linear-gradient(135deg, var(--amber-800), var(--orange-600));
    box-shadow: var(--shadow-soft);
}

.rank-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.rank-list .movie-card-body {
    padding: 14px;
}

.rank-list .movie-card-body h3 {
    font-size: 16px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-800), var(--orange-600));
}

.page-hero {
    padding: 76px 0;
}

.compact-hero,
.search-hero,
.category-hero,
.ranking-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(253, 230, 138, 0.32), transparent 24%),
        linear-gradient(135deg, var(--amber-900), var(--amber-600));
}

.page-hero h1,
.detail-info h1 {
    margin: 12px 0 14px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

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

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

.filter-panel,
.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 30px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.search-panel {
    max-width: 850px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
}

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

.detail-bg-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 25%, rgba(245, 158, 11, 0.32), transparent 26%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(120, 53, 15, 0.76) 52%, rgba(15, 23, 42, 0.48) 100%);
}

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

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

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.38);
}

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

.detail-one-line {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.detail-tags span {
    color: var(--white);
}

.score-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 28px 0;
}

.score-line strong {
    color: var(--amber-200);
    font-size: 44px;
    line-height: 1;
}

.score-line span {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

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

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

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

.movie-video {
    z-index: 1;
    background: #000000;
}

.player-cover {
    z-index: 2;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--white);
    background: #000000;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

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

.play-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-200), var(--white));
    color: var(--amber-900);
    font-size: 42px;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.32);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 0 0 48px;
}

.detail-main-card,
.detail-side-card {
    padding: 30px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.detail-main-card h2,
.detail-side-card h2 {
    margin: 0 0 16px;
    color: var(--amber-900);
    font-size: 26px;
}

.detail-main-card p {
    margin: 0 0 26px;
    color: var(--slate-700);
    font-size: 17px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: var(--amber-50);
}

.info-list dt {
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 900;
}

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

.detail-tag-list {
    margin-bottom: 26px;
}

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

.detail-neighbor a {
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--amber-900);
    background: var(--amber-100);
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-links {
    display: grid;
    gap: 14px;
}

.side-links a {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--amber-50);
}

.side-links img {
    width: 76px;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
}

.side-links span {
    font-weight: 900;
}

.site-footer {
    color: var(--amber-50);
    background: linear-gradient(180deg, var(--amber-800), var(--amber-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 52px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 22px;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: var(--amber-100);
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    color: var(--amber-200);
    background: rgba(0, 0, 0, 0.12);
}

.is-filter-hidden {
    display: none;
}

.empty-results {
    grid-column: 1 / -1;
    padding: 38px;
    border-radius: var(--radius-xl);
    color: var(--amber-900);
    background: var(--amber-100);
    text-align: center;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .main-nav {
        gap: 12px;
        font-size: 14px;
    }

    .top-search {
        min-width: 210px;
    }

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

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

@media (max-width: 920px) {
    .main-nav,
    .top-search {
        display: none;
    }

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

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

    .hero-content {
        gap: 32px;
        padding-top: 46px;
    }

    .hero-poster {
        min-height: 360px;
        transform: none;
    }

    .hero-poster img {
        min-height: 360px;
    }

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

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

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

    .header-inner {
        min-height: 68px;
    }

    .logo-icon,
    .footer-logo span {
        width: 38px;
        height: 38px;
    }

    .logo-text strong {
        font-size: 18px;
    }

    .logo-text em {
        display: none;
    }

    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }

    .mobile-nav form {
        flex-direction: column;
    }

    .hero-carousel,
    .hero-content {
        min-height: 640px;
    }

    .hero-copy h1,
    .detail-info h1,
    .page-hero h1 {
        font-size: 36px;
    }

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

    .hero-poster {
        display: none;
    }

    .hero-controls {
        bottom: 18px;
    }

    .section {
        padding: 48px 0;
    }

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

    .movie-grid,
    .rank-list,
    .category-grid,
    .category-grid.large,
    .info-list,
    .detail-neighbor {
        grid-template-columns: 1fr;
    }

    .horizontal-rail .movie-card {
        flex-basis: 82%;
    }

    .rank-preview {
        padding: 36px 18px;
    }

    .detail-hero-inner {
        padding-top: 32px;
    }

    .video-player {
        border-radius: 18px;
    }

    .play-pulse {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }
}
