:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-50: #fff7ed;
    --orange-600: #ea580c;
    --brown-900: #431407;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 20px 40px rgba(146, 64, 14, 0.16);
    --shadow-heavy: 0 30px 70px rgba(17, 24, 39, 0.26);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--amber-50) 0%, var(--orange-50) 52%, #fef9c3 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(146, 64, 14, 0.08);
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 78px;
}

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

.brand-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #facc15, var(--amber-500), #f97316);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
    font-size: 26px;
    transition: transform 220ms ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600), #ca8a04);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    display: block;
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-item {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--amber-700);
    background: var(--amber-100);
    transform: translateY(-1px);
}

.top-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    min-width: 280px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
}

.top-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 11px 14px;
    background: transparent;
    color: var(--gray-800);
}

.top-search button,
.primary-btn,
.secondary-btn {
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 800;
}

.top-search button {
    align-self: stretch;
    padding: 0 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 8px 11px;
    color: var(--gray-800);
    background: var(--amber-100);
}

.hero {
    position: relative;
    min-height: 640px;
    height: 74vh;
    overflow: hidden;
    background: var(--gray-900);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
    gap: 38px;
    height: 100%;
    padding-top: 78px;
    padding-bottom: 56px;
}

.hero-copy {
    max-width: 760px;
    color: var(--white);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
    font-size: 14px;
    font-weight: 800;
}

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

.hero-copy p {
    margin: 0 0 24px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 22px;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 18px 32px rgba(217, 119, 6, 0.28);
}

.secondary-btn {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 44px rgba(217, 119, 6, 0.26);
}

.hero-side {
    align-self: center;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-heavy);
}

.hero-side h2 {
    margin: 0 0 18px;
    color: var(--white);
    font-size: 22px;
}

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

.hero-mini {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.hero-mini img {
    width: 70px;
    height: 86px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.hero-mini strong {
    display: block;
    margin-bottom: 5px;
    line-height: 1.3;
}

.hero-mini span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(245, 158, 11, 0.88);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
    width: 34px;
    border-radius: 999px;
    background: var(--amber-500);
}

.section {
    padding: 72px 0;
}

.section-soft {
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.92), rgba(255, 237, 213, 0.92));
    box-shadow: 0 20px 60px rgba(217, 119, 6, 0.1);
}

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

.section-title h2,
.section-title h1 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-title p {
    margin: 10px 0 0;
    max-width: 780px;
    color: var(--gray-500);
    line-height: 1.8;
}

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

.movie-grid-wide {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.movie-card {
    display: block;
    min-width: 0;
}

.movie-card article {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.1);
    transition: transform 220ms ease, box-shadow 220ms ease, border 220ms ease;
}

.movie-card:hover article {
    border-color: rgba(245, 158, 11, 0.36);
    box-shadow: var(--shadow);
    transform: translateY(-6px) scale(1.01);
}

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

.poster-wrap img,
.wide-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent);
}

.hot-mark,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 26px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-size: 12px;
    font-weight: 900;
}

.hot-mark {
    top: 12px;
    right: 12px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.movie-info,
.wide-body {
    padding: 16px;
}

.movie-info h3,
.wide-body h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-info p,
.wide-body p {
    margin: 0 0 12px;
    min-height: 44px;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta span {
    color: var(--amber-700);
    background: var(--amber-100);
}

.movie-card-wide article {
    display: grid;
    grid-template-columns: 132px 1fr;
}

.wide-cover {
    position: relative;
    min-height: 184px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.mini-tags {
    margin-top: 12px;
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 700;
}

.horizontal-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 360px);
    gap: 22px;
    overflow-x: auto;
    padding: 8px 4px 24px;
    scroll-snap-type: x proximity;
}

.horizontal-rail .movie-card {
    scroll-snap-align: start;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    border-radius: 28px;
    padding: 26px;
    color: var(--white);
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.96), rgba(245, 158, 11, 0.86));
    box-shadow: var(--shadow);
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.category-tile h2,
.category-tile h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 24px;
}

.category-tile p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(120px, 180px));
    gap: 14px;
    margin: 24px 0 30px;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 16px;
    outline: 0;
    padding: 12px 14px;
    color: var(--gray-800);
    background: var(--white);
}

.empty-state {
    display: none;
    margin: 30px 0 0;
    border-radius: 24px;
    padding: 28px;
    color: var(--gray-500);
    text-align: center;
    background: rgba(255, 255, 255, 0.76);
}

.empty-state.is-visible {
    display: block;
}

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

.page-hero {
    padding: 64px 0 36px;
}

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

.breadcrumb a {
    color: var(--amber-700);
    font-weight: 700;
}

.detail-shell {
    padding: 46px 0 72px;
}

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

.player-card,
.detail-panel,
.related-panel {
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

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

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

.player-trigger {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34));
    cursor: pointer;
    transition: opacity 180ms ease;
}

.player-trigger span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    font-size: 34px;
    line-height: 1;
    text-indent: 5px;
}

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

.player-info {
    padding: 26px;
}

.player-info h1 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.player-info p {
    margin: 0 0 18px;
    color: var(--gray-700);
    line-height: 1.9;
}

.detail-meta span {
    color: var(--amber-700);
    background: var(--amber-100);
}

.detail-panel {
    padding: 26px;
}

.detail-panel h2,
.related-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
    color: var(--gray-900);
}

.detail-panel p {
    margin: 0 0 18px;
    color: var(--gray-700);
    line-height: 2;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag-cloud span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-100);
    font-size: 13px;
    font-weight: 800;
}

.side-poster {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

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

.side-poster div {
    padding: 18px;
}

.side-poster h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.side-poster p {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.7;
}

.related-panel {
    margin-top: 28px;
    padding: 26px;
}

.ranking-list {
    display: grid;
    gap: 18px;
}

.site-footer {
    margin-top: 48px;
    color: var(--white);
    background: linear-gradient(90deg, #78350f, #7c2d12, #713f12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 28px;
    padding: 44px 0;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 8px 0;
    color: rgba(255, 237, 213, 0.84);
    line-height: 1.75;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 237, 213, 0.16);
    padding: 18px;
    color: rgba(255, 237, 213, 0.78);
    text-align: center;
}

@media (max-width: 1100px) {
    .top-search {
        display: none;
    }

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

    .hero-side {
        display: none;
    }
}

@media (max-width: 760px) {
    .nav-bar {
        flex-wrap: wrap;
        min-height: 68px;
        gap: 12px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .brand-text strong {
        font-size: 20px;
    }

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

    .nav-links {
        display: none;
        width: 100%;
        margin-left: 0;
        padding: 10px 0 6px;
    }

    .nav-links.is-open {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .hero-content {
        align-items: center;
        padding-top: 88px;
        padding-bottom: 64px;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding: 48px 0;
    }

    .section-head {
        display: block;
    }

    .section-actions {
        margin-top: 18px;
    }

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

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

    .movie-card-wide article {
        grid-template-columns: 112px 1fr;
    }

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

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