:root {
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-900: #78350f;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
    --deep-shadow: 0 28px 65px rgba(120, 53, 15, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    border-bottom: 1px solid rgba(254, 215, 170, 0.8);
    box-shadow: 0 6px 20px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(12px);
}

.nav-shell {
    width: min(1240px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, #fb923c, #d97706);
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.brand-copy,
.footer-brand div {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 1.45rem;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--orange-600), var(--amber-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small,
.footer-brand small {
    color: var(--muted);
    font-size: 0.76rem;
}

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

.nav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange-600);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: var(--white);
    border: 1px solid var(--orange-200);
    border-radius: 999px;
}

.nav-search input {
    width: 220px;
    min-width: 0;
    padding: 9px 12px 9px 16px;
    border: 0;
    outline: 0;
    background: transparent;
}

.nav-search button,
.primary-button,
.secondary-button,
.card-actions a,
.hero-search button,
.filter-chips button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.nav-search button,
.primary-button,
.hero-search button {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.nav-search button {
    padding: 9px 18px;
}

.menu-button {
    display: none;
    padding: 8px 12px;
    color: var(--orange-600);
    background: var(--white);
    border: 1px solid var(--orange-200);
    border-radius: 12px;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(120deg, #fb923c 0%, #f59e0b 48%, #f97316 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    animation: pulse 3.8s ease-in-out infinite;
}

.hero::before {
    left: 7%;
    top: 14%;
}

.hero::after {
    right: 8%;
    bottom: 7%;
    width: 360px;
    height: 360px;
    animation-delay: 0.7s;
}

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

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

.hero-slide-shell {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 46px;
    align-items: center;
    color: var(--white);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 16px;
    color: var(--amber-900);
    background: rgba(255, 251, 235, 0.86);
    border-radius: 999px;
    font-weight: 900;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(3.2rem, 8vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero h1 span {
    display: block;
    color: #fff7d6;
}

.hero p {
    max-width: 680px;
    margin: 0 0 28px;
    color: var(--amber-50);
    font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
}

.hero-meta span,
.movie-meta span,
.info-chip,
.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-meta span {
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.84);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button:hover,
.secondary-button:hover,
.movie-card:hover {
    transform: translateY(-4px);
}

.secondary-button {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.08);
}

.secondary-button:hover {
    color: var(--orange-600);
    background: var(--white);
}

.hero-search {
    display: flex;
    width: min(560px, 100%);
    padding: 6px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
}

.hero-search button {
    padding: 0 24px;
}

.hero-poster {
    position: relative;
    min-height: 520px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 32px;
    box-shadow: var(--deep-shadow);
    backdrop-filter: blur(12px);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(120, 53, 15, 0.28);
}

.hero-poster-caption {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    padding: 18px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
    border-radius: 18px;
}

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

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

.hero-dots button.active {
    background: var(--white);
}

.section,
.page-hero,
.detail-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 68px 0;
}

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

.section-kicker,
.breadcrumb {
    color: var(--orange-600);
    font-weight: 900;
}

.section h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: var(--text);
    line-height: 1.18;
}

.section h2,
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-desc,
.page-hero p,
.detail-title p {
    max-width: 760px;
    color: var(--muted);
}

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

.feature-card,
.category-card,
.movie-card,
.rank-row,
.info-panel,
.player-panel,
.detail-content,
.related-panel,
.filter-panel {
    background: var(--white);
    border: 1px solid rgba(254, 215, 170, 0.75);
    box-shadow: var(--shadow);
}

.feature-card,
.category-card,
.info-panel,
.detail-content,
.related-panel,
.filter-panel {
    border-radius: 26px;
}

.feature-card {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon,
.category-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
    border-radius: 18px;
    font-weight: 900;
}

.feature-card h3,
.category-card h2 {
    margin: 0 0 8px;
}

.feature-card p,
.category-card p,
.movie-card p,
.rank-row p,
.detail-content p,
.related-panel p {
    color: var(--muted);
}

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

.category-card {
    display: block;
    min-height: 220px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card strong {
    color: var(--orange-600);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: var(--deep-shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

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

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

.score-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    padding: 5px 10px;
    color: var(--white);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.score-badge {
    right: 12px;
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
}

.rank-badge {
    left: 12px;
    background: rgba(31, 41, 55, 0.78);
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.7em;
    margin-bottom: 8px;
    color: #111827;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--orange-600);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.movie-meta span,
.info-chip,
.tag-chip {
    color: #92400e;
    background: var(--amber-100);
}

.movie-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 4.8em;
    margin: 0 0 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

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

.card-actions a {
    padding: 7px 11px;
    color: var(--orange-600);
    background: var(--orange-50);
    font-size: 0.84rem;
    font-weight: 800;
}

.card-actions a:first-child {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
}

.band {
    background: linear-gradient(90deg, var(--amber-100), var(--orange-100));
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 86px minmax(0, 1fr) 112px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
}

.rank-number {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
    border-radius: 16px;
    font-weight: 900;
}

.rank-row img {
    width: 86px;
    height: 112px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-row h2,
.rank-row h3 {
    margin: 0 0 8px;
}

.rank-score {
    color: var(--orange-600);
    font-size: 1.6rem;
    font-weight: 900;
    text-align: right;
}

.page-hero {
    align-items: flex-start;
    padding: 54px 0 26px;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 20px;
}

.filter-search {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--orange-600);
    font-weight: 900;
}

.filter-search input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--orange-200);
    border-radius: 18px;
    outline: 0;
}

.filter-search input:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chips button {
    padding: 9px 14px;
    color: #92400e;
    background: var(--amber-100);
    font-weight: 800;
}

.filter-chips button.active,
.filter-chips button:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
}

.empty-filter {
    display: none;
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.detail-wrap {
    padding: 34px 0 68px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 30px;
}

.detail-poster {
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
    border-radius: 30px;
    box-shadow: var(--deep-shadow);
}

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

.info-panel {
    padding: 30px;
}

.detail-title h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.info-chips,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.player-panel {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    background: #111827;
    border-radius: 30px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
}

.player-overlay-inner {
    display: grid;
    gap: 14px;
    justify-items: center;
    padding: 24px;
    text-align: center;
}

.play-button {
    display: inline-grid;
    width: 86px;
    height: 86px;
    place-items: center;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    font-size: 2.1rem;
}

.player-panel.playing .player-overlay {
    display: none;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.detail-content,
.related-panel {
    padding: 28px;
}

.detail-content h2,
.related-panel h2 {
    margin: 0 0 16px;
    color: #111827;
}

.detail-content p {
    margin: 0 0 18px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.related-item strong {
    display: block;
    margin-bottom: 6px;
}

.related-item span {
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer {
    color: var(--amber-50);
    background: linear-gradient(135deg, #78350f, #9a3412);
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    padding: 48px 0;
}

.footer-mark {
    color: var(--orange-600);
    background: var(--amber-50);
}

.site-footer p,
.site-footer a,
.site-footer small {
    color: var(--amber-100);
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.site-footer a {
    display: block;
    margin-bottom: 9px;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 18px;
    color: var(--amber-200);
    text-align: center;
    border-top: 1px solid rgba(253, 230, 138, 0.24);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.84;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.42;
    }
}

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

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

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

    .hero-slide-shell {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 860px) {
    .nav-shell {
        flex-wrap: wrap;
        min-height: 70px;
    }

    .menu-button {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 16px;
    }

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

    .nav-search {
        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }

    .hero,
    .hero-slide-shell {
        min-height: 760px;
    }

    .hero-slide-shell,
    .detail-hero,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: 360px;
    }

    .hero-poster img {
        min-height: 330px;
    }

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

    .section-head,
    .page-hero {
        display: block;
    }

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

    .rank-score {
        grid-column: 3;
        text-align: left;
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .movie-grid,
    .category-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .section {
        padding: 44px 0;
    }

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

    .movie-meta span,
    .info-chip,
    .tag-chip {
        font-size: 0.74rem;
    }

    .card-actions {
        display: none;
    }

    .hero h1 {
        letter-spacing: -0.04em;
    }

    .hero-actions,
    .hero-search {
        width: 100%;
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search button {
        width: 100%;
        min-height: 46px;
    }

    .page-hero {
        padding-top: 34px;
    }

    .detail-wrap {
        padding-top: 24px;
    }

    .info-panel,
    .detail-content,
    .related-panel,
    .filter-panel {
        padding: 20px;
    }
}

.category-samples {
    display: grid;
    gap: 6px;
    margin: 14px 0;
}

.category-samples a {
    color: var(--muted);
    font-size: 0.92rem;
}

.category-samples a:hover {
    color: var(--orange-600);
}

.info-panel .secondary-button,
.related-panel .secondary-button,
.detail-content .secondary-button {
    color: var(--orange-600);
    border-color: var(--orange-200);
    background: var(--orange-50);
}

.info-panel .secondary-button:hover,
.related-panel .secondary-button:hover,
.detail-content .secondary-button:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
}
