:root {
    --color-amber-900: #78350f;
    --color-amber-800: #92400e;
    --color-amber-700: #b45309;
    --color-amber-600: #d97706;
    --color-amber-500: #f59e0b;
    --color-orange-900: #7c2d12;
    --color-gray-950: #030712;
    --color-gray-900: #111827;
    --color-gray-800: #1f2937;
    --color-gray-700: #374151;
    --color-gray-600: #4b5563;
    --color-gray-500: #6b7280;
    --color-gray-400: #9ca3af;
    --color-gray-300: #d1d5db;
    --color-gray-200: #e5e7eb;
    --color-gray-100: #f3f4f6;
    --color-gray-50: #f9fafb;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 10px 24px rgba(15, 23, 42, 0.10);
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-gray-900);
    background: linear-gradient(180deg, var(--color-gray-50), var(--color-gray-100));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button,
input,
select {
    font: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-amber-900), var(--color-amber-800), var(--color-orange-900));
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.28);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    width: min(1180px, calc(100% - 32px));
    min-height: 64px;
    margin: 0 auto;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--color-amber-900);
    background: #fbbf24;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.20);
}

.brand-text {
    white-space: nowrap;
    font-size: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.nav-link {
    position: relative;
    flex: 0 0 auto;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fde68a;
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: #fbbf24;
    border-radius: 2px;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.nav-search input {
    width: 150px;
    color: #ffffff;
    background: transparent;
    border: 0;
    outline: 0;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.74);
}

.nav-search button,
.primary-btn,
.ghost-btn,
.small-btn,
.play-layer,
.filter-panel button {
    cursor: pointer;
    border: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.nav-search button {
    padding: 7px 14px;
    color: #78350f;
    background: #fbbf24;
    border-radius: 999px;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border: 0;
    border-radius: 12px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-panel a {
    display: block;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.88);
}

.mobile-panel.is-open {
    display: block;
}

main {
    min-height: 60vh;
}

.hero {
    position: relative;
    height: min(760px, 72vh);
    min-height: 540px;
    overflow: hidden;
    background: var(--color-gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(245, 158, 11, 0.22), transparent 32%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.24) 55%, rgba(0, 0, 0, 0.36));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - 1180px) / 2));
    right: max(24px, calc((100% - 1180px) / 2));
    bottom: 88px;
    max-width: 700px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    padding: 7px 12px;
    color: #fde68a;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(253, 230, 138, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.hero h1,
.hero h2 {
    margin: 18px 0 12px;
    font-size: clamp(38px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 21px);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    color: #fde68a;
    background: rgba(120, 53, 15, 0.58);
    border: 1px solid rgba(253, 230, 138, 0.22);
    border-radius: 999px;
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
}

.primary-btn {
    color: #78350f;
    background: #fbbf24;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
}

.primary-btn:hover,
.ghost-btn:hover,
.small-btn:hover,
.play-layer:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    transform: translateY(-50%);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    border: 0;
    border-radius: 999px;
}

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

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

.section-wrap {
    padding: 68px 0;
}

.section-stack {
    display: grid;
    gap: 72px;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--color-amber-600);
    font-weight: 800;
}

.section-head h1,
.section-head h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: var(--color-gray-900);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.section-head p,
.page-hero p,
.category-card p,
.movie-card p,
.wide-card p,
.detail-lead,
.content-box p {
    color: var(--color-gray-600);
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.movie-card,
.category-card,
.content-box,
.wide-card,
.rank-card,
.filter-panel,
.video-shell {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-amber-900), var(--color-gray-900));
}

.movie-cover img,
.wide-cover img,
.detail-poster img,
.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent);
    pointer-events: none;
}

.badge {
    position: absolute;
    z-index: 2;
    padding: 4px 8px;
    color: #ffffff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.badge-year {
    top: 10px;
    right: 10px;
    background: #f59e0b;
}

.badge-region {
    left: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.70);
}

.movie-body {
    padding: 16px;
}

.movie-body h2,
.wide-card h2,
.related-card h2,
.rank-card h2 {
    margin: 0 0 8px;
    color: var(--color-gray-900);
    font-size: 16px;
    line-height: 1.35;
}

.movie-body h2 a:hover,
.wide-card h2 a:hover,
.related-card h2 a:hover,
.rank-card h2 a:hover,
.text-link:hover {
    color: var(--color-amber-600);
}

.movie-meta,
.wide-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--color-gray-600);
    font-size: 13px;
}

.movie-meta span,
.wide-meta span,
.detail-meta span,
.rank-meta span {
    padding: 4px 8px;
    background: var(--color-gray-100);
    border-radius: 999px;
}

.movie-card p {
    margin: 0 0 12px;
    font-size: 14px;
}

.text-link {
    color: var(--color-amber-600);
    font-weight: 800;
}

.panel {
    padding: 34px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.category-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.16);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 18px;
}

.category-card ul {
    display: grid;
    gap: 6px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
    color: var(--color-gray-600);
    font-size: 14px;
}

.wide-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 18px;
    padding: 12px;
    overflow: hidden;
}

.wide-cover {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: var(--color-gray-100);
}

.page-hero {
    padding: 60px 0 34px;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px 120px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: var(--color-gray-800);
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.filter-panel button,
.small-btn {
    color: #78350f;
    background: #fbbf24;
}

.search-empty {
    display: none;
    padding: 30px;
    color: var(--color-gray-600);
    text-align: center;
    background: #ffffff;
    border-radius: var(--radius-lg);
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 64px 96px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: #78350f;
    background: #fbbf24;
    border-radius: 16px;
    font-weight: 900;
}

.rank-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-gray-100);
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: blur(3px);
    transform: scale(1.04);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.96), rgba(17, 24, 39, 0.72), rgba(3, 7, 18, 0.48));
}

.detail-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 42px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 62px 0;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
    color: #ffffff;
}

.detail-lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.detail-info .detail-meta span {
    color: #fde68a;
    background: rgba(120, 53, 15, 0.44);
}

.player-section {
    padding-top: 52px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.24));
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-symbol {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    color: #78350f;
    background: #fbbf24;
    border-radius: 999px;
    box-shadow: 0 20px 52px rgba(245, 158, 11, 0.38);
    font-size: 34px;
    text-indent: 4px;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 30px;
    padding: 40px 0 72px;
}

.content-box {
    padding: 28px;
}

.content-box + .content-box {
    margin-top: 24px;
}

.content-box h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-box p {
    margin: 0;
    font-size: 16px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
}

.related-cover {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: var(--color-gray-100);
}

.site-footer {
    color: var(--color-gray-300);
    background: linear-gradient(180deg, var(--color-gray-900), #000000);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 30px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 16px;
}

.site-footer p {
    margin: 0;
    color: var(--color-gray-400);
    font-size: 14px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

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

.footer-bottom {
    margin-top: 30px;
    padding-top: 22px;
    color: var(--color-gray-500);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

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

    .nav-toggle {
        display: block;
    }

    .nav-search {
        margin-left: auto;
    }
}

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

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

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

    .detail-poster {
        width: min(300px, 70vw);
    }

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

@media (max-width: 680px) {
    .nav-inner {
        width: min(100% - 24px, 1180px);
        gap: 12px;
    }

    .brand-text {
        font-size: 17px;
    }

    .nav-search {
        display: none;
    }

    .hero {
        height: 72vh;
        min-height: 520px;
    }

    .hero-content {
        left: 18px;
        right: 18px;
        bottom: 72px;
    }

    .hero-control {
        display: none;
    }

    .section-wrap {
        padding: 46px 0;
    }

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

    .movie-grid,
    .feature-grid,
    .category-grid,
    .wide-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .movie-body {
        padding: 12px;
    }

    .movie-body p,
    .text-link {
        display: none;
    }

    .movie-meta {
        font-size: 12px;
    }

    .wide-card,
    .rank-card {
        grid-template-columns: 80px 1fr;
    }

    .rank-number,
    .rank-card .small-btn {
        display: none;
    }

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

    .detail-inner {
        padding: 42px 0;
    }

    .content-box {
        padding: 22px;
    }
}
