:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --amber: #d97706;
    --amber-dark: #92400e;
    --amber-soft: #fef3c7;
    --rose: #be123c;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.20), transparent 32rem),
        linear-gradient(180deg, #fffaf0 0%, var(--bg) 28rem, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 255, 255, 0.96), rgba(255, 251, 235, 0.94));
    border-bottom: 1px solid rgba(217, 119, 6, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(146, 64, 14, 0.08);
}

.nav-shell {
    max-width: 1220px;
    height: 78px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 24px;
    background: linear-gradient(135deg, #d97706, #78350f);
    box-shadow: 0 16px 28px rgba(217, 119, 6, 0.30);
}

.brand-text strong,
.footer-logo {
    display: block;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #92400e, #d97706, #f59e0b);
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: -3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #374151;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    position: relative;
    transition: color 0.25s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    transform: scaleX(0);
    background: linear-gradient(90deg, #f59e0b, #b45309);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--amber-dark);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    border: 0;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--amber-dark);
}

.mobile-nav {
    display: none;
    padding: 12px 22px 22px;
    border-top: 1px solid rgba(217, 119, 6, 0.12);
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    background: linear-gradient(135deg, #451a03 0%, #78350f 48%, #111827 100%);
    color: #fff;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(8px);
}

.hero::before {
    width: 32rem;
    height: 32rem;
    left: -12rem;
    top: -10rem;
    background: rgba(251, 191, 36, 0.28);
}

.hero::after {
    width: 28rem;
    height: 28rem;
    right: -8rem;
    bottom: -10rem;
    background: rgba(244, 63, 94, 0.22);
}

.hero-shell {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin: 0 auto;
    padding: 76px 22px 64px;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 54px;
    min-height: 520px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeRise 0.75s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid rgba(252, 211, 77, 0.42);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    max-width: 760px;
    margin: 24px 0 18px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

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

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

.btn-primary {
    color: #451a03;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    box-shadow: 0 18px 30px rgba(245, 158, 11, 0.28);
}

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

.hero-poster {
    position: relative;
    min-height: 460px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(15, 23, 42, 0.9));
    box-shadow: 0 38px 80px rgba(0, 0, 0, 0.36);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.2s ease;
}

.hero-poster:hover img {
    transform: scale(1.04);
}

.hero-poster img.is-missing,
.poster-image.is-missing {
    opacity: 0;
}

.poster-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.poster-overlay h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.poster-overlay p {
    margin: 0;
    font-size: 15px;
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.hero-dot {
    width: 36px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

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

.main-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: 46px 22px 74px;
}

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

.section-kicker {
    color: var(--amber);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-head h1,
.section-head h2,
.page-title h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 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(217, 119, 6, 0.34);
    box-shadow: var(--shadow);
}

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

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

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

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

.play-chip,
.rank-badge {
    position: absolute;
    color: #451a03;
    border-radius: 999px;
    font-weight: 900;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.20);
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 6px 12px;
    font-size: 13px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--amber-dark);
    font-size: 12px;
    font-weight: 800;
}

.card-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff7ed;
}

.card-body h2 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.32;
}

.card-body h2 a:hover {
    color: var(--amber-dark);
}

.card-body p {
    min-height: 50px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.tag-row span {
    padding: 4px 9px;
    color: #7c2d12;
    background: #fffbeb;
    border-radius: 999px;
    font-size: 12px;
}

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

.category-tile {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.category-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #fef3c7, #78350f);
}

.category-cover span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

.category-tile h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-samples a {
    padding: 6px 10px;
    color: var(--amber-dark);
    background: #fff7ed;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    margin: 24px 0 28px;
    padding: 16px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.search-panel input,
.search-panel select {
    width: 100%;
    height: 50px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 0 16px;
    outline: none;
    background: #fff;
}

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

.no-results {
    display: none;
    padding: 38px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed #fed7aa;
    border-radius: 24px;
    background: #fff7ed;
}

.no-results.is-visible {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    padding: 28px;
    border-radius: 32px;
    background: linear-gradient(135deg, #451a03, #111827);
    color: #fff;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fef3c7, #78350f);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.30);
}

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

.detail-info h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-info p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(252, 211, 77, 0.22);
    font-weight: 800;
}

.player-card {
    margin-top: 34px;
    border-radius: 30px;
    padding: 18px;
    background: #111827;
    box-shadow: var(--shadow);
}

.video-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #020617;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.58));
}

.play-overlay[hidden] {
    display: none;
}

.play-overlay span:last-child {
    padding: 8px 16px;
    border-radius: 999px;
    color: #451a03;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    font-weight: 900;
}

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 999px;
    color: #451a03;
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
    font-size: 34px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    margin-top: 34px;
}

.content-card,
.side-card {
    padding: 26px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    color: #4b5563;
    margin: 0 0 16px;
}

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

.side-list a {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 18px;
    background: #fff7ed;
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.side-list img {
    width: 74px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #fef3c7, #78350f);
}

.side-list strong {
    display: block;
    line-height: 1.3;
}

.side-list small {
    color: var(--muted);
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    max-width: 1220px;
    margin: 0 auto;
    padding: 48px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 34px;
}

.site-footer p {
    max-width: 620px;
    color: #9ca3af;
}

.site-footer h2 {
    color: #fbbf24;
    font-size: 18px;
}

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

.footer-links a {
    padding: 7px 12px;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.footer-links a:hover {
    color: #fff;
    background: rgba(245, 158, 11, 0.22);
}

.footer-bottom {
    max-width: 1220px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .brand-text small {
        display: none;
    }

    .nav-shell {
        height: 68px;
    }

    .hero-shell {
        padding-top: 44px;
    }

    .hero-slide {
        min-height: auto;
        gap: 30px;
    }

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

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

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

    .category-tile {
        grid-template-columns: 118px minmax(0, 1fr);
    }

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

    .detail-hero {
        padding: 18px;
        border-radius: 24px;
    }

    .player-card {
        padding: 8px;
        border-radius: 22px;
    }

    .video-stage {
        border-radius: 16px;
    }
}

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

    .card-body {
        padding: 12px;
    }

    .card-body h2 {
        font-size: 16px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

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