@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;500;600;700;900&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --amber-950: #451a03;
    --ink: #2d1605;
    --muted: #7c4a19;
    --surface: #fffaf0;
    --line: rgba(146, 64, 14, 0.18);
    --shadow: 0 20px 50px rgba(69, 26, 3, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--amber-50);
    font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--amber-100);
    background: linear-gradient(90deg, var(--amber-900), var(--amber-800), var(--amber-900));
    border-bottom: 2px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 12px 30px rgba(69, 26, 3, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #fff;
    background: radial-gradient(circle at 30% 20%, var(--amber-300), var(--amber-600));
    border: 1px solid rgba(253, 230, 138, 0.55);
    border-radius: 14px;
    font-family: "Ma Shan Zheng", cursive;
    font-size: 26px;
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.45);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: "Ma Shan Zheng", cursive;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: 0.03em;
}

.brand-subtitle {
    margin-top: 5px;
    color: var(--amber-300);
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    border-radius: 12px;
    color: var(--amber-100);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fff;
    background: rgba(146, 64, 14, 0.78);
}

.header-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-search input {
    width: min(260px, 24vw);
    padding: 10px 44px 10px 14px;
    color: #fff7d6;
    background: rgba(120, 53, 15, 0.62);
    border: 1px solid rgba(252, 211, 77, 0.45);
    border-radius: 12px;
    outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(253, 230, 138, 0.76);
}

.header-search button,
.mobile-search button {
    border: 0;
    cursor: pointer;
}

.header-search button {
    position: absolute;
    right: 4px;
    width: 36px;
    height: 36px;
    color: var(--amber-100);
    background: transparent;
    border-radius: 10px;
}

.header-search button:hover {
    background: rgba(251, 191, 36, 0.18);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: var(--amber-100);
    background: rgba(120, 53, 15, 0.65);
    border: 1px solid rgba(252, 211, 77, 0.45);
    border-radius: 12px;
    cursor: pointer;
}

.mobile-panel {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.mobile-link {
    padding: 10px 12px;
}

.mobile-search {
    gap: 8px;
}

.mobile-search input {
    width: 100%;
}

.mobile-search button {
    padding: 10px 14px;
    color: #fff;
    background: var(--amber-600);
    border-radius: 10px;
}

.hero-carousel {
    position: relative;
    min-height: clamp(560px, 70vh, 720px);
    overflow: hidden;
    color: #fff;
    background: var(--amber-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 45%, rgba(251, 191, 36, 0.22), transparent 30%),
        linear-gradient(90deg, rgba(69, 26, 3, 0.95), rgba(69, 26, 3, 0.62), rgba(69, 26, 3, 0.08)),
        linear-gradient(0deg, rgba(69, 26, 3, 0.88), rgba(69, 26, 3, 0.15));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(700px, calc(100% - 32px));
    margin-left: max(24px, calc((100vw - 1240px) / 2));
    padding: 40px 0;
}

.hero-kicker,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #fff;
    background: rgba(217, 119, 6, 0.88);
    border: 1px solid rgba(253, 230, 138, 0.34);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 22px 0 18px;
    font-family: "Noto Serif SC", serif;
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.06;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-content p,
.page-hero p,
.detail-copy p {
    margin: 0;
    color: rgba(255, 247, 214, 0.92);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0;
}

.hero-tags span {
    padding: 8px 12px;
    color: var(--amber-100);
    background: rgba(120, 53, 15, 0.72);
    border: 1px solid rgba(253, 230, 138, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

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

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

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 14px 32px rgba(217, 119, 6, 0.35);
}

.btn-soft {
    color: #fff8d9;
    background: rgba(120, 53, 15, 0.78);
    border: 1px solid rgba(253, 230, 138, 0.34);
}

.btn-ghost {
    color: #fff8d9;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 48px;
    height: 60px;
    place-items: center;
    color: #fff;
    background: rgba(69, 26, 3, 0.45);
    border: 1px solid rgba(253, 230, 138, 0.35);
    border-radius: 16px;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 32px;
    left: 0;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    padding: 0;
    background: rgba(253, 230, 138, 0.42);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--amber-400);
}

.section {
    padding: 72px max(18px, calc((100vw - 1240px) / 2));
}

.section-light {
    background: linear-gradient(180deg, var(--amber-50), #fff);
}

.section-warm {
    background: linear-gradient(135deg, var(--amber-100), #fffaf0 58%, #fff);
}

.section-dark {
    color: #fff;
    background: radial-gradient(circle at 15% 0, rgba(251, 191, 36, 0.22), transparent 28%), linear-gradient(135deg, var(--amber-950), var(--amber-900));
}

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

.section-head h2 {
    margin: 14px 0 0;
    color: var(--amber-950);
    font-family: "Noto Serif SC", serif;
    font-size: clamp(28px, 4vw, 42px);
}

.section-head-dark h2,
.section-dark .section-head h2 {
    color: #fff;
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--amber-800);
    font-weight: 800;
}

.text-link.light {
    color: var(--amber-200);
}

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

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

.movie-card {
    overflow: hidden;
    background: rgba(255, 250, 240, 0.92);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(120, 53, 15, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--amber-200);
}

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

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(69, 26, 3, 0.76));
}

.year-badge,
.play-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    color: #fff;
    background: rgba(217, 119, 6, 0.92);
}

.play-badge {
    bottom: 12px;
    left: 12px;
    padding: 7px 12px;
    color: var(--amber-100);
    background: rgba(69, 26, 3, 0.72);
    border: 1px solid rgba(253, 230, 138, 0.24);
}

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.movie-card-body strong {
    min-height: 48px;
    color: var(--amber-950);
    font-size: 17px;
    line-height: 1.42;
}

.movie-meta {
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 700;
}

.movie-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.movie-card-compact .movie-card-body strong {
    min-height: auto;
}

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

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.category-card a {
    position: relative;
    display: block;
    height: 100%;
    min-height: inherit;
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(69, 26, 3, 0.12), rgba(69, 26, 3, 0.9));
}

.category-copy {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: grid;
    gap: 10px;
    color: #fff;
}

.category-copy strong {
    font-family: "Noto Serif SC", serif;
    font-size: 26px;
}

.category-copy span {
    color: var(--amber-100);
    line-height: 1.6;
}

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

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

.rank-item a {
    display: grid;
    grid-template-columns: 54px 76px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 108px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(253, 230, 138, 0.16);
    border-radius: 20px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.14);
}

.rank-number {
    color: var(--amber-300);
    font-family: "Noto Serif SC", serif;
    font-size: 28px;
    font-weight: 900;
}

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

.rank-copy {
    display: grid;
    gap: 8px;
}

.rank-copy strong {
    color: #fff;
    font-size: 17px;
}

.rank-copy span {
    color: var(--amber-200);
    font-size: 13px;
}

.page-hero {
    color: #fff;
    background: radial-gradient(circle at 70% 20%, rgba(251, 191, 36, 0.22), transparent 30%), linear-gradient(135deg, var(--amber-950), var(--amber-800));
}

.page-hero-inner {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 88px 0;
}

.small-hero .page-hero-inner {
    padding-top: 78px;
    padding-bottom: 78px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    background: rgba(255, 250, 240, 0.86);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(120, 53, 15, 0.1);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(146, 64, 14, 0.22);
    border-radius: 14px;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.16);
}

.empty-state {
    padding: 30px;
    color: var(--muted);
    text-align: center;
    background: #fff;
    border-radius: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: min(1240px, calc(100% - 32px));
    margin: 24px auto;
    color: var(--amber-800);
    font-size: 14px;
    font-weight: 700;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-position: center;
    background-size: cover;
}

.detail-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(69, 26, 3, 0.68), rgba(69, 26, 3, 0.5)),
        linear-gradient(0deg, rgba(69, 26, 3, 0.92), rgba(69, 26, 3, 0.1));
    backdrop-filter: blur(2px);
}

.detail-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 42px;
    align-items: center;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 72px;
}

.detail-cover {
    overflow: hidden;
    border: 1px solid rgba(253, 230, 138, 0.35);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    margin-top: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    width: min(1040px, 100%);
    margin: 0 auto;
    background: #000;
    border: 1px solid rgba(146, 64, 14, 0.26);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #fff;
    background: linear-gradient(180deg, rgba(69, 26, 3, 0.15), rgba(69, 26, 3, 0.62));
    border: 0;
    cursor: pointer;
}

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

.play-circle {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    padding-left: 4px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.44);
}

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

.detail-article,
.detail-side {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 12px 34px rgba(120, 53, 15, 0.1);
}

.detail-article {
    padding: 34px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    color: var(--amber-950);
    font-family: "Noto Serif SC", serif;
    font-size: 28px;
}

.detail-article p {
    margin: 0 0 28px;
    color: var(--ink);
    font-size: 17px;
    line-height: 2;
}

.detail-side {
    padding: 28px;
}

.detail-side dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.detail-side dt {
    color: var(--amber-700);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    line-height: 1.7;
}

.pager-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
}

.pager-links a {
    flex: 1;
    padding: 16px 18px;
    color: var(--amber-900);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    font-weight: 800;
}

.site-footer {
    color: var(--amber-100);
    background: linear-gradient(180deg, var(--amber-900), var(--amber-950));
    border-top: 2px solid rgba(251, 191, 36, 0.28);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 38px;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 34px;
}

.footer-logo {
    margin-bottom: 12px;
    font-family: "Ma Shan Zheng", cursive;
    font-size: 30px;
}

.footer-brand p,
.footer-links a,
.footer-bottom {
    color: var(--amber-300);
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

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

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(253, 230, 138, 0.15);
    font-size: 13px;
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: 68px;
    }

    .brand-subtitle {
        display: none;
    }

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

    .hero-content {
        margin: 0 auto;
        padding: 90px 0 80px;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

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

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

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

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

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

    .detail-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .pager-links {
        flex-direction: column;
    }

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

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

    .brand-name {
        font-size: 22px;
    }

    .hero-actions,
    .page-actions {
        display: grid;
    }
}
