:root {
    --green: #16a34a;
    --green-dark: #15803d;
    --green-soft: #dcfce7;
    --teal: #0f766e;
    --gold: #facc15;
    --text: #111827;
    --muted: #6b7280;
    --bg: #f9fafb;
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
    --shadow-strong: 0 25px 55px rgba(15, 23, 42, 0.24);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88)); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(229,231,235,.75); transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { box-shadow: var(--shadow); background: rgba(255,255,255,.96); }
.header-inner { width: min(1280px, calc(100% - 32px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 230px; }
.brand-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 900; background: linear-gradient(135deg, var(--green), var(--teal)); box-shadow: 0 12px 24px rgba(22,163,74,.28); transition: transform .25s ease; }
.brand:hover .brand-icon { transform: scale(1.08) rotate(-2deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand-subtitle { margin-top: 4px; font-size: 12px; color: var(--muted); }
.desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-link { color: #374151; font-weight: 600; transition: color .2s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--green); }
.top-search { display: flex; align-items: center; gap: 8px; min-width: 300px; }
.top-search input, .mobile-nav input, .filter-input, .filter-select { width: 100%; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.top-search input { padding: 10px 15px; }
.top-search input:focus, .mobile-nav input:focus, .filter-input:focus, .filter-select:focus { border-color: transparent; box-shadow: 0 0 0 3px rgba(22,163,74,.20); }
.top-search button, .primary-button { border: 0; cursor: pointer; border-radius: 999px; padding: 10px 20px; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 12px 24px rgba(22,163,74,.25); transition: transform .22s ease, box-shadow .22s ease; }
.top-search button:hover, .primary-button:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(22,163,74,.30); }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 10px 18px; color: #064e3b; font-weight: 800; background: rgba(220,252,231,.95); transition: background .2s ease, transform .2s ease; }
.secondary-button:hover { background: #bbf7d0; transform: translateY(-2px); }
.menu-toggle { display: none; margin-left: auto; border: 0; border-radius: 12px; padding: 9px 12px; background: #f3f4f6; color: #374151; }
.mobile-nav { display: none; width: min(1280px, calc(100% - 32px)); margin: 0 auto 14px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.mobile-nav.is-open { display: grid; gap: 12px; }
.mobile-nav a { padding: 10px 12px; border-radius: 12px; color: #374151; font-weight: 700; }
.mobile-nav a:hover { background: var(--green-soft); color: var(--green-dark); }
.mobile-nav input { padding: 11px 14px; }
.hero { position: relative; min-height: 600px; overflow: hidden; background: linear-gradient(135deg, #064e3b, #15803d 48%, #0f766e); color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.42) saturate(1.05); transform: scale(1.03); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,6,23,.92), rgba(2,6,23,.42), rgba(2,6,23,.20)), linear-gradient(0deg, rgba(2,6,23,.90), rgba(2,6,23,.05) 42%); }
.hero-inner { position: relative; z-index: 2; width: min(1280px, calc(100% - 32px)); min-height: 600px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 42px; padding-top: 92px; }
.hero-badge, .eyebrow { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 14px; color: #052e16; font-size: 14px; font-weight: 900; background: linear-gradient(135deg, #bef264, #34d399); }
.hero h1 { margin: 20px 0 18px; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -.05em; }
.hero p { max-width: 720px; margin: 0 0 26px; color: #e5e7eb; font-size: clamp(17px, 2vw, 22px); }
.hero-meta, .detail-meta, .card-meta, .rank-meta, .quick-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-meta span, .detail-meta span, .quick-meta span { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 12px; background: rgba(15,23,42,.55); color: #f9fafb; font-size: 14px; backdrop-filter: blur(10px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-card { border: 1px solid rgba(255,255,255,.20); border-radius: 28px; padding: 16px; background: rgba(255,255,255,.12); box-shadow: var(--shadow-strong); backdrop-filter: blur(18px); }
.hero-card img { width: 100%; aspect-ratio: 3 / 4; border-radius: 20px; object-fit: cover; box-shadow: 0 22px 45px rgba(0,0,0,.35); }
.hero-card-title { margin-top: 14px; font-size: 18px; font-weight: 900; }
.hero-card-text { margin-top: 6px; color: #d1d5db; font-size: 14px; }
.hero-dots { position: absolute; left: 50%; bottom: 30px; z-index: 4; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); }
.hero-dot { width: 10px; height: 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); transition: width .25s ease, background .25s ease; }
.hero-dot.is-active { width: 34px; background: #fff; }
.section { padding: 72px 0; }
.section-light { background: #fff; }
.section-soft { background: linear-gradient(180deg, #fff, #f3f4f6); }
.section-dark { color: #fff; background: linear-gradient(135deg, #111827, #1f2937); }
.container { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.section-title { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.18; letter-spacing: -.03em; }
.section-desc { max-width: 760px; margin: 10px 0 0; color: var(--muted); }
.section-dark .section-desc, .section-dark .rank-content p, .section-dark .rank-meta { color: #cbd5e1; }
.stats-grid, .category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat-card { border-radius: 22px; padding: 24px; background: linear-gradient(135deg, #ecfdf5, #dcfce7); box-shadow: var(--shadow); }
.stat-card:nth-child(2) { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.stat-card:nth-child(3) { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.stat-card:nth-child(4) { background: linear-gradient(135deg, #faf5ff, #f3e8ff); }
.stat-card strong { display: block; font-size: 24px; color: var(--green-dark); }
.stat-card span { color: #4b5563; font-weight: 700; }
.movie-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.movie-grid-wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.movie-card { overflow: hidden; border-radius: 22px; background: #fff; box-shadow: var(--shadow); transition: transform .28s ease, box-shadow .28s ease; }
.movie-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); }
.card-poster { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: #0f172a; }
.movie-card-compact .card-poster { aspect-ratio: 16 / 10; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.movie-card:hover .card-poster img { transform: scale(1.08); filter: brightness(.82); }
.play-mark { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 38px; opacity: 0; transform: scale(.75); transition: opacity .25s ease, transform .25s ease; }
.movie-card:hover .play-mark { opacity: 1; transform: scale(1); }
.duration-badge { position: absolute; right: 10px; bottom: 10px; border-radius: 999px; padding: 4px 8px; color: #fff; font-size: 12px; background: rgba(0,0,0,.68); }
.card-body { padding: 16px; }
.card-title { display: -webkit-box; min-height: 48px; overflow: hidden; color: var(--text); font-weight: 900; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: color .2s ease; }
.card-title:hover { color: var(--green); }
.card-desc { display: -webkit-box; min-height: 44px; margin: 9px 0 12px; overflow: hidden; color: var(--muted); font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { gap: 8px; color: #4b5563; font-size: 13px; }
.card-meta span { border-radius: 999px; padding: 3px 8px; background: #f3f4f6; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag-row span { border-radius: 999px; padding: 4px 8px; color: #166534; background: #dcfce7; font-size: 12px; font-weight: 700; }
.rank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rank-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); overflow: hidden; border-radius: 22px; background: rgba(255,255,255,.08); transition: transform .25s ease, background .25s ease; }
.section-light .rank-item, .section-soft .rank-item { background: #fff; box-shadow: var(--shadow); }
.rank-item:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
.section-light .rank-item:hover, .section-soft .rank-item:hover { background: #fff; box-shadow: var(--shadow-strong); }
.rank-cover { position: relative; min-height: 132px; background: #0f172a; }
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-cover span { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: #111827; font-weight: 900; }
.rank-content { min-width: 0; padding: 14px; }
.rank-title { display: -webkit-box; overflow: hidden; font-weight: 900; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rank-title:hover { color: #22c55e; }
.rank-content p { display: -webkit-box; min-height: 42px; margin: 8px 0 12px; overflow: hidden; color: var(--muted); font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rank-meta { color: #9ca3af; font-size: 13px; }
.category-card { position: relative; min-height: 180px; overflow: hidden; border-radius: 26px; color: #fff; background: linear-gradient(135deg, #16a34a, #0f766e); box-shadow: var(--shadow); transition: transform .26s ease, box-shadow .26s ease; }
.category-card:nth-child(2n) { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.category-card:nth-child(3n) { background: linear-gradient(135deg, #ea580c, #facc15); }
.category-card:nth-child(4n) { background: linear-gradient(135deg, #9333ea, #ec4899); }
.category-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-strong); }
.category-card::after { content: ""; position: absolute; right: -38px; bottom: -38px; width: 130px; height: 130px; border-radius: 999px; background: rgba(255,255,255,.18); }
.category-card-inner { position: relative; z-index: 2; height: 100%; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.category-card h3 { margin: 0; font-size: 24px; }
.category-card p { margin: 12px 0 0; color: rgba(255,255,255,.88); }
.page-hero { padding: 128px 0 54px; color: #fff; background: radial-gradient(circle at top left, rgba(34,197,94,.40), transparent 28%), linear-gradient(135deg, #111827, #064e3b 55%, #0f766e); }
.page-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.12; letter-spacing: -.04em; }
.page-hero p { max-width: 780px; margin: 16px 0 0; color: #d1d5db; font-size: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: #bbf7d0; font-size: 14px; }
.breadcrumb a:hover { color: #fff; }
.filter-panel { display: grid; grid-template-columns: minmax(220px, 1fr) 190px 190px; gap: 14px; padding: 18px; margin-bottom: 30px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.filter-input, .filter-select { padding: 12px 14px; border-radius: 16px; }
.empty-state { display: none; padding: 44px 20px; border-radius: 24px; background: #fff; color: var(--muted); text-align: center; box-shadow: var(--shadow); }
.empty-state.is-visible { display: block; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.player-panel, .detail-card, .side-card { border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.player-panel { overflow: hidden; background: #050505; }
.video-shell { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-shell video { width: 100%; height: 100%; background: #000; object-fit: contain; }
.play-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; background: radial-gradient(circle, rgba(22,163,74,.16), rgba(0,0,0,.66)); font-size: 18px; font-weight: 900; z-index: 2; border: 0; cursor: pointer; }
.play-overlay.is-hidden { opacity: 0; pointer-events: none; }
.play-icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 999px; background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 20px 45px rgba(22,163,74,.40); }
.detail-card { padding: 28px; margin-top: 24px; }
.detail-title { margin: 0 0 16px; font-size: clamp(28px, 4vw, 44px); line-height: 1.16; letter-spacing: -.04em; }
.detail-meta span { background: #f3f4f6; color: #374151; }
.detail-intro { margin: 22px 0; padding-left: 18px; border-left: 4px solid var(--green); color: #374151; font-size: 18px; font-weight: 700; }
.article-block { margin-top: 28px; }
.article-block h2 { margin: 0 0 12px; font-size: 24px; }
.article-block p { margin: 0; color: #374151; }
.side-card { padding: 18px; margin-bottom: 18px; }
.side-card h2, .side-card h3 { margin: 0 0 14px; font-size: 20px; }
.detail-poster { overflow: hidden; border-radius: 18px; background: #0f172a; }
.detail-poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.quick-list { display: grid; gap: 12px; }
.quick-link { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: #f9fafb; transition: background .2s ease, transform .2s ease; }
.quick-link:hover { background: #ecfdf5; transform: translateX(3px); }
.quick-link img { width: 76px; height: 96px; border-radius: 12px; object-fit: cover; }
.quick-link strong { display: -webkit-box; overflow: hidden; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.quick-link span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.site-footer { color: #e5e7eb; background: linear-gradient(135deg, #111827, #1f2937); }
.footer-inner { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-brand { display: inline-block; margin-bottom: 8px; color: #fff; font-size: 22px; font-weight: 900; }
.footer-inner p { margin: 0; color: #cbd5e1; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: #86efac; }
@media (max-width: 1120px) { .top-search { display: none; } .movie-grid, .movie-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .detail-layout { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .header-inner { min-height: 68px; } .desktop-nav { display: none; } .menu-toggle { display: inline-flex; } .brand { min-width: 0; } .brand-subtitle { display: none; } .hero, .hero-inner { min-height: 650px; } .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 94px; padding-bottom: 74px; } .hero-card { display: none; } .stats-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .movie-grid, .movie-grid-wide, .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filter-panel { grid-template-columns: 1fr; } .section-head, .footer-inner { align-items: flex-start; flex-direction: column; } }
@media (max-width: 560px) { .brand-name { font-size: 17px; } .hero h1 { font-size: 34px; } .hero p { font-size: 16px; } .movie-grid, .movie-grid-wide, .rank-grid, .stats-grid, .category-grid { grid-template-columns: 1fr; } .rank-item { grid-template-columns: 110px minmax(0, 1fr); } .rank-cover { min-height: 124px; } .detail-card { padding: 20px; } }
