:root {
    --bg: #fafaf9;
    --text: #1c1917;
    --muted: #78716c;
    --line: #e7e5e4;
    --dark: #1c1917;
    --dark-soft: #292524;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --card: #ffffff;
    --shadow: 0 20px 50px rgba(28, 25, 23, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #fafaf9 0%, #ffffff 42%, #fafaf9 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.86), rgba(28, 25, 23, 0.12));
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled {
    color: var(--text);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 38px rgba(28, 25, 23, 0.10);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    max-width: 1280px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-text {
    font-size: clamp(19px, 2vw, 26px);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.36);
}

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

.desktop-nav a,
.mobile-panel a {
    font-weight: 650;
    color: currentColor;
    opacity: 0.92;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--amber);
    transform: translateY(-1px);
    opacity: 1;
}

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

.top-search input,
.mobile-search input,
.filter-bar input,
.search-panel input,
.search-panel select {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.88);
    outline: none;
    min-width: 220px;
}

.top-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--amber);
    cursor: pointer;
}

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

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto 14px;
    padding: 18px 24px 22px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0 0 24px 24px;
    box-shadow: var(--shadow);
}

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

.mobile-panel nav,
.mobile-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mobile-panel a {
    padding: 10px 12px;
    background: #f5f5f4;
    border-radius: 14px;
}

.hero-carousel {
    position: relative;
    height: 78vh;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.18) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 160px 24px 92px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
}

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

.hero-tags span,
.card-meta span,
.detail-meta span,
.rank-meta span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
}

.hero-tags span:first-child,
.card-meta span:first-child,
.detail-meta span:first-child {
    background: var(--amber);
    color: #ffffff;
}

.hero-content h1 {
    max-width: 850px;
    margin: 18px 0 16px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 740px;
    margin: 0;
    font-size: clamp(17px, 2.1vw, 24px);
    color: rgba(255, 255, 255, 0.9);
}

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

.primary-btn,
.ghost-btn,
.text-link,
.section-link,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    min-height: 48px;
    padding: 12px 24px;
    color: #ffffff;
    background: var(--amber);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

.primary-btn:hover,
.rank-action:hover {
    transform: translateY(-2px);
    background: var(--amber-dark);
}

.ghost-btn {
    min-height: 48px;
    padding: 12px 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(12px);
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 52px;
    z-index: 4;
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 36px;
    background: var(--amber);
}

.quick-cats {
    position: relative;
    z-index: 5;
    margin-top: -54px;
    padding: 0 24px;
}

.quick-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.quick-inner a,
.category-box,
.movie-card,
.side-box,
.search-panel,
.rank-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(231, 229, 228, 0.88);
    box-shadow: 0 18px 46px rgba(28, 25, 23, 0.08);
    backdrop-filter: blur(14px);
}

.quick-inner a {
    min-height: 120px;
    padding: 18px;
    border-radius: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-inner a:hover,
.movie-card:hover,
.category-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.quick-inner strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.quick-inner span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 0;
}

.page-main {
    padding-top: 76px;
}

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

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

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link,
.text-link {
    color: var(--amber-dark);
}

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

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

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

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

.card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #292524;
}

.movie-card.large .card-image {
    aspect-ratio: 16 / 9;
}

.movie-card.compact .card-image {
    aspect-ratio: 4 / 3;
}

.card-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
}

.play-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 18px;
}

.card-meta {
    color: var(--muted);
    margin-bottom: 12px;
}

.card-meta span {
    color: var(--muted);
    background: #f5f5f4;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card.large .card-body h3 {
    font-size: 24px;
}

.card-body p {
    margin: 0 0 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--amber-dark);
}

.tag-list span {
    background: #fffbeb;
}

.soft-panel,
.band-panel,
.editor-panel {
    margin-top: 72px;
    padding: 42px 24px;
    border-radius: 34px;
}

.soft-panel {
    background: linear-gradient(135deg, #f5f5f4, #ffffff);
}

.band-panel {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.editor-panel {
    background: linear-gradient(135deg, #f8fafc, #fff7ed);
}

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

.movie-card.list {
    display: grid;
    grid-template-columns: 150px 1fr;
}

.movie-card.list .card-image {
    aspect-ratio: auto;
    height: 100%;
}

.page-hero {
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.36), transparent 28%), linear-gradient(135deg, #1c1917, #44403c);
}

.page-hero > div {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 78px 24px 58px;
}

.page-hero span {
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.05;
}

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

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

.category-box {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 22px;
    padding: 18px;
    border-radius: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 20px;
}

.category-collage img {
    height: 100%;
    min-height: 92px;
    object-fit: cover;
}

.category-box h2 {
    margin: 4px 0 8px;
    font-size: 28px;
}

.category-box p {
    margin: 0 0 18px;
    color: var(--muted);
}

.filter-bar {
    margin-bottom: 24px;
}

.filter-bar input {
    width: min(100%, 420px);
    border-color: var(--line);
    background: #ffffff;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 136px 64px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
}

.rank-cover {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
}

.rank-cover img {
    height: 100%;
    object-fit: cover;
}

.rank-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--amber);
    text-align: center;
}

.rank-info h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--muted);
}

.rank-meta span {
    color: var(--muted);
    background: #f5f5f4;
}

.rank-action {
    padding: 10px 18px;
    color: #ffffff;
    background: var(--amber);
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 220px 180px;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    margin-bottom: 24px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    border-color: var(--line);
}

.no-result {
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    background: #fff7ed;
    color: var(--amber-dark);
}

.breadcrumb {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
}

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

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 38px;
    background: rgba(245, 158, 11, 0.94);
    box-shadow: 0 20px 48px rgba(245, 158, 11, 0.34);
}

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

.detail-copy {
    padding: 32px 0 0;
}

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.1;
}

.detail-meta {
    margin-bottom: 18px;
    color: var(--muted);
}

.detail-meta span {
    color: var(--muted);
    background: #f5f5f4;
}

.lead-text {
    font-size: 20px;
    color: #44403c;
}

.detail-copy h2,
.side-box h2 {
    margin: 28px 0 10px;
    font-size: 24px;
}

.detail-copy p {
    margin: 0 0 16px;
    color: #44403c;
}

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

.poster-card {
    display: block;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.poster-card img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.side-box {
    margin-top: 18px;
    padding: 22px;
    border-radius: 24px;
}

.side-box dl {
    margin: 0;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px 14px;
}

.side-box dt {
    color: var(--muted);
}

.side-box dd {
    margin: 0;
    font-weight: 650;
}

.site-footer {
    margin-top: 90px;
    color: #d6d3d1;
    background: linear-gradient(180deg, #1c1917, #0c0a09);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 38px;
}

.footer-main p {
    max-width: 520px;
    color: #a8a29e;
}

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

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

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

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: #a8a29e;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

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

    .featured-grid,
    .editorial-grid,
    .movie-list-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 18px;
    }

    .side-box {
        margin-top: 0;
    }
}

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

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-carousel {
        min-height: 680px;
        height: 82vh;
    }

    .hero-content {
        padding-top: 130px;
        padding-bottom: 110px;
    }

    .hero-dots {
        left: 24px;
        right: auto;
    }

    .quick-inner,
    .movie-grid,
    .featured-grid,
    .editorial-grid,
    .movie-list-row,
    .category-grid,
    .search-panel,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .category-box {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 92px 46px 1fr;
    }

    .rank-action {
        grid-column: 1 / -1;
    }

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

    .poster-card img {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 560px) {
    .nav-wrap {
        height: 68px;
        padding: 0 16px;
    }

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

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

    .hero-content,
    .content-section,
    .page-hero > div,
    .detail-layout,
    .breadcrumb,
    .footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

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

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

    .rank-card {
        grid-template-columns: 86px 1fr;
    }

    .rank-number {
        position: absolute;
        margin-left: 12px;
        margin-top: 10px;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        background: var(--amber);
        font-size: 18px;
    }

    .rank-info {
        grid-column: 2;
    }

    .play-overlay span {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
