* {
    box-sizing: border-box;
}

:root {
    --bg: #fafaf9;
    --paper: #ffffff;
    --soft: #f5f5f4;
    --line: #e7e5e4;
    --text: #1c1917;
    --muted: #78716c;
    --accent: #b45309;
    --accent-strong: #92400e;
    --accent-soft: #fef3c7;
    --shadow: 0 24px 60px rgba(68, 64, 60, 0.16);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

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;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(231, 229, 228, 0.82);
    box-shadow: 0 8px 26px rgba(120, 113, 108, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, #d97706, #78350f);
    box-shadow: 0 14px 30px rgba(180, 83, 9, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    color: #57534e;
    font-weight: 700;
    transition: color 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--accent);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    padding: 11px 16px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 230px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: var(--accent);
    cursor: pointer;
}

.nav-pills {
    display: flex;
    gap: 10px;
    padding: 0 0 14px;
    overflow-x: auto;
}

.nav-pill {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    color: #57534e;
    background: #ffffff;
    font-size: 14px;
    transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.nav-pill:hover,
.nav-pill-active {
    color: var(--accent-strong);
    border-color: #fbbf24;
    background: var(--accent-soft);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f5f5f4;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #44403c;
}

.mobile-nav {
    display: none;
    padding: 12px 16px 22px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-nav.is-open {
    display: grid;
    gap: 10px;
}

.mobile-search {
    margin-bottom: 6px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
}

.mobile-link {
    padding: 11px 12px;
    border-radius: 14px;
    color: #57534e;
    font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: var(--accent);
    background: #fef3c7;
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.38), transparent 34%), #0c0a09;
}

.hero-slider {
    position: relative;
    min-height: 650px;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: blur(1px) saturate(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.72) 48%, rgba(12, 10, 9, 0.36));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 42px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    padding: 72px 0 118px;
    color: #ffffff;
}

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

.eyebrow {
    margin: 0 0 10px;
    color: #d97706;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.detail-hero .eyebrow {
    color: #fbbf24;
}

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

.hero-desc {
    max-width: 700px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.hero-tags,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
    border-radius: 999px;
    padding: 6px 10px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #92400e);
    box-shadow: 0 16px 32px rgba(146, 64, 14, 0.32);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.page-hero .btn-ghost,
.category-hero .btn-ghost,
.ranking-hero .btn-ghost,
.detail-hero .btn-ghost {
    color: var(--accent-strong);
    border-color: #fbbf24;
    background: #fffbeb;
}

.hero-poster {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

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

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 86px;
    display: flex;
    gap: 10px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
}

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fbbf24;
}

.hero-bottom-panel {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
    gap: 18px;
    margin-top: -70px;
    margin-bottom: 38px;
}

.hero-category-bar,
.hero-side-list {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.hero-category-bar {
    flex-wrap: wrap;
}

.hero-category-bar span,
.hero-side-list > span {
    color: #44403c;
    font-weight: 900;
}

.hero-category-bar a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 800;
}

.hero-side-list {
    overflow-x: auto;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 52px 150px;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

.hero-mini-card img {
    width: 52px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
}

.hero-mini-card strong,
.hero-mini-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-mini-card strong {
    color: #1c1917;
    font-size: 14px;
}

.hero-mini-card small {
    color: #78716c;
    font-size: 12px;
}

.section-block {
    padding: 48px 0;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-more {
    color: var(--accent);
    font-weight: 900;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(68, 64, 60, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 26px 60px rgba(68, 64, 60, 0.16);
    transform: translateY(-5px);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #292524;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.76), transparent);
}

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: grid;
    min-width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #92400e);
    box-shadow: 0 12px 24px rgba(146, 64, 14, 0.3);
}

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

.movie-card h2 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.28;
}

.movie-card h2 a:hover {
    color: var(--accent);
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: #78716c;
    font-size: 13px;
}

.movie-meta a {
    color: var(--accent);
    font-weight: 800;
}

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

.card-compact .poster-link img {
    height: 100%;
    min-height: 140px;
}

.card-compact .movie-card-body {
    padding: 13px;
}

.card-compact h2 {
    font-size: 16px;
}

.card-compact p {
    min-height: auto;
    -webkit-line-clamp: 2;
}

.card-compact .movie-tags span:nth-child(n + 3) {
    display: none;
}

.soft-panel {
    width: min(1180px, calc(100% - 32px));
    border-radius: 34px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    padding: 34px;
    box-shadow: 0 20px 50px rgba(120, 113, 108, 0.1);
}

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

.category-card {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 16px;
    background: #ffffff;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
    border-color: #f59e0b;
    transform: translateY(-4px);
}

.category-thumbs {
    display: flex;
    min-height: 106px;
    margin-bottom: 14px;
}

.category-thumbs img {
    width: 33.3%;
    border: 3px solid #ffffff;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(68, 64, 60, 0.14);
}

.category-thumbs img:nth-child(2) {
    transform: translateY(14px) rotate(3deg);
}

.category-thumbs img:nth-child(3) {
    transform: translateY(4px) rotate(-3deg);
}

.category-card strong {
    font-size: 20px;
}

.category-card span {
    color: var(--muted);
    font-size: 14px;
}

.ranking-strip,
.overview-scroll,
.rank-top-list,
.aside-list,
.hero-stack {
    display: grid;
    gap: 14px;
}

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

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.38), transparent 34%), linear-gradient(135deg, #1c1917, #78350f);
}

.page-hero .container {
    padding: 70px 0;
}

.small-hero .container {
    max-width: 850px;
}

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

.page-hero p,
.detail-hero p {
    max-width: 740px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.two-column-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 38px;
    align-items: center;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(68, 64, 60, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    min-width: 230px;
    color: #57534e;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    border-radius: 16px;
}

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

.category-overview-row {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(68, 64, 60, 0.08);
}

.category-overview-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

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

.category-overview-copy p {
    margin: 0;
    color: var(--muted);
}

.category-overview-copy .btn {
    width: fit-content;
}

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

.detail-hero .container {
    padding: 34px 0 58px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

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

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-tags {
    margin-top: 20px;
}

.player-section {
    margin-top: -32px;
    padding-bottom: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 32px;
    background: #0c0a09;
    box-shadow: var(--shadow);
}

.player-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0c0a09;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(12, 10, 9, 0.28), rgba(12, 10, 9, 0.72));
    cursor: pointer;
    z-index: 5;
}

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

.play-icon {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #92400e);
    box-shadow: 0 18px 40px rgba(146, 64, 14, 0.38);
}

.play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #ffffff;
    transform: translate(-38%, -50%);
}

.play-layer strong {
    font-size: 24px;
}

.play-layer em {
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

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

.detail-article,
.detail-aside {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(68, 64, 60, 0.08);
}

.detail-article {
    padding: 28px;
}

.detail-section + .detail-section {
    margin-top: 32px;
}

.detail-section h2,
.detail-aside h2 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.2;
}

.detail-section p {
    margin: 0 0 14px;
    color: #44403c;
    font-size: 17px;
}

.lead-text {
    color: var(--accent-strong) !important;
    font-weight: 900;
}

.detail-aside {
    align-self: start;
    padding: 20px;
}

.site-footer {
    padding: 46px 0 26px;
    color: #d6d3d1;
    background: #1c1917;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 1fr 1fr;
    gap: 34px;
}

.footer-brand .brand-text strong {
    color: #ffffff;
}

.footer-brand .brand-text small,
.site-footer p {
    color: #a8a29e;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

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

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

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

.footer-bottom {
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
}

.footer-bottom p {
    margin: 0;
}

.is-filtered-out {
    display: none !important;
}

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

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

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

    .hero-content,
    .two-column-hero,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .hero-bottom-panel {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        align-self: stretch;
    }
}

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

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

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

    .brand {
        min-width: 0;
    }

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

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 48px;
        padding-bottom: 104px;
    }

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

    .hero-bottom-panel {
        margin-top: -54px;
    }

    .hero-side-list,
    .hero-category-bar {
        align-items: flex-start;
    }

    .movie-grid,
    .featured-grid,
    .large-grid,
    .ranking-grid,
    .ranking-strip,
    .overview-scroll,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-overview-row,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(320px, 82vw);
    }

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

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

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

    .hero-desc,
    .page-hero p,
    .detail-hero p {
        font-size: 16px;
    }

    .section-block {
        padding: 34px 0;
    }

    .soft-panel {
        width: min(100% - 22px, 1180px);
        padding: 22px;
    }

    .movie-grid,
    .featured-grid,
    .large-grid,
    .ranking-grid,
    .ranking-strip,
    .overview-scroll,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-mini-card {
        grid-template-columns: 48px 136px;
    }

    .detail-article,
    .detail-aside {
        padding: 18px;
        border-radius: 22px;
    }

    .play-layer strong {
        font-size: 18px;
    }
}
