:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-400: #f59e0b;
    --amber-500: #f59e0b;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--orange-600);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    color: #fff7ed;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.wide-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-bar input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--slate-800);
}

.header-search input {
    width: 210px;
    padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.wide-search button {
    border: 0;
    cursor: pointer;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--slate-900);
    font-weight: 700;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

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

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

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-link {
    padding: 12px 14px;
    color: #ffffff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

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

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

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
}

.hero-bg::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.22), transparent 36%), linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.88));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    align-items: center;
    gap: 54px;
    padding: 80px 0 88px;
}

.hero-kicker,
.page-hero span,
.section-title span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: #92400e;
    background: var(--amber-100);
    font-size: 14px;
    font-weight: 800;
}

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

.hero-copy p,
.page-hero p,
.detail-one-line {
    margin: 0 0 28px;
    max-width: 720px;
    color: #ffedd5;
    font-size: 19px;
}

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

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

.primary-button {
    color: var(--orange-600);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.18);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-tile:hover,
.category-card-large:hover {
    transform: translateY(-3px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(16px);
}

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

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

.hero-control {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 30px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: #ffffff;
}

.search-band {
    padding: 28px 0;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
}

.search-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 24px;
}

.search-shell h2,
.section-title h2,
.ranking-side h2,
.player-card h2,
.text-card h2,
.info-card h2,
.related-card h2 {
    margin: 8px 0 0;
    color: var(--slate-900);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.search-shell p {
    margin: 6px 0 0;
    color: var(--slate-500);
}

.wide-search {
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: var(--shadow-card);
}

.wide-search input {
    width: 100%;
    padding: 15px 18px;
}

.wide-search button {
    min-width: 92px;
    padding: 15px 20px;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.feature-section,
.split-section,
.category-overview,
.listing-section,
.ranking-layout,
.detail-content {
    padding: 58px 0;
}

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

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

.compact-title h2 {
    font-size: 25px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

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

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

.rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.24);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 13px;
}

.card-body h3 {
    margin: 8px 0 8px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
}

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

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

.tag-row span,
.detail-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #92400e;
    background: var(--amber-50);
    font-size: 12px;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 26px;
}

.category-panel,
.rank-panel,
.ranking-side,
.text-card,
.player-card,
.info-card,
.related-card {
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-panel,
.rank-panel,
.ranking-side,
.text-card,
.player-card,
.info-card,
.related-card {
    padding: 26px;
}

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

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

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

.category-tile,
.category-card-main {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid rgba(245, 158, 11, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile span,
.category-card-main span {
    color: var(--orange-600);
    font-weight: 800;
}

.category-tile strong,
.category-card-main h2 {
    color: var(--slate-900);
}

.category-tile em,
.category-card-main p {
    color: var(--slate-500);
    font-style: normal;
}

.category-card-large {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease;
}

.category-samples {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.category-samples a {
    color: var(--slate-700);
    font-weight: 700;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 38px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: #fff7ed;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #ffedd5;
    transform: translateX(3px);
}

.rank-number {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--slate-900);
    font-weight: 900;
}

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

.rank-title {
    min-width: 0;
    color: var(--slate-900);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-info {
    display: block;
    color: var(--slate-500);
    font-size: 13px;
}

.rank-score {
    color: var(--orange-600);
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0;
    background: linear-gradient(135deg, var(--slate-900), #7c2d12 62%, var(--orange-500));
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.26);
    filter: blur(12px);
}

.page-hero .section-shell {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    max-width: 800px;
}

.page-search {
    max-width: 720px;
    margin-top: 26px;
}

.filter-bar {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.filter-bar input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--slate-100);
}

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

.filter-chips button {
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--slate-700);
    background: #fff7ed;
    cursor: pointer;
    font-weight: 800;
}

.filter-chips button.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

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

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 26px;
}

.tall-rank {
    max-height: 1140px;
    overflow: auto;
    padding-right: 6px;
}

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

.detail-shell {
    position: relative;
    z-index: 2;
    padding: 56px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    color: #ffedd5;
    font-weight: 700;
}

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

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.detail-copy .primary-button {
    margin-top: 24px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
}

.main-detail,
.side-detail {
    display: grid;
    gap: 22px;
}

.video-stage {
    position: relative;
    margin-top: 18px;
    border-radius: 24px;
    overflow: hidden;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.38), rgba(15, 23, 42, 0.72));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-symbol {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--orange-600);
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

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

.info-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 14px;
    margin: 16px 0 0;
}

.info-card dt {
    color: var(--slate-500);
}

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

.related-grid {
    display: grid;
    gap: 16px;
}

.compact-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
}

.compact-card .poster-link {
    aspect-ratio: 3 / 4;
}

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

.compact-card .card-body p,
.compact-card .tag-row,
.compact-card .card-meta span:nth-child(n + 3) {
    display: none;
}

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

.nav-neighbor a {
    padding: 18px;
    border-radius: 20px;
    color: var(--slate-900);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    font-weight: 800;
}

.site-footer {
    margin-top: 36px;
    color: #cbd5e1;
    background: var(--slate-900);
}

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

.footer-brand {
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    max-width: 420px;
    color: #94a3b8;
}

.site-footer h3 {
    color: #ffffff;
    margin: 0 0 14px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

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

    .split-section,
    .ranking-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }
}

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 720px;
        padding-top: 62px;
    }

    .hero-poster {
        width: min(280px, 72vw);
    }

    .search-shell,
    .detail-head,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        width: min(260px, 70vw);
    }
}

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

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

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

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

    .movie-grid,
    .list-grid,
    .category-grid,
    .category-overview-grid,
    .nav-neighbor {
        grid-template-columns: 1fr;
    }

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

    .rank-score {
        display: none;
    }

    .compact-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }
}
