* {
    box-sizing: border-box;
}

:root {
    --bg: #fff7ed;
    --paper: #ffffff;
    --paper-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fde68a;
    --brand: #d97706;
    --brand-dark: #b45309;
    --brand-soft: #f59e0b;
    --accent: #ef4444;
    --shadow: 0 20px 60px rgba(146, 64, 14, 0.15);
    --radius-lg: 28px;
    --radius-md: 18px;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(253, 230, 138, 0.9);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-dark);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.25);
}

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

.site-nav a {
    padding: 10px 15px;
    color: #4b5563;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--brand-dark);
    background: #fef3c7;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: 0;
    color: var(--brand-dark);
    background: #fef3c7;
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 800;
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 18% 22%, rgba(251, 191, 36, 0.9), transparent 32%), linear-gradient(135deg, #92400e 0%, #d97706 42%, #ef4444 100%);
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: saturate(1.1) contrast(1.02);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.82) 0%, rgba(146, 64, 14, 0.72) 44%, rgba(239, 68, 68, 0.32) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 56px;
    width: min(1180px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    padding: 96px 0 68px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hero-title {
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.07em;
    text-wrap: balance;
}

.hero-desc {
    max-width: 700px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-meta,
.detail-meta,
.card-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.hero-meta span,
.detail-meta span,
.card-meta-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

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

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

.btn-primary {
    color: var(--brand-dark);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.22);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.btn-warm {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.25);
}

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

.hero-poster-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.35);
}

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

.hero-poster-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(16px);
}

.hero-poster-copy strong {
    display: block;
    font-size: 20px;
}

.hero-poster-copy span {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

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

.hero-dots button {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.hero-dots button.active {
    background: #ffffff;
}

.search-strip {
    position: relative;
    z-index: 6;
    width: min(960px, calc(100% - 32px));
    margin: -34px auto 0;
    padding: 18px;
    border: 1px solid #fde68a;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.search-strip form,
.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-input,
.filter-input,
.filter-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 0 18px;
    color: var(--text);
    background: #fffbeb;
    font: inherit;
    outline: 0;
}

.search-input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: #fff7ed;
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

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

.section-action {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--brand-dark);
    background: #fef3c7;
    border-radius: 999px;
    padding: 10px 15px;
    font-weight: 900;
}

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #fde68a;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    border-color: #f59e0b;
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(146, 64, 14, 0.16);
}

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

.poster-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.36s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.64));
}

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
}

.year-badge {
    left: 12px;
    background: #ef4444;
}

.rank-badge {
    right: 12px;
    min-width: 30px;
    background: #111827;
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    padding: 16px;
}

.movie-card-title {
    overflow: hidden;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card-meta,
.movie-card-tags,
.rank-row-text em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.movie-card-desc {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    display: block;
    min-height: 168px;
    overflow: hidden;
    position: relative;
    border: 1px solid #fde68a;
    border-radius: var(--radius-lg);
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 45%, #fed7aa 100%);
    box-shadow: 0 14px 40px rgba(146, 64, 14, 0.1);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.22);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--brand-dark);
    font-size: 24px;
    font-weight: 950;
}

.category-card span {
    display: block;
    max-width: 82%;
    color: #6b7280;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 28px;
    align-items: start;
}

.rank-panel,
.info-panel,
.detail-card,
.player-shell {
    border: 1px solid #fde68a;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-panel {
    overflow: hidden;
}

.rank-row {
    display: grid;
    grid-template-columns: 46px 70px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid #fef3c7;
    transition: background 0.2s ease;
}

.rank-row:hover {
    background: #fffbeb;
}

.rank-row strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-row-cover {
    overflow: hidden;
    border-radius: 14px;
}

.rank-row-cover img {
    width: 70px;
    height: 56px;
    object-fit: cover;
}

.rank-row-text span {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero {
    padding: 76px 0 48px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, #fbbf24 0, transparent 28%), linear-gradient(135deg, #92400e 0%, #d97706 48%, #ef4444 100%);
}

.page-hero h1 {
    max-width: 820px;
    margin: 16px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

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

.filter-panel {
    grid-template-columns: minmax(0, 1fr) 170px 150px 150px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid #fde68a;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 34px rgba(146, 64, 14, 0.08);
}

.detail-wrap {
    padding: 36px 0 76px;
}

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

.breadcrumbs a {
    color: var(--brand-dark);
    font-weight: 800;
}

.player-shell {
    overflow: hidden;
    margin-bottom: 24px;
    background: #111827;
}

.player-area {
    position: relative;
    overflow: hidden;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(17, 24, 39, 0.18);
    z-index: 3;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.detail-card {
    padding: clamp(22px, 4vw, 38px);
    margin-bottom: 28px;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-meta span,
.card-meta-list span {
    color: var(--brand-dark);
    background: #fef3c7;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18);
}

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

.detail-text h2 {
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-size: 24px;
}

.detail-text p {
    margin: 0 0 18px;
    color: #374151;
}

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

.tags span {
    display: inline-flex;
    align-items: center;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
}

.empty-state {
    display: none;
    padding: 34px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed #f59e0b;
    border-radius: 24px;
    background: #fffbeb;
}

.site-footer {
    border-top: 1px solid #fde68a;
    background: #ffffff;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    padding: 38px 0;
}

.footer-inner p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-links a {
    color: var(--brand-dark);
    font-weight: 800;
}

@media (max-width: 980px) {
    .hero-inner,
    .rank-layout,
    .detail-copy,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        gap: 32px;
    }

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

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

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

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

@media (max-width: 720px) {
    .header-inner {
        min-height: 64px;
    }

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

    .nav-toggle {
        display: inline-flex;
    }

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

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

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

    .hero-inner {
        padding-top: 82px;
    }

    .hero-title {
        font-size: 42px;
    }

    .search-strip form,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 54px 0;
    }

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

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

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

    .rank-row-cover img {
        width: 60px;
        height: 50px;
    }

    .play-button {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}

@media (min-width: 721px) and (max-width: 980px) {
    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
