:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 14px 40px rgba(17, 24, 39, 0.10);
    --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.24);
}

.logo-text {
    font-size: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    font-size: 15px;
    font-weight: 650;
    color: var(--gray-700);
}

.nav-link {
    position: relative;
    padding: 22px 0;
    transition: color 0.22s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 15px;
    height: 2px;
    border-radius: 2px;
    background: var(--amber-600);
    transition: right 0.22s ease;
}

.nav-link:hover {
    color: var(--amber-600);
}

.nav-link:hover::after {
    right: 0;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--gray-700);
    background: var(--amber-50);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 8px 16px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--gray-200);
}

.mobile-nav a {
    display: block;
    padding: 11px 16px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 650;
}

.mobile-nav a:hover {
    color: var(--amber-600);
    background: var(--amber-50);
}

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

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-50) 46%, var(--amber-50));
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(28px);
    opacity: 0.34;
    mix-blend-mode: multiply;
    animation: blobMove 9s ease-in-out infinite alternate;
}

.hero::before {
    top: 70px;
    left: 6%;
    background: #fbbf24;
}

.hero::after {
    right: 5%;
    bottom: -80px;
    background: #fb923c;
    animation-delay: 1.5s;
}

.hero-layout {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 56px;
    padding: 56px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--amber-600);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600), #92400e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--gray-600);
    font-size: 19px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.25);
}

.btn-secondary {
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(217, 119, 6, 0.22);
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 610px;
    margin-top: 28px;
    padding: 8px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.80);
    box-shadow: var(--shadow-soft);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: var(--gray-800);
    background: transparent;
}

.hero-search a {
    height: 44px;
    padding: 0 18px;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-chips a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(245, 158, 11, 0.22);
    transition: color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.hero-chips a:hover {
    color: var(--amber-700);
    background: var(--white);
    transform: translateY(-2px);
}

.hero-carousel {
    position: relative;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.hero-slide {
    display: none;
    min-height: 480px;
    position: relative;
}

.hero-slide.is-active {
    display: block;
}

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

.hero-slide-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.86));
}

.hero-slide-content h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.hero-slide-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-slide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hero-slide-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.82);
    font-size: 12px;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    right: 18px;
    top: 18px;
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 28px;
    background: var(--white);
}

.section {
    padding: 76px 0;
}

.section-soft {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.compact-heading {
    margin-bottom: 26px;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p:not(.eyebrow) {
    margin: 14px 0 0;
    color: var(--gray-600);
    font-size: 17px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.14);
}

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

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0);
    transition: background 0.24s ease;
}

.movie-card:hover .poster-link::after {
    background: rgba(17, 24, 39, 0.38);
}

.year-badge,
.region-badge,
.rank-badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(245, 158, 11, 0.93);
    font-size: 12px;
    font-weight: 800;
}

.play-badge {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-body h2 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.35;
}

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

.movie-meta {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-one-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    margin: 8px 0 0;
    color: var(--gray-600);
    font-size: 13px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag-list span {
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-50);
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    display: block;
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--white), var(--amber-50));
    border: 1px solid rgba(245, 158, 11, 0.24);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h2 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--gray-600);
}

.category-card span {
    display: inline-flex;
    margin-top: 18px;
    color: var(--amber-700);
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 92px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.rank-number {
    color: var(--amber-600);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: var(--amber-50);
}

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

.rank-info h2 {
    margin: 0 0 6px;
    color: var(--gray-900);
    font-size: 20px;
}

.rank-info h2 a:hover {
    color: var(--amber-600);
}

.rank-info p {
    margin: 0;
    color: var(--gray-600);
}

.rank-score {
    min-width: 86px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-50);
    text-align: center;
    font-weight: 900;
}

.filter-section {
    background: var(--white);
}

.filter-box {
    display: grid;
    grid-template-columns: 1fr 170px 160px 150px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 12px;
    border-radius: 22px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

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

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

.empty-message {
    display: none;
    margin: 28px 0 0;
    padding: 18px;
    border-radius: 16px;
    color: var(--gray-600);
    background: var(--gray-50);
    text-align: center;
}

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

.breadcrumb {
    padding: 24px 0 0;
    color: var(--gray-500);
    font-size: 14px;
}

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

.detail-hero {
    padding: 38px 0 72px;
    background: linear-gradient(135deg, var(--amber-50), var(--white));
}

.detail-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 36px;
    align-items: start;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    background: var(--amber-50);
}

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

.detail-content h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-200);
    font-weight: 750;
}

.detail-lead {
    margin: 0 0 24px;
    color: var(--gray-600);
    font-size: 18px;
}

.player-section {
    padding: 72px 0;
    background: var(--gray-900);
}

.player-heading {
    margin-bottom: 24px;
    color: var(--white);
}

.player-heading h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.player-heading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    color: var(--white);
    background: #000000;
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    filter: saturate(1.05);
}

.player-cover span {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
    font-size: 30px;
}

.detail-body {
    padding: 72px 0;
    background: var(--white);
}

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

.content-card {
    padding: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.content-card + .content-card {
    margin-top: 22px;
}

.content-card h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 24px;
}

.content-card p {
    margin: 0 0 12px;
    color: var(--gray-700);
}

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

.side-link {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: background 0.22s ease, transform 0.22s ease;
}

.side-link:hover {
    background: var(--amber-50);
    transform: translateX(3px);
}

.side-link img {
    width: 68px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.side-link strong {
    display: block;
    color: var(--gray-900);
    line-height: 1.35;
}

.side-link span {
    display: block;
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid rgba(245, 158, 11, 0.20);
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-logo {
    margin-bottom: 14px;
}

.footer-copy {
    max-width: 420px;
    margin: 0;
    color: var(--gray-600);
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: 18px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    padding: 18px 0;
    color: var(--gray-600);
    border-top: 1px solid rgba(245, 158, 11, 0.18);
    text-align: center;
}

@keyframes blobMove {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(26px, -18px, 0) scale(1.08);
    }
}

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 12px;
        font-size: 14px;
    }

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

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-layout {
        gap: 30px;
    }

    .hero-slide,
    .hero-slide img {
        min-height: 390px;
        height: 390px;
    }

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

    .rank-item {
        grid-template-columns: 42px 72px 1fr;
    }

    .rank-score {
        grid-column: 2 / 4;
        width: fit-content;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .logo-text {
        font-size: 20px;
    }

    .hero {
        min-height: auto;
    }

    .hero-layout {
        min-height: auto;
        padding: 42px 0;
    }

    .hero-search,
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        border-radius: 24px;
    }

    .hero-search a {
        width: 100%;
    }

    .section {
        padding: 54px 0;
    }

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

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

    .movie-one-line,
    .tag-list {
        display: none;
    }

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

    .detail-cover {
        max-width: 280px;
    }

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