/* Static movie site styles inspired by the uploaded gradient, lotus and mist visual system. */
:root {
  --lotus-50: #f0f8f5;
  --lotus-100: #dceee7;
  --lotus-500: #498874;
  --lotus-600: #396d5d;
  --mist-50: #f7fafc;
  --mist-100: #f0f4f7;
  --mist-200: #e1e9ef;
  --mist-500: #6b7c8f;
  --mist-700: #4b5f75;
  --mist-800: #354354;
  --mist-900: #263241;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 18px 45px rgba(38, 50, 65, 0.12);
  --shadow-card: 0 12px 30px rgba(38, 50, 65, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mist-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(180deg, var(--mist-50), #ffffff 36%, var(--mist-50));
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(225, 233, 239, 0.9);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(38, 50, 65, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner,
.footer-inner,
.page-section,
.content-panel,
.category-wall,
.search-inner,
.inner-hero,
.detail-hero-inner,
.detail-content-wrap,
.watch-section {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--lotus-500), var(--mist-800));
  box-shadow: 0 10px 20px rgba(73, 136, 116, 0.25);
}

.brand-text {
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 24px;
  letter-spacing: -0.02em;
}

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

.nav-link,
.nav-dropdown-panel a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--mist-700);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav a:hover {
  color: var(--lotus-600);
  background: var(--lotus-100);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-button {
  border: 0;
  cursor: pointer;
  background: transparent;
  font: inherit;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--mist-200);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--mist-100);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--mist-800);
}

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-category-title {
  grid-column: 1 / -1;
  padding: 8px 12px 0;
  color: var(--mist-500);
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  height: min(82vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: var(--mist-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-bg,
.hero-bg img,
.detail-bg,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  background: radial-gradient(circle at 70% 20%, rgba(73, 136, 116, 0.8), transparent 38%), linear-gradient(135deg, var(--mist-900), var(--lotus-600));
}

.hero-bg img,
.detail-bg img {
  object-fit: cover;
  opacity: 0.72;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34) 54%, rgba(0, 0, 0, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 92px;
  color: var(--white);
  animation: fadeIn 0.5s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--lotus-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1,
.inner-hero h1,
.detail-info h1 {
  margin: 18px 0;
  max-width: 860px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--lotus-600);
  background: var(--lotus-100);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

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

.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: var(--white);
  background: var(--lotus-500);
  box-shadow: 0 16px 30px rgba(73, 136, 116, 0.3);
}

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

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

.ghost-button {
  padding: 13px 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.active {
  width: 34px;
  background: var(--white);
}

.search-band {
  padding: 28px 0;
  background: linear-gradient(90deg, var(--lotus-600), var(--mist-800));
  color: var(--white);
}

.search-inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 28px;
  align-items: center;
}

.search-inner h2,
.search-inner p {
  margin: 0;
}

.search-controls,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
}

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

.filter-panel {
  width: min(var(--container), calc(100% - 32px));
  margin: 28px auto 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-panel.slim {
  margin: 0 0 24px;
  width: 100%;
  box-shadow: none;
  border: 1px solid var(--mist-200);
}

.page-main {
  padding-top: 0;
}

.page-section,
.content-panel,
.category-wall {
  padding: 70px 0;
}

.content-panel,
.category-wall,
.alt-section {
  padding: 52px;
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  margin-top: 48px;
  margin-bottom: 48px;
}

.alt-section {
  background: linear-gradient(135deg, #ffffff, var(--lotus-50));
}

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

.section-heading h2 {
  margin: 0 0 6px;
  color: var(--mist-900);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-heading p {
  margin: 0;
  color: var(--mist-500);
}

.section-more,
.text-link {
  color: var(--lotus-600);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(38, 50, 65, 0.16);
}

.movie-card-poster {
  position: relative;
  display: block;
}

.poster {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: var(--poster-fallback, linear-gradient(135deg, var(--lotus-600), var(--mist-800)));
}

.poster-card {
  aspect-ratio: 3 / 4;
}

.poster-small {
  width: 92px;
  height: 122px;
  min-height: auto;
  border-radius: 14px;
}

.poster-detail {
  aspect-ratio: 3 / 4;
  min-height: 360px;
  border-radius: 24px;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.poster-fallback-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent);
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(73, 136, 116, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.movie-card-body {
  padding: 18px;
}

.movie-card-meta,
.card-actions,
.rank-meta,
.detail-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--mist-500);
  font-size: 13px;
}

.movie-card h3 {
  min-height: 58px;
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  min-height: 76px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--mist-700);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-actions {
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.movie-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.movie-card-horizontal .poster-card {
  height: 100%;
  min-height: 230px;
}

.movie-card-horizontal .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.category-tile {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--lotus-500), var(--mist-800));
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile span {
  font-size: 19px;
  font-weight: 900;
}

.category-tile small {
  opacity: 0.84;
}

.inner-hero {
  margin-top: 32px;
  padding: 72px 52px;
  border-radius: 34px;
  color: var(--white);
  background: radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.18), transparent 32%), linear-gradient(135deg, var(--lotus-600), var(--mist-800));
  box-shadow: var(--shadow-soft);
}

.inner-hero h1 {
  margin-bottom: 12px;
  color: var(--white);
}

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

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

.category-overview-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 26px;
}

.category-overview-head span {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--lotus-600);
  background: var(--lotus-100);
  font-weight: 800;
}

.category-overview-card ul {
  padding: 0;
  margin: 18px 0 24px;
  list-style: none;
}

.category-overview-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--mist-200);
  color: var(--mist-700);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.rank-number {
  color: var(--lotus-600);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 900;
}

.rank-content h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-content p {
  margin: 0 0 12px;
  color: var(--mist-700);
}

.detail-main {
  padding-top: 0;
}

.detail-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: var(--mist-900);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58) 50%, rgba(0, 0, 0, 0.36));
}

.detail-hero-inner {
  position: relative;
  z-index: 3;
  padding: 44px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.78);
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-info h1 {
  color: var(--white);
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.detail-meta-grid {
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.detail-meta-grid span {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-tags {
  margin-top: 22px;
}

.watch-section {
  margin-top: -48px;
  position: relative;
  z-index: 8;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.player-start span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lotus-500);
  box-shadow: 0 18px 42px rgba(73, 136, 116, 0.36);
  font-size: 28px;
}

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

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  font-size: 13px;
}

.detail-content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  padding: 60px 0 80px;
}

.detail-article,
.related-panel {
  padding: 32px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-article h2,
.related-panel h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 28px;
}

.detail-article p {
  margin: 0 0 28px;
  color: var(--mist-700);
  font-size: 17px;
}

.info-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--mist-200);
}

.related-list {
  grid-template-columns: 1fr;
}

.related-list .movie-card-horizontal {
  grid-template-columns: 120px 1fr;
}

.related-list .movie-card h3 {
  min-height: auto;
  font-size: 17px;
}

.related-list .movie-card p {
  min-height: auto;
  -webkit-line-clamp: 2;
}

.empty-state {
  display: none;
  padding: 42px;
  border-radius: 24px;
  text-align: center;
  color: var(--mist-500);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

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

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

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 54px 0;
}

.footer-inner h3 {
  margin: 0 0 12px;
}

.footer-inner ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-inner li {
  margin: 8px 0;
  color: var(--mist-700);
}

.footer-brand p {
  max-width: 430px;
  color: var(--mist-700);
}

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

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

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

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

  .detail-poster-wrap {
    max-width: 320px;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero {
    min-height: 620px;
  }

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

  .search-inner,
  .search-controls,
  .filter-panel,
  .footer-inner,
  .category-overview-grid,
  .movie-list-grid {
    grid-template-columns: 1fr;
  }

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

  .content-panel,
  .category-wall,
  .alt-section,
  .inner-hero {
    padding: 30px 20px;
    border-radius: 24px;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 76px 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 19px;
  }

  .hero-content h1,
  .inner-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .movie-grid,
  .compact-grid,
  .three-grid,
  .category-tile-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-horizontal .poster-card {
    min-height: 190px;
  }

  .detail-article,
  .related-panel {
    padding: 22px;
  }

  .rank-content p {
    display: none;
  }
}
