:root {
    --bg: #fffbeb;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3d9a6;
    --primary: #b45309;
    --primary-dark: #78350f;
    --primary-soft: #fef3c7;
    --accent: #e11d48;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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, 251, 235, 0.92);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #92400e);
    box-shadow: 0 12px 25px rgba(180, 83, 9, 0.28);
}

.brand-text {
    font-size: 22px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #78350f, #d97706);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    font-weight: 650;
    color: #4b5563;
}

.desktop-nav a {
    position: relative;
    padding: 10px 0;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: #d97706;
    transition: width 0.24s ease;
}

.desktop-nav a:hover {
    color: #92400e;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: #92400e;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    padding: 10px 16px 18px;
    border-top: 1px solid rgba(245, 158, 11, 0.18);
    background: #ffffff;
}

.mobile-panel a {
    display: block;
    padding: 10px 4px;
    color: #4b5563;
    font-weight: 650;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #1f1308;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(1.1);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 22%, rgba(245, 158, 11, 0.38), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(31, 41, 55, 0.68), rgba(120, 53, 15, 0.46));
}

.hero-content {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 68px 0;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

.hero p {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
    color: #92400e;
    background: #fef3c7;
}

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

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

.primary-button {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 18px 34px rgba(180, 83, 9, 0.32);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(180, 83, 9, 0.38);
}

.ghost-button {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff7ed;
    background: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

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

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

.quick-search {
    margin-top: -42px;
    position: relative;
    z-index: 8;
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 28px;
    align-items: center;
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.quick-search h2,
.quick-search p {
    margin: 0;
}

.quick-search h2 {
    font-size: 26px;
}

.quick-search p {
    color: var(--muted);
}

.home-search-form,
.filter-bar {
    display: flex;
    gap: 10px;
}

.home-search-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(180, 83, 9, 0.2);
    border-radius: 999px;
    padding: 13px 16px;
    color: #374151;
    background: #ffffff;
    outline: none;
}

.home-search-form button {
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: #ffffff;
    background: #b45309;
    font-weight: 800;
}

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

.section-block.tinted {
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 34%),
        #fff7ed;
}

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

.section-head.flat {
    margin-bottom: 18px;
}

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

.text-link {
    color: #92400e;
    font-size: 15px;
}

.text-link:hover {
    color: #d97706;
}

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

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

.category-tile {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(245, 158, 11, 0.18);
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile strong {
    color: #78350f;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-samples {
    display: grid;
    gap: 6px;
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(245, 158, 11, 0.18);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.poster-link img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0;
    color: #111827;
    font-size: 19px;
    line-height: 1.28;
}

.movie-card h3 a:hover {
    color: #b45309;
}

.movie-card p {
    min-height: 72px;
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
}

.rank-list,
.rank-page-list {
    display: grid;
    gap: 12px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 70px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(120, 53, 15, 0.08);
}

.rank-item:hover {
    border-color: rgba(180, 83, 9, 0.34);
}

.rank-number {
    color: #b45309;
    font-size: 21px;
    font-weight: 900;
}

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

.rank-title {
    font-weight: 800;
}

.rank-year {
    color: var(--muted);
    font-size: 13px;
}

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

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

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

.compact-card p {
    min-height: 54px;
    font-size: 13px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.4), transparent 32%),
        linear-gradient(135deg, #111827, #78350f);
}

.page-hero {
    padding: 92px 0;
}

.slim-hero {
    padding: 74px 0;
}

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

.page-hero p,
.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.category-hero-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: center;
}

.hero-stack {
    display: grid;
    gap: 12px;
}

.hero-stack a {
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-stack img {
    width: 86px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-stack span {
    font-weight: 800;
}

.filter-bar {
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(120, 53, 15, 0.08);
}

.filter-bar select {
    max-width: 170px;
}

.detail-hero {
    padding: 60px 0;
}

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

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

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

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

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

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

.detail-meta-grid span {
    border-radius: 16px;
    padding: 12px 14px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-tags {
    margin-bottom: 26px;
}

.player-section {
    padding-top: 58px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.35);
    position: relative;
}

.play-icon::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 23px;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 20px solid #ffffff;
}

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

.prose-card {
    padding: 34px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.prose-card h2 {
    margin: 0 0 12px;
    color: #78350f;
    font-size: 28px;
}

.prose-card p {
    margin: 0 0 26px;
    color: #4b5563;
    font-size: 17px;
}

.prose-card p:last-child {
    margin-bottom: 0;
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #1f2937 48%, #78350f);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 56px 0;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    margin: 0;
    color: #d1d5db;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fbbf24;
}

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

.site-footer a {
    color: #d1d5db;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #d1d5db;
    font-size: 14px;
}

.hidden-card {
    display: none !important;
}

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

    .menu-button {
        display: inline-flex;
    }

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

    .hero-content,
    .category-hero-inner,
    .detail-layout,
    .split-layout,
    .quick-search-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 320px;
        margin: 0 auto;
    }

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

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

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

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

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

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

    .hero-content {
        gap: 30px;
        padding: 44px 0 72px;
    }

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

    .home-search-form,
    .filter-bar {
        flex-direction: column;
    }

    .filter-bar select {
        max-width: none;
    }

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

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

    .category-grid,
    .large-category-grid,
    .movie-grid,
    .mini-grid,
    .rank-page-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 60px 1fr;
    }

    .rank-year {
        display: none;
    }

    .detail-layout {
        gap: 26px;
    }

    .detail-poster {
        max-width: 290px;
        margin: 0 auto;
    }

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

    .prose-card {
        padding: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}
