:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-300: #fdba74;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-600: #ea580c;
    --brown-900: #5a2b0c;
    --ink-900: #171717;
    --ink-700: #3f3f46;
    --ink-500: #71717a;
    --line: rgba(146, 64, 14, 0.14);
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 20px 60px rgba(120, 53, 15, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-900);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fffaf3 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(255, 237, 213, 0.94));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    -webkit-background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link,
.mobile-link {
    color: var(--ink-700);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-current,
.mobile-link.is-current {
    color: var(--amber-600);
}

.nav-link:hover {
    transform: translateY(-1px);
}

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

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--brown-900);
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    padding: 0 20px 18px;
}

.mobile-menu.is-open {
    display: grid;
    gap: 12px;
}

.main-visual {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.28), transparent 32%),
        radial-gradient(circle at 80% 12%, rgba(234, 88, 12, 0.22), transparent 30%),
        linear-gradient(135deg, #fff7ed 0%, #ffedd5 42%, #fff 100%);
}

.visual-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(26px);
    opacity: 0.42;
}

.visual-glow-one {
    left: 4%;
    top: 18%;
    background: #fdba74;
}

.visual-glow-two {
    right: 8%;
    bottom: 12%;
    background: #fb923c;
}

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

.visual-topline,
.tag-row,
.detail-tags,
.visual-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.visual-topline span,
.tag-row span,
.detail-tags span,
.visual-categories a,
.card-score,
.category-kicker {
    border: 1px solid rgba(217, 119, 6, 0.18);
    color: #92400e;
    background: rgba(255, 247, 237, 0.76);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.visual-stage {
    position: relative;
    margin-top: 34px;
    min-height: 430px;
}

.visual-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 48px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(22px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.visual-image {
    position: relative;
    min-height: 420px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    box-shadow: 0 34px 90px rgba(120, 53, 15, 0.28);
}

.visual-image::after,
.card-cover::after,
.rank-cover::after,
.detail-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(67, 20, 7, 0.46));
    pointer-events: none;
}

.visual-image img {
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.visual-copy {
    padding: 26px 0;
}

.eyebrow,
.section-heading p,
.page-hero p,
.card-meta {
    margin: 0 0 12px;
    color: var(--amber-600);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.visual-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    color: #241006;
}

.visual-summary {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--ink-700);
    font-size: 20px;
    line-height: 1.9;
}

.visual-actions,
.filter-control {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

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

.primary-button,
.visual-search button {
    color: white;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.24);
}

.ghost-button,
.text-link {
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.2);
    background: rgba(255, 255, 255, 0.76);
}

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

.visual-actions {
    margin-top: 32px;
}

.visual-dots {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.visual-dot {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.22);
    cursor: pointer;
}

.visual-dot.is-active {
    background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
}

.visual-search {
    max-width: 760px;
    margin-top: 28px;
}

.visual-search form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.visual-search input,
.filter-control input {
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 999px;
    outline: none;
    color: var(--ink-700);
    background: white;
}

.visual-categories {
    margin-top: 22px;
}

.visual-categories a:hover {
    color: white;
    background: var(--amber-600);
}

.section-wrap,
.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0;
}

.amber-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.56), rgba(255, 255, 255, 0));
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading h2,
.text-panel h2 {
    margin: 0;
    color: #241006;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

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

.category-card,
.category-overview {
    min-height: 178px;
    padding: 24px;
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 40px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview:hover,
.movie-card:hover,
.rank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(120, 53, 15, 0.15);
}

.category-card span,
.category-overview h2 {
    display: block;
    margin: 0 0 10px;
    color: #241006;
    font-size: 22px;
    font-weight: 900;
}

.category-card strong,
.category-overview strong {
    color: var(--amber-600);
}

.category-card p,
.category-overview p,
.card-body p,
.rank-body p,
.footer-grid p,
.text-panel p,
.lead-text,
.page-hero span {
    color: var(--ink-700);
    line-height: 1.75;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 12px 38px rgba(120, 53, 15, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-cover,
.rank-cover,
.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.card-cover {
    aspect-ratio: 3 / 4;
}

.card-cover img,
.rank-cover img,
.detail-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-score {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.card-body {
    padding: 18px;
}

.card-body h2,
.rank-body h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
    color: #241006;
}

.card-body h2 a:hover,
.rank-body h2 a:hover,
.meta-list a:hover {
    color: var(--amber-600);
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 38px rgba(120, 53, 15, 0.07);
}

.filter-label {
    display: block;
    margin-bottom: 10px;
    color: var(--amber-600);
    font-weight: 900;
}

.filter-control span {
    color: var(--ink-500);
    font-size: 14px;
    font-weight: 700;
}

.page-hero {
    min-height: 320px;
    padding: 72px max(16px, calc((100% - 1180px) / 2));
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 20% 15%, rgba(253, 186, 116, 0.38), transparent 28%),
        linear-gradient(135deg, #fff7ed, #ffedd5 56%, #ffffff);
    border-bottom: 1px solid var(--line);
}

.page-hero div {
    max-width: 820px;
}

.page-hero h1 {
    margin-bottom: 16px;
}

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

.category-overview h2 {
    font-size: 30px;
}

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 106px 70px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 34px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-cover {
    width: 106px;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
}

.rank-number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 22px;
    font-weight: 900;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.rank-body span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--amber-600);
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--ink-500);
    font-size: 14px;
}

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

.detail-main {
    display: grid;
    gap: 28px;
}

.player-card,
.detail-content,
.text-panel {
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 46px rgba(120, 53, 15, 0.1);
}

.player-card {
    overflow: hidden;
    background: #140c06;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #100804;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 16px;
    color: white;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(20, 8, 2, 0.28), rgba(20, 8, 2, 0.78));
}

.player-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.player-layer button {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 18px 50px rgba(245, 158, 11, 0.32);
}

.player-layer button span {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid white;
}

.player-layer strong {
    max-width: min(720px, calc(100% - 32px));
    font-size: clamp(24px, 4vw, 48px);
    line-height: 1.2;
}

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

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 24px;
}

.detail-copy h1 {
    font-size: clamp(36px, 6vw, 62px);
}

.detail-tags {
    margin: 18px 0;
}

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

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 0;
}

.meta-list div {
    padding: 14px;
    border-radius: 18px;
    background: #fff7ed;
}

.meta-list dt {
    color: var(--ink-500);
    font-size: 13px;
    font-weight: 800;
}

.meta-list dd {
    margin: 6px 0 0;
    color: #241006;
    font-weight: 900;
}

.text-panel {
    padding: 30px;
}

.text-panel p {
    margin: 16px 0 0;
    font-size: 17px;
}

.related-wrap {
    padding-top: 10px;
}

.site-footer {
    margin-top: 48px;
    color: #ffedd5;
    background: linear-gradient(180deg, #7c2d12, #431407);
}

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

.footer-brand {
    color: white;
    font-size: 24px;
}

.footer-grid p {
    color: #fed7aa;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 18px;
}

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

.footer-links a {
    color: #fed7aa;
}

.footer-links a:hover {
    color: white;
}

[hidden] {
    display: none !important;
}

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

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

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

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

    .menu-button {
        display: block;
    }

    .main-visual {
        min-height: auto;
    }

    .visual-shell {
        padding: 42px 0 58px;
    }

    .visual-stage {
        min-height: 720px;
    }

    .visual-slide {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .visual-image,
    .visual-image img {
        min-height: 360px;
    }

    .visual-search form {
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .visual-search button {
        width: 100%;
    }

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

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

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

    .rank-cover {
        width: 82px;
    }

    .rank-number {
        position: absolute;
        left: 12px;
        top: 12px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

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

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

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

@media (max-width: 560px) {
    .brand-text {
        font-size: 19px;
    }

    .visual-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

    .visual-summary {
        font-size: 17px;
    }

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

    .section-wrap,
    .detail-layout {
        padding: 52px 0;
    }

    .detail-content,
    .text-panel {
        padding: 20px;
    }

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