:root {
    --amber: #d97706;
    --amber-dark: #b45309;
    --amber-soft: #fef3c7;
    --orange-soft: #ffedd5;
    --gray-950: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-200: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.9);
    border-bottom: 1px solid rgba(217, 119, 6, 0.15);
    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;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-950);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber) 0%, #ea580c 100%);
    box-shadow: 0 10px 28px rgba(217, 119, 6, 0.32);
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 700;
    transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #92400e;
    background: var(--amber-soft);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--amber-soft);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--amber-dark);
    border-radius: 99px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #111827;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-slide img {
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1180px, calc(100% - 48px));
    transform: translate(-50%, -50%);
    color: var(--white);
}

.hero-content h1 {
    max-width: 760px;
    margin: 12px 0 16px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.28);
    font-weight: 800;
}

.hero-meta,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-weight: 800;
    font-size: 14px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 0 28px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber) 0%, #ea580c 100%);
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.34);
}

.ghost-btn {
    padding: 0 22px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.card-action:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.48);
    font-size: 34px;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.main-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

.page-shell {
    padding-top: 42px;
}

.page-title-block {
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
    box-shadow: var(--shadow);
}

.page-title-block h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.page-title-block p {
    max-width: 820px;
    margin: 0;
    color: var(--gray-700);
    line-height: 1.85;
    font-size: 17px;
}

.filter-panel,
.content-section,
.category-strip,
.detail-content,
.player-section {
    margin-bottom: 48px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    align-items: center;
    gap: 20px;
    padding: 26px;
}

.filter-panel h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.filter-panel p {
    margin: 0;
    color: var(--gray-600);
}

.filter-fields {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 12px;
}

.filter-fields input,
.filter-fields select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    color: var(--gray-800);
    background: #fffaf0;
    font: inherit;
    outline: none;
}

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

.content-section,
.category-strip,
.player-section {
    padding: 30px;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.7;
}

.section-heading a {
    flex: 0 0 auto;
    color: var(--amber-dark);
    font-weight: 900;
}

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

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

.all-grid {
    align-items: stretch;
}

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(17, 24, 39, 0.16);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #451a03 0%, #f59e0b 100%);
}

.poster-frame img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

.score-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.score-pill {
    right: 12px;
    top: 12px;
    min-width: 48px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    color: #78350f;
    background: #fef3c7;
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.35);
}

.movie-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 700;
}

.movie-body h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 900;
}

.compact-card .movie-body h3 {
    font-size: 18px;
}

.movie-body p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.72;
    font-size: 14px;
}

.card-action {
    margin-top: auto;
    color: var(--amber-dark);
    background: var(--amber-soft);
}

.hot-section {
    background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
}

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

.category-chip,
.category-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 132px;
    padding: 20px;
    border-radius: 22px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(217, 119, 6, 0.16);
}

.category-chip strong,
.category-card h2 {
    color: #7c2d12;
    font-size: 20px;
    font-weight: 900;
}

.category-chip span,
.category-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 14px;
}

.category-card-links {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.category-card-links a {
    color: var(--amber-dark);
    font-weight: 700;
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--gray-600);
    font-weight: 700;
}

.breadcrumb a {
    color: var(--amber-dark);
}

.detail-shell {
    max-width: 1180px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    margin-bottom: 48px;
    padding: 34px;
    border-radius: 34px;
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.68), transparent 38%), linear-gradient(135deg, #111827 0%, #451a03 100%);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.detail-cover img {
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.detail-info h1 {
    margin: 14px 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.detail-info p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.85;
    font-size: 17px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.68) 100%);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #7c2d12;
    background: #fef3c7;
    font-size: 30px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.detail-content {
    padding: 34px;
}

.detail-content h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 900;
}

.detail-content h2:not(:first-child) {
    margin-top: 28px;
}

.detail-content p {
    margin: 0;
    color: var(--gray-700);
    line-height: 2;
    font-size: 17px;
}

.site-footer {
    margin-top: 30px;
    padding: 42px 24px;
    color: #fef3c7;
    background: #111827;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

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

.footer-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .cards-grid,
    .compact-grid,
    .rank-grid,
    .category-chip-grid,
    .category-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-hero {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 820px) {
    .mobile-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 20px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        text-align: center;
    }

    .hero {
        height: 78vh;
    }

    .hero-content {
        width: calc(100% - 34px);
    }

    .hero-content h1 {
        font-size: clamp(34px, 12vw, 54px);
    }

    .hero-arrow {
        display: none;
    }

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

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

    .cards-grid,
    .compact-grid,
    .rank-grid,
    .category-chip-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .detail-cover img {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .main-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero-content p {
        font-size: 16px;
    }

    .hero-meta,
    .detail-meta,
    .hero-tags {
        gap: 8px;
    }

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

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .cards-grid,
    .compact-grid,
    .rank-grid,
    .category-chip-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .content-section,
    .category-strip,
    .player-section,
    .detail-content,
    .page-title-block,
    .detail-hero {
        border-radius: 22px;
        padding: 22px;
    }
}
