:root {
  --primary-50: #eef8f2;
  --primary-100: #dcf0e3;
  --primary-400: #5dab7d;
  --primary-600: #2a724c;
  --primary-700: #225b3e;
  --primary-800: #1d4933;
  --accent-50: #f5f8fa;
  --accent-600: #3c7c97;
  --secondary-50: #fdf8f3;
  --secondary-100: #f9ede0;
  --secondary-600: #c96c3a;
  --night-300: #a5b5c5;
  --night-400: #7991a8;
  --night-700: #445366;
  --night-900: #2e3946;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, var(--primary-50) 0%, #ffffff 26%, #f8fafc 100%);
}

body,
button,
input,
select {
  font: inherit;
}

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

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

button {
  cursor: pointer;
}

main {
  min-height: 70vh;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  box-shadow: 0 10px 20px rgba(42, 114, 76, 0.28);
}

.logo-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--primary-600), var(--primary-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: #4b5563;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-600);
}

.nav-search,
.mobile-search,
.wide-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 220px;
  padding: 10px 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(42, 114, 76, 0.14);
}

.nav-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary-600);
  padding: 10px 16px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  justify-content: center;
  align-items: center;
  border: 0;
  background: transparent;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  padding: 16px 22px 20px;
  background: #ffffff;
}

.mobile-nav {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px;
}

.hero-carousel {
  position: relative;
  height: 76vh;
  min-height: 540px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

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

.hero-overlay {
  background: radial-gradient(circle at 20% 30%, rgba(93, 171, 125, 0.38), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 22px 92px;
  margin: 0 auto;
  transform: translateX(-250px);
}

.hero-pill,
.page-hero-inner span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--primary-600);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(42, 114, 76, 0.35);
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

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

.primary-button,
.ghost-button,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 13px 22px;
  color: #ffffff;
  background: var(--primary-600);
  box-shadow: 0 14px 28px rgba(42, 114, 76, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.primary-button.small {
  padding: 10px 16px;
  font-size: 14px;
}

.primary-button.full {
  width: 100%;
}

.ghost-button {
  padding: 13px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.quick-panel {
  position: relative;
  z-index: 6;
  margin-top: -44px;
  padding: 0 22px;
}

.quick-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 36px);
  color: #0f172a;
}

.quick-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.8;
}

.wide-search input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
}

.wide-search button {
  padding: 14px 22px;
}

.quick-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a,
.tag-list span {
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-size: 14px;
  font-weight: 700;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 22px;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more,
.text-link {
  color: var(--primary-600);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--night-900);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 55%);
  opacity: 0.72;
}

.card-category,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.card-category {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: var(--primary-600);
}

.rank-badge {
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-600);
  box-shadow: 0 10px 20px rgba(201, 108, 58, 0.25);
}

.card-body {
  padding: 17px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--primary-600);
}

.card-body p {
  margin: 0 0 14px;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 28px;
}

.side-ranking,
.detail-side {
  min-width: 0;
}

.sticky-side {
  position: sticky;
  top: 94px;
}

.ranking-card,
.detail-card,
.poster-card,
.category-tile,
.category-overview-card,
.filter-panel {
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-card {
  padding: 22px;
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.ranking-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.ranking-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
  transition: background 0.2s ease, color 0.2s ease;
}

.ranking-row:hover {
  color: var(--primary-700);
  background: var(--primary-100);
}

.ranking-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: var(--primary-600);
  font-weight: 800;
}

.ranking-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.ranking-year {
  color: var(--muted);
  font-size: 13px;
}

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

.category-tile {
  padding: 24px;
}

.category-tile h3,
.category-overview-copy h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p,
.category-overview-copy p {
  color: var(--muted);
  line-height: 1.75;
}

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

.category-mini-grid a,
.category-preview-strip a {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  background: var(--night-900);
}

.category-mini-grid img,
.category-preview-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-mini-grid span,
.category-preview-strip span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 8px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(115deg, var(--primary-600), var(--primary-800));
}

.ranking-hero {
  background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(115deg, var(--secondary-600), var(--primary-800));
}

.search-hero {
  background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(115deg, var(--accent-600), var(--primary-800));
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 22px;
}

.compact-hero .page-hero-inner {
  padding: 64px 22px;
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.page-search {
  max-width: 720px;
  margin-top: 28px;
}

.overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  align-items: center;
}

.category-preview-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
}

.search-panel-section {
  padding-top: 34px;
}

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

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 16px;
}

.search-empty {
  margin: 24px 0;
  padding: 38px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 22px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
}

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

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  background: #000000;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at 50% 45%, rgba(42, 114, 76, 0.38), rgba(0, 0, 0, 0.55));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 18px;
  font-weight: 800;
}

.play-overlay.is-hidden {
  display: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-card h2 {
  margin: 26px 0 10px;
  color: #111827;
  font-size: 23px;
}

.detail-card p {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.9;
}

.lead-text {
  padding: 18px;
  border-radius: 18px;
  color: #1e293b !important;
  background: linear-gradient(90deg, var(--primary-100), #ffffff);
  font-weight: 700;
}

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

.detail-meta a,
.detail-meta span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.detail-meta a {
  color: var(--primary-700);
  background: var(--primary-100);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

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

.compact-card .card-body p {
  min-height: 0;
}

.poster-card {
  overflow: hidden;
  padding: 16px;
  margin-bottom: 22px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  background: var(--night-900);
  margin-bottom: 14px;
}

.site-footer {
  color: #ffffff;
  background: var(--night-900);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  max-width: 560px;
  color: var(--night-300);
  line-height: 1.8;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
}

.footer-column h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-column a {
  color: var(--night-300);
}

.footer-column a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  border-top: 1px solid rgba(165, 181, 197, 0.18);
  padding: 18px 22px;
  text-align: center;
  color: var(--night-400);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .hero-content {
    transform: none;
    max-width: 920px;
  }

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

  .split-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .sticky-side {
    position: static;
  }

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

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

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 620px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

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

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

  .hero-content {
    padding: 0 18px 78px;
  }

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

  .quick-panel,
  .content-section,
  .detail-shell,
  .page-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-inner,
  .detail-card,
  .ranking-card,
  .category-tile,
  .category-overview-card {
    border-radius: 18px;
    padding: 18px;
  }

  .section-heading {
    display: grid;
  }

  .wide-search {
    display: grid;
  }

  .wide-search input {
    min-width: 0;
  }

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

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

  .detail-card h1 {
    font-size: 30px;
  }

  .footer-inner {
    padding: 38px 16px;
  }
}
