:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3e8d2;
    --brand: #f97316;
    --brand-dark: #b45309;
    --brand-soft: #fed7aa;
    --gold: #f59e0b;
    --rose: #f43f5e;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.18);
    --shadow-soft: 0 10px 28px rgba(146, 64, 14, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

img,
video {
    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;
    color: white;
    background: linear-gradient(135deg, #b45309, #f97316 55%, #f59e0b);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.22);
}

.header-bar {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    white-space: nowrap;
    transition: transform 0.25s ease;
}

.site-logo:hover {
    transform: translateY(-2px) scale(1.02);
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 280px;
    border-radius: 999px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.header-search input,
.mobile-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
    padding: 9px 12px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #c2410c;
    background: white;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

.mobile-search {
    display: flex;
    padding: 4px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
}

.hero,
.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #f97316 54%, #e11d48);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.1s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    filter: saturate(1.08) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(251, 191, 36, 0.55), transparent 32%),
        linear-gradient(90deg, rgba(69, 26, 3, 0.88), rgba(127, 29, 29, 0.55) 50%, rgba(15, 23, 42, 0.68));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 48px;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 20px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 950;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.hero p,
.page-hero p,
.detail-hero p {
    max-width: 780px;
    margin: 0 0 30px;
    font-size: clamp(18px, 2vw, 24px);
    color: #ffedd5;
}

.hero-actions,
.cta-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

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

.btn-primary {
    color: #c2410c;
    background: white;
    box-shadow: 0 18px 38px rgba(255, 255, 255, 0.24);
}

.btn-glass {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 28px 70px rgba(69, 26, 3, 0.4);
    transform: rotate(2deg);
}

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

.hero-poster:hover img {
    transform: scale(1.07);
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ea580c;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
    font-size: 28px;
    box-shadow: var(--shadow);
}

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

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

.hero-dots button.is-active {
    width: 34px;
    background: white;
}

.quick-categories {
    position: relative;
    z-index: 8;
    margin-top: -38px;
}

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

.category-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-chip span {
    font-size: 28px;
}

.category-chip strong {
    font-size: 17px;
}

.section {
    padding: 76px 0;
}

.section-white {
    background: white;
}

.section-warm {
    background: linear-gradient(180deg, #fff7ed, white);
}

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

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

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

.section-more {
    flex: none;
    padding: 10px 16px;
    border-radius: 999px;
    color: #c2410c;
    background: #ffedd5;
    font-weight: 900;
}

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

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

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

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

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

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #f8d8aa;
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent);
}

.badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.badge-hot {
    left: 12px;
    top: 12px;
    color: white;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.badge-year {
    right: 12px;
    top: 12px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #f97316;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-body {
    padding: 18px;
}

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

.movie-body h3 {
    margin: 0 0 10px;
    min-height: 48px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
}

.movie-line {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.movie-foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: #78716c;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card-compact .movie-body h3 {
    min-height: 42px;
    font-size: 15px;
}

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

.cta-band {
    padding: 78px 0;
    color: white;
    background: linear-gradient(135deg, #f97316, #f59e0b, #facc15);
}

.cta-inner {
    text-align: center;
}

.cta-inner h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.cta-inner p {
    margin: 0 auto 28px;
    max-width: 720px;
    color: #fff7ed;
    font-size: 20px;
}

.cta-actions {
    justify-content: center;
}

.page-hero.small-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
}

.page-hero.category-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 900px;
}

.tag-cloud a,
.tag-list a {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #c2410c;
    background: #ffedd5;
    font-weight: 800;
}

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff7ed;
    box-shadow: var(--shadow-soft);
}

.category-card-main {
    display: block;
    padding: 26px;
    background: linear-gradient(135deg, white, #ffedd5);
}

.category-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 20px;
    font-size: 30px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.category-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 950;
}

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

.category-samples {
    display: grid;
    gap: 8px;
    padding: 18px 22px 22px;
}

.category-samples a {
    color: #9a3412;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 14px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    outline: 0;
    padding: 13px 16px;
    color: var(--text);
    background: #fffaf3;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.empty-state {
    margin-bottom: 20px;
    padding: 22px;
    border-radius: 20px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 900;
    text-align: center;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 76px 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    background: #fff7ed;
    box-shadow: var(--shadow-soft);
}

.rank-num {
    font-size: 30px;
    font-weight: 950;
    color: #ea580c;
    text-align: center;
}

.rank-poster {
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
}

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

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 950;
}

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

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rank-meta span {
    padding: 4px 9px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.rank-play {
    padding: 10px 18px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-weight: 900;
}

.detail-hero {
    min-height: 560px;
    display: flex;
    align-items: center;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 42px;
    padding: 54px 0;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

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

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

.player-frame video {
    width: 100%;
    height: 100%;
    background: #111827;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: white;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ea580c;
    background: white;
    font-size: 34px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.player-overlay strong {
    font-size: 22px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.detail-article {
    margin-top: 28px;
    padding: 30px;
    border-radius: 28px;
    background: #fff7ed;
    box-shadow: var(--shadow-soft);
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 950;
}

.detail-article p {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 17px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-side {
    position: sticky;
    top: 96px;
}

.side-list {
    display: grid;
    gap: 16px;
}

.side-list .movie-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
}

.side-list .poster-link {
    aspect-ratio: 2 / 3;
}

.side-list .movie-body h3 {
    min-height: auto;
}

.side-list .movie-line,
.side-list .movie-foot {
    display: none;
}

.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}

.prev-next a {
    padding: 16px 18px;
    border-radius: 18px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 900;
}

.prev-next a:last-child {
    text-align: right;
}

.site-footer {
    color: #ffedd5;
    background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding: 52px 0 36px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: white;
}

.site-footer p {
    margin: 0;
    max-width: 520px;
    color: #fed7aa;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #fed7aa;
    font-weight: 700;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    color: #fdba74;
}

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

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

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

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

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

    .hero-content,
    .detail-hero-inner,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .featured-grid,
    .movie-grid,
    .library-grid,
    .movie-grid-compact,
    .category-chip-row,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-side {
        position: static;
    }

    .rank-row {
        grid-template-columns: 52px 82px minmax(0, 1fr);
    }

    .rank-play {
        grid-column: 3;
        width: max-content;
    }
}

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

    .site-logo {
        font-size: 20px;
    }

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

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

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

    .section {
        padding: 52px 0;
    }

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

    .featured-grid,
    .movie-grid,
    .library-grid,
    .movie-grid-compact,
    .category-chip-row,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        max-width: 210px;
    }

    .side-list .movie-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .prev-next {
        grid-template-columns: 1fr;
    }

    .prev-next a:last-child {
        text-align: left;
    }
}
