:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --yellow-100: #fef9c3;
    --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 20px 50px rgba(31, 41, 55, 0.15);
    --soft-shadow: 0 12px 30px rgba(217, 119, 6, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--amber-600));
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.25);
    transition: transform 0.25s ease;
}

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

.brand-name {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 700;
}

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

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: rgba(255, 255, 255, 0.9);
    transition: transform 0.25s ease;
}

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

.header-search,
.mobile-search {
    position: relative;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gray-800);
    padding: 12px 46px 12px 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.header-search input {
    width: 250px;
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: var(--amber-600);
    background: var(--white);
    font-size: 22px;
    line-height: 1;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    color: var(--white);
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    font-weight: 700;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000;
}

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

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    max-width: 1180px;
}

.eyebrow,
.eyebrow-dark {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.eyebrow {
    background: rgba(245, 158, 11, 0.92);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
}

.eyebrow-dark {
    background: var(--amber-100);
    color: var(--amber-600);
}

.hero h1 {
    margin: 18px 0 8px;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3.4vw, 40px);
    line-height: 1.12;
    color: rgba(255, 255, 255, 0.94);
}

.hero p {
    max-width: 660px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 1.8vw, 20px);
}

.hero-tags,
.tag-list,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-list span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    backdrop-filter: blur(10px);
}

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

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

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

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

.btn-soft {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 44px;
    line-height: 48px;
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 36px;
    background: var(--white);
}

.section {
    padding: 72px 0;
}

.section-warm {
    background: linear-gradient(90deg, var(--amber-100), #ffedd5);
}

.feature-section {
    background: rgba(255, 255, 255, 0.55);
}

.ranking-section {
    background: linear-gradient(135deg, #ffedd5, var(--amber-100), #fef08a);
}

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

.section-heading.centered {
    justify-content: center;
    text-align: center;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    color: var(--gray-800);
}

.section-heading a {
    color: var(--amber-600);
    font-weight: 800;
}

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

.category-card,
.overview-card,
.movie-card,
.detail-card,
.poster-card,
.side-card,
.rank-list {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

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

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

.category-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--amber-100), #fed7aa);
    font-size: 24px;
}

.category-card strong {
    font-size: 21px;
    margin-bottom: 8px;
}

.category-card p,
.overview-card p,
.movie-card p,
.site-footer p,
.detail-card p {
    color: var(--gray-600);
}

.category-samples,
.overview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.category-samples a,
.overview-links a {
    color: var(--amber-600);
    font-size: 13px;
    font-weight: 700;
}

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

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

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

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.play-chip {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.36);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 900;
    color: var(--white);
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0 0 10px;
    color: var(--gray-800);
    font-size: 20px;
    line-height: 1.25;
}

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

.movie-card p {
    min-height: 48px;
    margin: 0 0 14px;
    font-size: 14px;
}

.tag-list span {
    background: var(--amber-100);
    color: var(--amber-600);
    backdrop-filter: none;
    font-size: 12px;
    font-weight: 800;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.card-foot strong {
    color: var(--orange-600);
    font-size: 18px;
}

.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 150px 1fr;
}

.movie-card-horizontal .poster-link {
    aspect-ratio: auto;
    height: 100%;
}

.movie-card-horizontal .movie-card-body {
    padding: 18px 20px;
}

.rank-list {
    max-width: 860px;
    margin: 0 auto;
    padding: 18px;
}

.wide-rank-list {
    max-width: 980px;
}

.rank-row {
    display: grid;
    grid-template-columns: 56px 80px 1fr 58px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

.rank-row img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 900;
    background: var(--gray-100);
    color: var(--gray-600);
}

.rank-gold {
    background: #facc15;
    color: var(--white);
}

.rank-silver {
    background: #d1d5db;
    color: var(--white);
}

.rank-bronze {
    background: #fb923c;
    color: var(--white);
}

.rank-copy strong,
.rank-copy small {
    display: block;
}

.rank-copy small {
    margin-top: 4px;
    color: var(--gray-500);
}

.rank-score {
    color: var(--orange-600);
    font-weight: 900;
    font-size: 20px;
}

.page-hero {
    padding: 88px 0;
    color: var(--white);
    background: linear-gradient(120deg, var(--amber-500), var(--orange-600));
    box-shadow: inset 0 -80px 90px rgba(120, 53, 15, 0.18);
}

.page-hero h1 {
    margin: 16px 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding-right: 18px;
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--gray-200);
}

.empty-result {
    margin: 34px 0 0;
    text-align: center;
    color: var(--gray-500);
    font-weight: 800;
}

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

.overview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overview-cover {
    border-radius: 20px;
    overflow: hidden;
    background: #111827;
}

.overview-cover img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.overview-card h2 {
    margin: 4px 0 10px;
    font-size: 26px;
}

.detail-page {
    padding: 34px 0 20px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: var(--gray-500);
    font-weight: 700;
}

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

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

.player-panel {
    overflow: hidden;
    border-radius: 28px;
    background: #050505;
    box-shadow: var(--shadow);
}

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

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16), rgba(0, 0, 0, 0.56));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-mark {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    font-size: 34px;
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.42);
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.detail-card h1 {
    margin: 12px 0 6px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
}

.detail-card h2 {
    margin: 30px 0 12px;
    font-size: 24px;
}

.detail-score {
    min-width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    font-size: 28px;
    box-shadow: 0 15px 28px rgba(234, 88, 12, 0.26);
}

.detail-one-line {
    margin: 16px 0 18px;
    font-size: 18px;
    color: var(--gray-700) !important;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-meta span {
    background: var(--gray-100);
    color: var(--gray-600);
    backdrop-filter: none;
    font-weight: 700;
}

.detail-tags {
    margin-bottom: 8px;
}

.detail-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 22px;
}

.poster-card,
.side-card {
    padding: 18px;
}

.poster-card img {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 18px;
    background: #111827;
}

.poster-card .btn {
    width: 100%;
}

.side-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.side-card a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--gray-200);
}

.side-card a span,
.side-card a small {
    display: block;
}

.side-card a span {
    font-weight: 800;
}

.side-card a small {
    color: var(--gray-500);
}

.related-section {
    padding-top: 40px;
}

.site-footer {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: #d1d5db;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--white);
    font-size: 22px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.site-footer a {
    display: block;
    margin: 10px 0;
    color: #d1d5db;
}

.site-footer a:hover {
    color: #fbbf24;
}

.footer-bottom {
    padding: 18px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

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

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

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

    .detail-side {
        position: static;
        grid-template-columns: 260px 1fr;
    }

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero {
        height: 640px;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-arrow {
        display: none;
    }

    .category-grid,
    .movie-grid,
    .overview-grid,
    .feature-layout {
        grid-template-columns: 1fr 1fr;
    }

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

    .overview-card,
    .movie-card-horizontal,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 44px 64px 1fr;
    }

    .rank-row img {
        width: 64px;
        height: 64px;
    }

    .rank-score {
        display: none;
    }
}

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

    .brand-name {
        font-size: 18px;
    }

    .hero {
        height: 620px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions,
    .section-heading,
    .detail-title-row {
        align-items: stretch;
        flex-direction: column;
    }

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

    .section {
        padding: 52px 0;
    }

    .page-hero {
        padding: 62px 0;
    }

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