:root {
    color-scheme: light;
    --ink: #1c1917;
    --muted: #7c6f64;
    --paper: #ffffff;
    --soft: #fff7ed;
    --stone: #f5f5f4;
    --brand: #b45309;
    --brand-strong: #92400e;
    --brand-deep: #78350f;
    --accent: #dc2626;
    --accent-deep: #991b1b;
    --line: rgba(120, 53, 15, 0.14);
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.13);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.20), transparent 28rem),
        linear-gradient(180deg, #fff7ed 0%, #fafaf9 45%, #ffffff 100%);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    background: rgba(255, 251, 235, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--brand-deep);
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 12px 25px rgba(180, 83, 9, 0.25);
    font-size: 18px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #6b4e16;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #ffffff;
    background: var(--brand);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    border: 0;
    color: var(--brand-deep);
    background: rgba(245, 158, 11, 0.13);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    cursor: pointer;
}

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

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 1.2s ease;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(28, 25, 23, 0.86) 0%, rgba(28, 25, 23, 0.56) 45%, rgba(28, 25, 23, 0.14) 100%),
        linear-gradient(180deg, rgba(28, 25, 23, 0.24) 0%, rgba(28, 25, 23, 0.82) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 340px;
    gap: 48px;
    align-items: center;
    min-height: 680px;
    padding-top: 42px;
    padding-bottom: 48px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
    color: #fde68a;
}

.hero h1 {
    margin: 22px 0 18px;
    max-width: 820px;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-lead {
    max-width: 760px;
    margin: 0 0 26px;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.65;
    color: rgba(255, 247, 237, 0.92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 18px 30px rgba(220, 38, 38, 0.30);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px 16px;
    border-radius: 20px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.54);
    backdrop-filter: blur(14px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 4;
    width: min(1280px, calc(100% - 48px));
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.hero-arrows {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    font-size: 22px;
}

.hero-dots {
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

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

.section {
    padding: 64px 0;
}

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

.section-title {
    margin: 0 0 8px;
    color: var(--brand-deep);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.8;
}

.view-more {
    color: var(--brand-strong);
    font-weight: 850;
    white-space: nowrap;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(120, 53, 15, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(220, 38, 38, 0.20));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(153, 27, 27, 0.86);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 850;
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.card-title a:hover {
    color: var(--accent-deep);
}

.card-meta,
.card-line {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.card-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 46px;
    margin-top: 8px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--brand-deep);
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 10rem),
        #ffffff;
    box-shadow: 0 16px 32px 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 h3 {
    margin: 0 0 12px;
    color: var(--brand-deep);
    font-size: 24px;
    font-weight: 950;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.category-cta {
    margin-top: 22px;
    color: var(--accent-deep);
    font-weight: 900;
}

.page-hero {
    padding: 64px 0 34px;
}

.page-hero h1 {
    margin: 0 0 14px;
    color: var(--brand-deep);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.page-hero p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    position: sticky;
    top: 88px;
    z-index: 10;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 28px rgba(120, 53, 15, 0.08);
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(120px, 0.5fr));
    gap: 12px;
}

.filter-row input,
.filter-row select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(180, 83, 9, 0.22);
    border-radius: 16px;
    color: var(--ink);
    background: #fffaf0;
    outline: none;
}

.filter-row input:focus,
.filter-row select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.07);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    font-size: 22px;
    font-weight: 950;
}

.rank-cover img {
    width: 96px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: #ffedd5;
}

.rank-main h3 {
    margin: 0 0 8px;
    color: var(--brand-deep);
    font-size: 20px;
    font-weight: 950;
}

.rank-main p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.detail-shell {
    padding: 46px 0 72px;
}

.breadcrumb {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--brand-strong);
    font-weight: 800;
}

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

.detail-poster {
    position: sticky;
    top: 104px;
    overflow: hidden;
    border-radius: 30px;
    background: #ffedd5;
    box-shadow: var(--shadow);
}

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

.detail-main h1 {
    margin: 0 0 16px;
    color: var(--brand-deep);
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--brand-deep);
    background: #ffedd5;
    font-size: 14px;
    font-weight: 850;
}

.detail-lead {
    margin: 0 0 28px;
    color: #4b3526;
    font-size: 20px;
    line-height: 1.85;
}

.player-card {
    overflow: hidden;
    margin: 28px 0;
    border-radius: 30px;
    background: #0c0a09;
    box-shadow: 0 28px 70px rgba(12, 10, 9, 0.28);
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.82)),
        center / cover no-repeat;
    cursor: pointer;
}

.video-player.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 18px 42px rgba(220, 38, 38, 0.38);
    font-size: 42px;
    padding-left: 5px;
}

.player-message {
    min-height: 28px;
    padding: 12px 18px;
    color: #fef3c7;
    font-size: 14px;
}

.content-card {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 16px 32px rgba(120, 53, 15, 0.07);
}

.content-card h2 {
    margin: 0 0 18px;
    color: var(--brand-deep);
    font-size: 26px;
    font-weight: 950;
}

.content-card p {
    margin: 0 0 18px;
    color: #4b3526;
    line-height: 1.95;
}

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

.empty-state {
    display: none;
    padding: 40px;
    border-radius: 24px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

.site-footer {
    margin-top: 48px;
    padding: 42px 0;
    color: #fef3c7;
    background: linear-gradient(135deg, #78350f, #991b1b);
}

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

.footer-brand {
    font-size: 22px;
    font-weight: 950;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fffbeb;
    font-weight: 800;
}

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 260px;
    }
}

@media (max-width: 860px) {
    .header-inner {
        padding: 0 18px;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 251, 235, 0.96);
        box-shadow: var(--shadow);
    }

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

    .main-nav a {
        border-radius: 16px;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
    }

    .hero-poster {
        display: none;
    }

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

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

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

    .detail-poster {
        position: relative;
        top: auto;
        max-width: 320px;
    }

    .rank-item {
        grid-template-columns: 48px 72px minmax(0, 1fr);
    }

    .rank-cover img {
        width: 72px;
    }

    .rank-item .btn {
        grid-column: 1 / -1;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .logo {
        font-size: 20px;
    }

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

    .hero h1 {
        font-size: 44px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-controls {
        bottom: 18px;
    }

    .movie-grid,
    .category-grid,
    .filter-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 46px 0;
    }

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

    .content-card {
        padding: 22px;
    }
}
