:root {
    --color-ink: #1c1917;
    --color-muted: #6b7280;
    --color-amber: #d97706;
    --color-orange: #ea580c;
    --color-warm: #fff7ed;
    --color-stone: #fafaf9;
    --color-border: rgba(120, 113, 108, 0.18);
    --shadow-card: 0 18px 48px rgba(120, 53, 15, 0.13);
    --shadow-soft: 0 10px 28px rgba(28, 25, 23, 0.09);
    --radius-large: 28px;
    --radius-card: 18px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--color-ink);
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fafaf9 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.container.narrow {
    max-width: 900px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(var(--container), calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #92400e;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.28);
}

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

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #57534e;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #9a3412;
    background: #ffedd5;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: #ffedd5;
    border-radius: 14px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #9a3412;
    border-radius: 999px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    align-items: center;
    gap: 56px;
    min-height: 680px;
    padding: 86px max(32px, calc((100vw - var(--container)) / 2)) 92px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-content {
    max-width: 760px;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: #f59e0b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 16px;
    max-width: 900px;
    font-size: clamp(30px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero h2 {
    margin: 0 0 18px;
    color: #fde68a;
    font-size: clamp(24px, 3vw, 44px);
    line-height: 1.15;
    font-weight: 900;
}

.hero-summary {
    max-width: 720px;
    margin: 0 0 22px;
    color: #fffbeb;
    font-size: 19px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #92400e;
    background: #fffbeb;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero .hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.34);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(12px);
}

.hero-poster {
    display: block;
    width: min(100%, 360px);
    justify-self: end;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

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

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

.hero-dot {
    width: 28px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 48px;
    background: #f59e0b;
}

.home-search-section,
.page-hero {
    padding: 54px 0;
    text-align: center;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.home-search-section h2,
.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #78350f;
}

.home-search-section p,
.page-hero p {
    max-width: 820px;
    margin: 0 auto 24px;
    color: #78716c;
    font-size: 17px;
}

.search-panel {
    position: relative;
    display: flex;
    gap: 10px;
    max-width: 780px;
    margin: 24px auto 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.search-panel input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--color-ink);
}

.search-panel button {
    min-width: 96px;
    height: 48px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    max-height: 420px;
    overflow: auto;
    padding: 10px;
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.search-results.is-open {
    display: block;
}

.search-results a {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 14px;
}

.search-results a:hover {
    background: #fff7ed;
}

.search-results img {
    width: 46px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
}

.search-results strong {
    display: block;
    color: #1c1917;
}

.search-results span {
    display: block;
    color: #78716c;
    font-size: 13px;
}

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

.warm-bg {
    background: #ffffff;
}

.stone-bg {
    background: linear-gradient(135deg, #fafaf9, #fff7ed);
}

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

.section-head h2 {
    margin: 0;
    color: #1c1917;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-head > a {
    color: #c2410c;
    font-weight: 900;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-link,
.movie-card > a {
    display: block;
    height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-link:hover,
.movie-card > a:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: var(--shadow-card);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: #fde68a;
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-play,
.rank-badge {
    position: absolute;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.94);
    box-shadow: 0 10px 20px rgba(154, 52, 18, 0.22);
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 36px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 900;
}

.movie-copy {
    padding: 14px;
}

.movie-copy h2,
.movie-copy h3 {
    margin: 4px 0 8px;
    color: #1c1917;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 900;
}

.movie-card.is-compact .movie-copy h2,
.movie-card.is-compact .movie-copy h3 {
    font-size: 15px;
}

.movie-meta {
    margin: 0;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.movie-line {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card.is-compact .movie-line {
    display: none;
}

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

.category-tile,
.category-panel {
    display: block;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.category-tile strong,
.category-panel h2 {
    display: block;
    margin: 0 0 8px;
    color: #78350f;
    font-size: 24px;
    font-weight: 900;
}

.category-tile em {
    display: inline-flex;
    margin-bottom: 10px;
    color: #c2410c;
    font-style: normal;
    font-weight: 900;
}

.category-tile p,
.category-panel p {
    margin: 0 0 14px;
    color: #78716c;
}

.category-tile div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tile span {
    padding: 4px 9px;
    color: #92400e;
    background: #ffedd5;
    border-radius: 999px;
    font-size: 12px;
}

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

.category-panel ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.category-panel li a {
    display: block;
    color: #9a3412;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-hero {
    color: #ffffff;
    text-align: left;
    background: linear-gradient(135deg, #431407, #9a3412 50%, #f97316);
}

.compact-hero h1,
.compact-hero p {
    color: #ffffff;
}

.compact-hero .search-panel {
    margin-left: 0;
}

.local-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    max-width: 680px;
    margin-top: 24px;
}

.local-filter input {
    flex: 1;
    min-width: 220px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    outline: none;
    color: #1c1917;
    background: #ffffff;
    border-radius: 999px;
}

.local-filter button,
.local-filter span {
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    color: #78350f;
    background: #fffbeb;
    border-radius: 999px;
    font-weight: 900;
}

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

.rank-row > a {
    display: grid;
    grid-template-columns: 62px 56px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 16px;
}

.rank-row img {
    width: 56px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-number {
    color: #c2410c;
    font-size: 24px;
    font-weight: 900;
}

.rank-title {
    min-width: 0;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-meta {
    color: #78716c;
    font-size: 14px;
}

.rank-go {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 900;
}

.rank-filter {
    margin: 0 0 12px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #1c1917;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.28), transparent 34%), rgba(28, 25, 23, 0.30);
}

.detail-shell {
    position: relative;
    z-index: 1;
    padding: 42px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    color: #fde68a;
    font-weight: 800;
}

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

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

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

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 760px;
    color: #fff7ed;
    font-size: 20px;
}

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

.detail-meta-list div {
    padding: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.detail-meta-list dt {
    color: #fed7aa;
    font-size: 12px;
    font-weight: 900;
}

.detail-meta-list dd {
    margin: 4px 0 0;
    font-weight: 900;
}

.player-section {
    padding: 58px 0;
    background: #111827;
}

.player-head h2 {
    color: #ffffff;
}

.player-frame {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.30);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: #000000;
    cursor: pointer;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
}

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

.play-orb {
    position: relative;
    z-index: 1;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 50%;
    font-size: 32px;
    box-shadow: 0 20px 44px rgba(234, 88, 12, 0.42);
}

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

.detail-article,
.side-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.detail-article h2,
.side-card h2 {
    margin: 0 0 14px;
    color: #78350f;
    font-size: 24px;
    font-weight: 900;
}

.detail-article p,
.side-card p {
    margin: 0 0 18px;
    color: #44403c;
}

.side-card a {
    color: #c2410c;
    font-weight: 900;
}

.site-footer {
    padding: 36px 0;
    color: #fff7ed;
    background: #1c1917;
}

.footer-shell {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-logo {
    color: #fbbf24;
    font-size: 20px;
    font-weight: 900;
}

.footer-shell p {
    margin: 0;
    color: #fed7aa;
}

@media (max-width: 1100px) {
    .movie-grid.six-columns {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: #ffffff;
        border: 1px solid var(--color-border);
        border-radius: 22px;
        box-shadow: var(--shadow-card);
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
        padding-top: 70px;
    }

    .hero-poster {
        width: min(72vw, 280px);
        justify-self: start;
    }

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

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

    .detail-poster {
        width: min(72vw, 300px);
    }

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

    .rank-row > a {
        grid-template-columns: 48px 48px minmax(0, 1fr);
    }

    .rank-meta,
    .rank-go {
        display: none;
    }
}

@media (max-width: 640px) {
    .container,
    .nav-shell,
    .footer-shell {
        width: min(100% - 24px, var(--container));
    }

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

    .hero,
    .hero-slide {
        min-height: 760px;
    }

    .hero-slide {
        padding-left: 18px;
        padding-right: 18px;
    }

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

    .search-panel {
        flex-direction: column;
        border-radius: 24px;
    }

    .search-panel button {
        width: 100%;
    }

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

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

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

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

    .movie-copy {
        padding: 12px;
    }

    .movie-copy h2,
    .movie-copy h3 {
        font-size: 15px;
    }

    .tag-row {
        display: none;
    }

    .detail-shell {
        padding-top: 28px;
    }

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

    .player-section {
        padding: 36px 0;
    }

    .play-orb {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }

    .detail-article,
    .side-card,
    .category-tile,
    .category-panel {
        padding: 20px;
    }
}
