* {
    box-sizing: border-box;
}

:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(245, 158, 11, 0.22);
    --amber: #f59e0b;
    --orange: #f97316;
    --yellow: #eab308;
    --red: #ef4444;
    --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
    --soft-shadow: 0 12px 30px rgba(120, 53, 15, 0.12);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #fffbeb 46%, #ffffff 100%);
}

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

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

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.9);
    backdrop-filter: blur(16px);
}

.nav-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 26px;
    color: white;
    background: linear-gradient(135deg, #facc15, #f59e0b, #f97316);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
}

.brand-copy strong {
    display: block;
    font-size: 22px;
    line-height: 1.15;
    background: linear-gradient(90deg, #d97706, #ea580c, #ca8a04);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex: 1;
}

.desktop-nav a,
.mobile-nav a {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #d97706;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.16);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #92400e;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.12);
}

.mobile-nav.open {
    display: grid;
}

main {
    overflow: hidden;
}

.hero-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

.hero-stage {
    position: relative;
    min-height: 610px;
    border-radius: 34px;
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.08) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 43%, rgba(17, 24, 39, 0.16) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.76) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, 86%);
    padding: 76px;
    color: white;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    padding: 8px 14px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(120, 53, 15, 0.42);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

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

.primary-button {
    color: white;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.28);
}

.ghost-button {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

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

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

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 18px 0;
}

.hero-dot {
    width: 28px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.25);
    cursor: pointer;
}

.hero-dot.active {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.hero-search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -18px auto 0;
    width: min(1180px, calc(100% - 36px));
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    position: relative;
    z-index: 4;
}

.hero-search-panel strong {
    display: block;
    font-size: 20px;
}

.hero-search-panel span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.hero-search {
    display: flex;
    flex: 1;
    max-width: 520px;
    gap: 10px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 14px 18px;
    outline: 0;
    background: white;
}

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

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    font-weight: 800;
    cursor: pointer;
}

.content-section,
.filter-panel,
.detail-layout,
.page-hero {
    max-width: 1440px;
    margin: 0 auto;
    padding: 46px 24px;
}

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

.section-heading div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 30px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.section-more {
    color: #d97706;
    font-weight: 800;
}

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

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 24px;
    background: white;
    box-shadow: 0 12px 26px rgba(120, 53, 15, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(120, 53, 15, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.movie-card.compact .poster-link {
    aspect-ratio: 3 / 4;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 52%);
}

.type-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.type-badge {
    top: 12px;
    left: 12px;
    background: rgba(239, 68, 68, 0.92);
}

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

.rank-badge {
    bottom: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.movie-card-body {
    padding: 16px;
}

.movie-title {
    display: -webkit-box;
    min-height: 2.8em;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: #d97706;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 10px 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
}

.meta-line span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-row {
    margin-top: 12px;
}

.feature-band,
.soft-panel {
    margin-top: 34px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.86), rgba(255, 237, 213, 0.86));
}

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

.category-pill,
.category-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 24px;
    background: white;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-pill {
    padding: 24px;
}

.category-pill strong,
.category-card strong {
    display: block;
    color: #92400e;
    font-size: 22px;
}

.category-pill span,
.category-card p {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.category-pill:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.page-hero {
    padding-top: 54px;
    padding-bottom: 28px;
}

.small-hero > div {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    border-radius: 34px;
    color: white;
    background:
        linear-gradient(135deg, rgba(120, 53, 15, 0.94), rgba(249, 115, 22, 0.76)),
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.38), transparent 34rem);
    box-shadow: var(--shadow);
}

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

.category-card {
    min-height: 260px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.category-card > span {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.16));
}

.category-card div {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 24px;
}

.category-card strong {
    color: white;
}

.category-card p {
    color: rgba(255, 255, 255, 0.82);
}

.filter-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 18px;
}

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

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #92400e;
    font-weight: 800;
}

.detail-hero {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: 28px;
    align-items: center;
}

.detail-player-card,
.detail-info,
.detail-article,
.detail-side {
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.detail-player-card {
    overflow: hidden;
    background: #111827;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #020617;
    cursor: pointer;
}

.play-trigger {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: white;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.1));
    cursor: pointer;
}

.play-trigger span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    font-size: 38px;
    transition: transform 0.2s ease;
}

.play-trigger:hover span {
    transform: scale(1.08);
}

.play-trigger.is-hidden {
    display: none;
}

.detail-info {
    padding: 32px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(120, 53, 15, 0.82)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.36), transparent 26rem);
    color: white;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fde68a;
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 60px);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    padding-top: 12px;
}

.detail-article,
.detail-side {
    padding: 30px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    color: #92400e;
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.info-table div {
    padding: 16px;
    border-radius: 18px;
    background: #fffbeb;
}

.info-table dt {
    color: #b45309;
    font-weight: 800;
}

.info-table dd {
    margin: 8px 0 0;
    color: #374151;
}

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

.side-list a {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fffbeb;
    transition: transform 0.2s ease, background 0.2s ease;
}

.side-list a:hover {
    transform: translateX(4px);
    background: #fef3c7;
}

.side-list img {
    width: 78px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

.side-list strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-list small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.site-footer {
    margin-top: 48px;
    background: #111827;
    color: white;
}

.footer-grid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 46px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    color: #fde68a;
    font-size: 24px;
}

.site-footer p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fde68a;
    font-size: 18px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
    color: #fbbf24;
}

.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.58);
}

[data-movie-card].is-hidden {
    display: none;
}

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

    .mobile-menu-button {
        display: block;
    }

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

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

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

@media (max-width: 820px) {
    .nav-shell {
        padding: 12px 16px;
    }

    .hero-section,
    .content-section,
    .filter-panel,
    .detail-layout,
    .page-hero,
    .detail-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-stage {
        min-height: 560px;
        border-radius: 26px;
    }

    .hero-content {
        width: 100%;
        padding: 42px 28px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-search-panel,
    .hero-search,
    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search-panel {
        width: calc(100% - 24px);
    }

    .movie-grid.six-col,
    .movie-grid.five-col,
    .movie-grid.four-col,
    .category-strip,
    .category-grid,
    .filter-panel,
    .filter-panel.search-wide,
    .footer-grid,
    .info-table {
        grid-template-columns: 1fr 1fr;
    }

    .small-hero > div,
    .detail-info,
    .detail-article,
    .detail-side {
        padding: 24px;
        border-radius: 24px;
    }

    .detail-tags span {
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-stage {
        min-height: 620px;
    }

    .movie-grid.six-col,
    .movie-grid.five-col,
    .movie-grid.four-col,
    .category-strip,
    .category-grid,
    .filter-panel,
    .filter-panel.search-wide,
    .footer-grid,
    .info-table {
        grid-template-columns: 1fr;
    }

    .movie-card {
        border-radius: 20px;
    }

    .poster-link {
        aspect-ratio: 16 / 21;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }
}
