:root {
  --primary-50: #f0f9f4;
  --primary-100: #dcf2e4;
  --primary-200: #bce5cd;
  --primary-600: #267f56;
  --primary-700: #1f6a48;
  --accent-50: #fff7e8;
  --accent-100: #fcefcc;
  --accent-200: #f8dc9e;
  --accent-600: #cf6913;
  --accent-700: #a94f0c;
  --ink-900: #3d3d3d;
  --ink-700: #55514c;
  --ink-600: #6d675f;
  --ink-500: #827b72;
  --paper-50: #fafaf9;
  --paper-100: #f4f2ef;
  --paper-200: #e8e3dc;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(30, 30, 30, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 30, 30, 0.1);
  --shadow-lg: 0 18px 48px rgba(30, 30, 30, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-900);
  background: var(--paper-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

img,
video {
  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 var(--primary-100);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  border-radius: 999px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(38, 127, 86, 0.22);
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-title {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
}

.brand-subtitle {
  color: var(--ink-500);
  font-size: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 650;
}

.nav-menu a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--primary-700);
}

.nav-menu a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -14px;
  left: 0;
  height: 2px;
  background: var(--primary-600);
  content: "";
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: clamp(540px, 72vh, 820px);
  overflow: hidden;
  color: var(--white);
  background: var(--ink-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.18));
  content: "";
}

.hero-slide::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(61, 61, 61, 0.75), transparent);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 92px 0 74px;
}

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-100);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.hero-title {
  max-width: 820px;
  margin: 0 0 18px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
}

.hero-text {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--paper-200);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-panel {
  width: min(620px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.hero-panel h2 {
  margin: 0 0 8px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 36px);
}

.hero-panel p {
  margin: 0 0 18px;
  color: var(--paper-200);
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--ink-700);
  background: var(--paper-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pill-primary {
  color: var(--white);
  background: rgba(38, 127, 86, 0.92);
}

.pill-accent {
  color: var(--white);
  background: rgba(207, 105, 19, 0.92);
}

.hero-actions,
.section-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  color: var(--white);
  background: var(--primary-600);
}

.btn-primary:hover {
  background: var(--primary-700);
}

.btn-accent {
  color: var(--white);
  background: var(--accent-600);
}

.btn-accent:hover {
  background: var(--accent-700);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-light {
  color: var(--primary-700);
  background: var(--white);
  border-color: var(--primary-100);
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 30px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 30px;
  height: 5px;
  padding: 0;
  background: rgba(255, 255, 255, 0.34);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

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

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700) 48%, var(--accent-600));
  padding: 72px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.section {
  padding: 56px 0;
}

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

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

.section-title {
  margin: 0 0 8px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.16;
}

.section-lead {
  max-width: 720px;
  margin: 0;
  color: var(--ink-600);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 24px;
}

.feature-card {
  display: grid;
  min-height: 430px;
  overflow: hidden;
  color: var(--white);
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.feature-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 34px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.24));
}

.feature-card h2 {
  margin: 12px 0 10px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.feature-card p {
  max-width: 640px;
  margin: 0;
  color: var(--paper-200);
}

.side-panel {
  display: grid;
  gap: 16px;
}

.mini-rank {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-rank:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mini-rank img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  background: var(--paper-200);
  border-radius: 12px;
}

.mini-rank strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.35;
}

.mini-rank span {
  display: block;
  color: var(--ink-500);
  font-size: 12px;
}

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

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

.movie-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-200);
}

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

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

.poster-overlay {
  position: absolute;
  inset: auto 12px 12px auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-info h2,
.movie-info h3 {
  margin: 10px 0 8px;
  color: var(--ink-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-info p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--ink-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag {
  display: inline-flex;
  padding: 3px 8px;
  color: var(--ink-600);
  background: var(--primary-50);
  border-radius: 999px;
  font-size: 12px;
}

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

.category-card {
  min-height: 170px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--ink-600);
  font-size: 14px;
}

.filter-bar {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--ink-900);
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(38, 127, 86, 0.12);
}

.filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 38px;
  padding: 7px 14px;
  color: var(--ink-700);
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--white);
  background: var(--primary-600);
  border-color: var(--primary-600);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rank-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  border-radius: 999px;
  font-weight: 850;
}

.rank-row img {
  width: 120px;
  height: 78px;
  object-fit: cover;
  background: var(--paper-200);
  border-radius: 12px;
}

.rank-row h2,
.rank-row h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.35;
}

.rank-row p {
  margin: 0 0 8px;
  color: var(--ink-600);
  font-size: 14px;
}

.rank-score {
  color: var(--accent-700);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

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

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-900);
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f0f0f;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.player-cover::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.38));
  content: "";
}

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

.play-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: var(--white);
  background: var(--primary-600);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.play-button span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 26px solid currentColor;
}

.player-title {
  padding: 22px 24px;
}

.player-title h1 {
  margin: 0 0 12px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
}

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

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

.detail-card p {
  margin: 0 0 16px;
  color: var(--ink-700);
}

.side-card {
  padding: 20px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  background: var(--paper-200);
  border-radius: 10px;
}

.related-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.32;
}

.related-item span {
  color: var(--ink-500);
  font-size: 12px;
}

.site-footer {
  margin-top: 64px;
  color: var(--paper-200);
  background: var(--ink-900);
}

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

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: var(--paper-200);
  font-size: 14px;
}

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

.footer-bottom {
  padding: 18px 0 26px;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  text-align: center;
}

.empty-state {
  display: none;
  padding: 28px;
  color: var(--ink-600);
  background: var(--white);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  text-align: center;
}

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

@media (max-width: 1040px) {
  .card-grid,
  .card-grid.wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--paper-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 11px 12px;
    border-radius: 10px;
  }

  .nav-menu a.is-active::after {
    display: none;
  }

  .hero-control {
    display: none;
  }

  .hero-panel {
    padding: 18px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .rank-row {
    grid-template-columns: 42px 96px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }

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

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

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

  .brand-title {
    font-size: 19px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

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

  .hero-title {
    font-size: 38px;
  }

  .card-grid,
  .card-grid.wide,
  .category-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .movie-info h2,
  .movie-info h3 {
    font-size: 17px;
  }

  .feature-card-inner {
    padding: 24px;
  }

  .rank-row {
    grid-template-columns: 36px 82px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-index {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

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