:root {
  --lotus-50: #f4f9f7;
  --lotus-100: #dceee7;
  --lotus-200: #b9ddcf;
  --lotus-500: #498874;
  --lotus-600: #396d5d;
  --lotus-700: #2f574c;
  --mist-50: #f8fafb;
  --mist-100: #f0f4f7;
  --mist-200: #e1e9ef;
  --mist-400: #a8bccf;
  --mist-500: #8099b3;
  --mist-600: #5f7a95;
  --mist-700: #4a5f78;
  --mist-800: #3d4f64;
  --mist-900: #354354;
  --shadow-sm: 0 4px 16px rgba(53, 67, 84, 0.06);
  --shadow-lg: 0 18px 40px rgba(53, 67, 84, 0.16);
  --shadow-2xl: 0 30px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--mist-900);
  background: linear-gradient(180deg, var(--mist-50), #ffffff 42%, var(--mist-50));
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(225, 233, 239, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100% - 32px, 1280px);
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-text,
.footer-brand span:last-child {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.35rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--lotus-500), var(--mist-700));
  box-shadow: var(--shadow-sm);
}

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

.main-nav a,
.nav-group-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: var(--mist-700);
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.main-nav a:hover,
.nav-group:hover .nav-group-button,
.nav-group-button:hover {
  color: var(--lotus-700);
  background: var(--mist-100);
}

.nav-group {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 190px;
  padding: 8px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-group:hover .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  width: 100%;
  justify-content: flex-start;
}

.search-form {
  position: relative;
  width: min(280px, 28vw);
}

.search-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--mist-200);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--mist-800);
  background: var(--mist-50);
  outline: none;
  transition: 0.2s ease;
}

.search-form input:focus {
  border-color: var(--lotus-500);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(73, 136, 116, 0.12);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 92vw);
  max-height: 420px;
  overflow: auto;
  display: none;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.search-results.open {
  display: grid;
  gap: 8px;
}

.search-results a {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--mist-700);
  background: var(--mist-50);
}

.search-results strong {
  color: var(--mist-900);
}

.search-results span {
  font-size: 0.82rem;
  color: var(--mist-500);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--mist-700);
  background: var(--mist-100);
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, 1280px);
  margin: 0 auto 12px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--mist-700);
}

.mobile-nav a:hover {
  color: var(--lotus-700);
  background: var(--lotus-50);
}

.hero-section {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
}

.hero-bg,
.hero-bg img,
.hero-bg span {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: linear-gradient(135deg, var(--mist-900), var(--lotus-700));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transform: scale(1.02);
}

.hero-bg img.image-fade {
  opacity: 0;
}

.hero-bg span {
  background:
    radial-gradient(circle at 72% 20%, rgba(185, 221, 207, 0.24), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.35));
}

.hero-content {
  position: relative;
  padding: 0 0 82px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--lotus-100);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.listing-hero h1,
.section-head h2,
.cta-panel h2,
.detail-card h1 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(3rem, 8vw, 5.8rem);
  letter-spacing: -0.045em;
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn.primary {
  color: #ffffff;
  background: var(--lotus-500);
  box-shadow: 0 14px 32px rgba(73, 136, 116, 0.36);
}

.btn.primary:hover {
  background: var(--lotus-600);
  transform: translateY(-2px) scale(1.02);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.content-section {
  padding: 72px 0 0;
}

.soft-panel {
  width: min(100% - 32px, 1280px);
  margin: 72px auto 0;
  padding: 40px;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--mist-900);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--mist-600);
}

.section-link {
  font-weight: 700;
  color: var(--lotus-600);
}

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

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

.movie-card,
.movie-card-large,
.movie-card-horizontal {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.movie-card-large:hover,
.movie-card-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mist-200), var(--lotus-100));
}

.poster-wide {
  aspect-ratio: 16 / 9;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster img.image-fade {
  opacity: 0;
}

.movie-card:hover img,
.movie-card-large:hover img,
.movie-card-horizontal:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-shade.soft {
  opacity: 0.18;
}

.movie-card:hover .poster-shade,
.movie-card-large .poster-shade,
.movie-card-horizontal:hover .poster-shade {
  opacity: 1;
}

.duration,
.play-badge {
  position: absolute;
  z-index: 2;
}

.duration {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}

.play-badge.small {
  width: 42px;
  height: 42px;
}

.movie-card:hover .play-badge,
.movie-card-large:hover .play-badge,
.movie-card-horizontal:hover .play-badge {
  opacity: 1;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-body strong,
.card-overlay strong,
.horizontal-body strong {
  color: var(--mist-900);
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body > span:not(.meta-row):not(.score-pill) {
  color: var(--mist-600);
  font-size: 0.92rem;
  line-height: 1.55;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--mist-500);
  font-size: 0.8rem;
}

.meta-row span:first-child {
  color: var(--lotus-700);
  font-weight: 700;
}

.score-pill {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--lotus-700);
  background: var(--lotus-100);
  font-size: 0.82rem;
  font-weight: 700;
}

.line-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-large {
  position: relative;
  min-height: 290px;
  display: block;
  background: var(--mist-900);
}

.movie-card-large .poster {
  height: 100%;
}

.card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 10px;
  padding: 28px;
  color: rgba(255, 255, 255, 0.82);
}

.card-overlay strong {
  color: #ffffff;
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
}

.card-overlay .meta-row {
  color: rgba(255, 255, 255, 0.82);
}

.card-overlay .meta-row span:first-child {
  color: #ffffff;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(73, 136, 116, 0.78);
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 14px;
  padding: 0;
}

.horizontal-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px 14px 12px 0;
}

.horizontal-body > span:not(.meta-row) {
  color: var(--mist-600);
  font-size: 0.9rem;
  line-height: 1.5;
}

.listing-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--lotus-600), var(--mist-700));
}

.listing-hero .container {
  padding: 72px 0;
}

.listing-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.listing-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.8;
}

.gradient-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(220, 238, 231, 0.34), transparent 26%),
    linear-gradient(135deg, var(--lotus-600), var(--mist-700));
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.pagination a,
.pagination strong,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  padding: 0 12px;
}

.pagination a {
  color: var(--mist-700);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.pagination strong {
  color: #ffffff;
  background: var(--lotus-600);
}

.pagination span {
  color: var(--mist-400);
}

.rank-panel {
  padding-top: 48px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 96px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: 0.2s ease;
}

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

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--lotus-500), var(--mist-700));
  font-weight: 800;
}

.rank-row img {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mist-200), var(--lotus-100));
}

.rank-row img.image-fade {
  opacity: 0;
}

.rank-info {
  display: grid;
  gap: 5px;
}

.rank-info strong {
  color: var(--mist-900);
}

.rank-info em {
  color: var(--mist-500);
  font-style: normal;
  font-size: 0.9rem;
}

.rank-score {
  color: var(--lotus-700);
  font-size: 1.25rem;
  font-weight: 800;
}

.detail-wrap {
  padding: 44px 0 72px;
  background: linear-gradient(180deg, var(--mist-50), #ffffff);
}

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

.detail-main,
.detail-aside {
  display: grid;
  gap: 24px;
  align-content: start;
}

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

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
  cursor: pointer;
}

.player-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  font-size: 2rem;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: 0.2s ease;
}

.player-center:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(73, 136, 116, 0.78);
}

.player.is-playing .player-center {
  opacity: 0;
  pointer-events: none;
}

.player-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player:hover .player-toolbar,
.player:focus-within .player-toolbar {
  opacity: 1;
}

.player-toolbar button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.player-toolbar button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.player-message {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  place-items: center;
  padding: 24px;
  color: #ffffff;
  text-align: center;
  background: rgba(0, 0, 0, 0.78);
}

.player.has-message .player-message {
  display: grid;
}

.detail-card,
.aside-panel {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.detail-card {
  padding: clamp(24px, 4vw, 38px);
}

.detail-card h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  color: var(--mist-900);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--mist-200);
}

.detail-meta span,
.tag-list span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--mist-700);
  background: var(--mist-100);
  font-size: 0.88rem;
}

.detail-meta span:first-child,
.tag-list span {
  color: var(--lotus-700);
  background: var(--lotus-100);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.detail-card section + section {
  margin-top: 26px;
}

.detail-card h2,
.aside-panel h2 {
  margin: 0 0 12px;
  color: var(--mist-900);
  font-family: Georgia, Cambria, "Times New Roman", serif;
}

.detail-card p {
  margin: 0;
  color: var(--mist-700);
  line-height: 1.9;
}

.review-box {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--lotus-50), var(--mist-50));
}

.aside-panel {
  padding: 22px;
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

.horizontal-list {
  display: grid;
  gap: 14px;
}

.cta-panel {
  margin-top: 72px;
  padding: 48px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(220, 238, 231, 0.28), transparent 30%),
    linear-gradient(135deg, var(--lotus-600), var(--mist-800));
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.cta-panel p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--mist-200);
  background: linear-gradient(180deg, var(--mist-50), var(--mist-100));
}

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

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--mist-600);
}

.site-footer p {
  max-width: 420px;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--mist-800);
  font-size: 0.94rem;
  letter-spacing: 0.08em;
}

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

.site-footer a:hover {
  color: var(--lotus-700);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--mist-200);
  color: var(--mist-500);
  text-align: center;
  font-size: 0.9rem;
}

.animate-fade-in {
  animation: fadeIn 0.55s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .search-form {
    width: min(240px, 24vw);
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: 64px;
  }

  .main-nav,
  .search-form {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-section {
    min-height: 72vh;
  }

  .hero-content {
    padding-bottom: 56px;
  }

  .content-section,
  .soft-panel {
    padding-top: 48px;
    margin-top: 48px;
  }

  .soft-panel,
  .cta-panel {
    padding: 28px;
  }

  .movie-grid,
  .large-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

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

  .rank-row {
    grid-template-columns: 42px 82px 1fr;
  }

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

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-nav,
  .soft-panel {
    width: min(100% - 24px, 1280px);
  }

  .brand-text {
    font-size: 1.15rem;
  }

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

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

  .horizontal-body {
    padding: 10px 12px 10px 0;
  }

  .hero-actions,
  .hero-links {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .listing-hero .container {
    padding: 48px 0;
  }

  .detail-wrap {
    padding-top: 24px;
  }
}
