:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --slate-50: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 22px 50px rgba(15, 23, 42, 0.18);
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-900);
    background: var(--slate-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.26);
    font-size: 13px;
}

.logo-text {
    color: var(--gray-900);
    font-size: 24px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

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

.mobile-link {
    display: block;
    padding: 10px 12px;
    color: var(--gray-700);
    font-weight: 650;
    border-radius: 12px;
}

.mobile-link:hover {
    color: var(--amber-700);
    background: var(--amber-50);
}

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.hero {
    padding: 72px 0 76px;
}

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

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.26), transparent 26%), rgba(0, 0, 0, 0.1);
}

.hero-glow {
    position: absolute;
    right: -12%;
    top: -24%;
    width: 520px;
    height: 520px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    filter: blur(6px);
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    align-items: center;
    gap: 44px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--amber-700);
    background: var(--amber-50);
    border: 1px solid var(--amber-100);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero .eyebrow,
.page-hero .eyebrow {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
}

.hero-copy h1,
.page-hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.page-hero h1 {
    max-width: 780px;
}

.hero-lead,
.page-hero p:last-child {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2.4vw, 24px);
    margin: 0;
}

.hero-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 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-light {
    color: var(--amber-700);
    background: var(--white);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.btn-warm {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 16px 30px rgba(217, 119, 6, 0.24);
}

.btn-soft {
    color: var(--amber-700);
    background: var(--amber-50);
    border: 1px solid var(--amber-100);
}

.compact-actions {
    margin-top: 20px;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.hero-links a {
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 700;
}

.hero-showcase {
    position: relative;
}

.hero-track {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

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

.hero-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-height: 380px;
    background: rgba(255, 255, 255, 0.16);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

.hero-card-copy {
    position: relative;
    z-index: 2;
    margin: -110px 24px 0;
    padding: 24px;
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(16px);
}

.hero-label {
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 850;
}

.hero-card-copy h2 {
    margin: 8px 0;
    font-size: 26px;
    line-height: 1.18;
}

.hero-card-copy p {
    margin: 0 0 16px;
    color: var(--gray-600);
}

.hero-card-link {
    display: inline-flex;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.home-search,
.page-section,
.detail-page {
    padding: 54px 0;
}

.search-intro {
    margin-bottom: 20px;
}

.search-intro h2,
.section-heading h2 {
    margin: 10px 0 0;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

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

.section-heading p {
    max-width: 700px;
    margin: 10px 0 0;
    color: var(--gray-600);
}

.section-more {
    flex: 0 0 auto;
    color: var(--amber-700);
    background: var(--amber-50);
    border: 1px solid var(--amber-100);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(150px, 220px) minmax(150px, 220px);
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 750;
}

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

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

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

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

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

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

.movie-card:hover .poster-wrap img,
.wide-item:hover img {
    transform: scale(1.08);
}

.card-badge,
.rank-badge,
.wide-rank {
    position: absolute;
    z-index: 2;
    color: var(--white);
    background: rgba(17, 24, 39, 0.74);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-badge.left {
    top: 12px;
    left: 12px;
}

.card-badge.right {
    top: 12px;
    right: 12px;
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: var(--white);
    background: rgba(217, 119, 6, 0.92);
    border-radius: 50%;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.62);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.card-body h2 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.movie-card:hover h2,
.wide-item:hover h2 {
    color: var(--amber-700);
}

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

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

.tag-row span {
    color: var(--amber-700);
    background: var(--amber-50);
    border: 1px solid var(--amber-100);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 750;
}

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

.compact-card .card-body {
    padding: 15px;
}

.ranking-strip,
.ranking-page-list,
.wide-grid {
    display: grid;
    gap: 16px;
}

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

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

.wide-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.wide-poster {
    position: relative;
    overflow: hidden;
    min-height: 132px;
}

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

.wide-rank {
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.wide-content {
    padding: 18px;
}

.wide-content h2 {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wide-content p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background: linear-gradient(135deg, var(--white), var(--amber-50));
    border: 1px solid var(--amber-100);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card span,
.category-main-link h2 {
    display: block;
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 22px;
    font-weight: 850;
}

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

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

.category-samples a,
.category-mini-links a {
    color: var(--amber-700);
    background: var(--white);
    border: 1px solid var(--amber-100);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 750;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    border-radius: 14px;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 36px;
    align-items: center;
    padding: 28px;
    background: linear-gradient(135deg, var(--white), var(--amber-50));
    border: 1px solid var(--amber-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

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

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

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

.large-tags span {
    padding: 7px 12px;
    font-size: 13px;
}

.player-block,
.detail-grid {
    margin-top: 34px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 26px;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    border-radius: 999px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.36);
    font-size: 30px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.article-card,
.meta-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.article-card {
    padding: 30px;
}

.article-card h2,
.meta-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.article-card h2:not(:first-child) {
    margin-top: 30px;
}

.article-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.9;
}

.meta-card {
    align-self: start;
    padding: 24px;
}

.meta-card div {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200);
}

.meta-card div:last-child {
    border-bottom: 0;
}

.meta-card span {
    color: var(--gray-500);
    font-size: 13px;
}

.meta-card strong {
    color: var(--gray-900);
    font-size: 15px;
}

.related-section {
    padding-bottom: 0;
}

.empty-state {
    display: none;
    margin: 24px 0 0;
    padding: 22px;
    color: var(--gray-600);
    text-align: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
}

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

.site-footer {
    margin-top: 44px;
    color: #d1d5db;
    background: var(--gray-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) 1fr 1fr;
    gap: 32px;
    padding: 46px 0;
}

.footer-logo {
    color: var(--white);
    font-size: 24px;
}

.footer-brand p {
    max-width: 520px;
    color: #9ca3af;
}

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

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

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

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

.footer-bottom p {
    margin: 0;
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-track {
        min-height: 500px;
    }

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

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

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

    .hero,
    .page-hero {
        padding: 50px 0;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .hero-layout {
        gap: 28px;
    }

    .hero-track {
        min-height: 470px;
    }

    .hero-card-copy {
        margin: -88px 14px 0;
        padding: 18px;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .filter-panel {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .movie-grid,
    .ranking-strip,
    .wide-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .wide-item {
        grid-template-columns: 118px 1fr;
    }

    .wide-content {
        padding: 14px;
    }

    .detail-hero {
        padding: 18px;
    }

    .article-card,
    .meta-card {
        padding: 20px;
    }

    .player-cover span {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }

    .movie-grid {
        gap: 18px;
    }

    .card-body h2 {
        min-height: auto;
    }

    .wide-item {
        grid-template-columns: 100px 1fr;
    }

    .wide-poster {
        min-height: 118px;
    }
}
