:root {
    --bg: #fafaf9;
    --ink: #292524;
    --muted: #78716c;
    --soft: #f5f5f4;
    --line: #e7e5e4;
    --dark: #1c1917;
    --darker: #0c0a09;
    --amber: #d97706;
    --amber-light: #f59e0b;
    --amber-soft: #fef3c7;
    --card: #ffffff;
    --shadow: 0 18px 40px rgba(28, 25, 23, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, #fffaf0 0%, var(--bg) 320px, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #f5f5f4;
    background: rgba(28, 25, 23, 0.96);
    box-shadow: 0 10px 30px rgba(12, 10, 9, 0.25);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(217, 119, 6, 0.35);
}

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

.brand small {
    display: block;
    color: #a8a29e;
    font-size: 12px;
    font-weight: 500;
}

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

.desktop-nav a,
.mobile-panel a {
    padding: 9px 14px;
    color: #e7e5e4;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
    color: #fff;
    background: rgba(217, 119, 6, 0.22);
}

.site-search {
    display: flex;
    align-items: center;
    min-width: 250px;
    overflow: hidden;
    background: #44403c;
    border: 1px solid rgba(245, 245, 244, 0.1);
    border-radius: 999px;
}

.site-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 14px 10px 18px;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
}

.site-search input::placeholder {
    color: #a8a29e;
}

.site-search button {
    padding: 10px 16px;
    color: #fff;
    background: var(--amber);
    border: 0;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: #fff;
    background: #44403c;
    border: 0;
    border-radius: 12px;
    font-size: 22px;
}

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

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

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

.hero {
    position: relative;
    min-height: 72vh;
    color: #fff;
    background: var(--darker);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.94) 0%, rgba(12, 10, 9, 0.68) 45%, rgba(12, 10, 9, 0.25) 100%), linear-gradient(180deg, rgba(12, 10, 9, 0.1) 0%, rgba(12, 10, 9, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 110px 0 92px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 14px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #f5f5f4;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    color: #fff;
    background: var(--amber);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn.secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    background: rgba(12, 10, 9, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

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

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

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

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

.home-search-panel {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    margin: -44px auto 72px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(231, 229, 228, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-search-panel .site-search {
    min-width: 100%;
    background: #f5f5f4;
    border-color: var(--line);
}

.home-search-panel .site-search input {
    color: var(--ink);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a,
.filter-chip {
    display: inline-flex;
    padding: 8px 13px;
    color: #57534e;
    background: #f5f5f4;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.section {
    margin: 0 0 74px;
}

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

.section h2,
.page-title h1,
.detail-info h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.section-head p,
.page-title p,
.category-card p,
.detail-info p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(28, 25, 23, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(217, 119, 6, 0.35);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #292524, #57534e);
}

.movie-card.landscape .poster-wrap,
.movie-grid.wide .poster-wrap {
    aspect-ratio: 16 / 9;
}

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

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

.year-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    color: #fff;
    background: var(--amber);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.hover-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(12, 10, 9, 0.42);
    font-size: 42px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .hover-play {
    opacity: 1;
}

.movie-card-body {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.movie-card-body strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-body em,
.rank-item em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.card-line {
    display: -webkit-box;
    overflow: hidden;
    color: #57534e;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.category-card {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 10px 26px rgba(28, 25, 23, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.preview-title-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.preview-title-list span {
    padding: 5px 9px;
    color: #78350f;
    background: var(--amber-soft);
    border-radius: 999px;
    font-size: 12px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 76px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    box-shadow: 0 14px 28px rgba(28, 25, 23, 0.1);
    transform: translateY(-3px);
}

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

.rank-num {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: var(--dark);
    border-radius: 999px;
    font-weight: 900;
}

.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
    background: var(--amber);
}

.page-hero {
    padding: 66px 0 42px;
    background: radial-gradient(circle at 20% 20%, #fed7aa 0, transparent 32%), linear-gradient(180deg, #fff7ed, #fff);
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: #b45309;
}

.filterbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(28, 25, 23, 0.06);
}

.filterbar input {
    width: 100%;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
}

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

.empty-state.show {
    display: block;
}

.detail-hero {
    padding: 40px 0 30px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 34px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(12, 10, 9, 0.35);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(12, 10, 9, 0.14), rgba(12, 10, 9, 0.58));
    border: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

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

.play-symbol {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    padding-left: 5px;
    color: #fff;
    background: rgba(217, 119, 6, 0.92);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.4);
    font-size: 34px;
}

.detail-info {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(28, 25, 23, 0.08);
}

.detail-info .tag-row span {
    color: #78350f;
    background: #fffbeb;
    border-color: #fde68a;
}

.detail-body {
    display: grid;
    gap: 22px;
    margin-top: 32px;
}

.text-panel {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.text-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.text-panel p {
    margin: 0;
    color: #44403c;
}

.neighbor-links {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
}

.neighbor-links a {
    flex: 1;
    padding: 14px;
    color: #78350f;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px;
}

.search-results-heading {
    margin: 0 0 20px;
    color: var(--muted);
}

.site-footer {
    margin-top: 82px;
    color: #d6d3d1;
    background: #1c1917;
}

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

.footer-brand {
    color: #fff;
    font-size: 22px;
}

.site-footer p {
    color: #a8a29e;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .desktop-nav,
    .nav-inner > .site-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

    .movie-grid.wide,
    .category-grid,
    .ranking-layout,
    .home-search-panel,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .hero {
        min-height: 78vh;
    }

    .hero-content {
        padding: 88px 0 82px;
    }

    .hero-arrow {
        display: none;
    }

    .home-search-panel {
        margin-top: -26px;
    }

    .section-head,
    .filterbar,
    .neighbor-links {
        align-items: stretch;
        flex-direction: column;
    }

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

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

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

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