:root {
  --cream-50: #fffaf0;
  --cream-100: #fff1d9;
  --warm-50: #faf7f2;
  --warm-100: #f1e8dc;
  --warm-200: #d8c7b5;
  --warm-300: #b39b84;
  --warm-500: #7a6654;
  --warm-600: #5e4e40;
  --warm-800: #2a211a;
  --warm-900: #18120d;
  --tea-400: #49c99a;
  --tea-500: #28a978;
  --tea-600: #16835d;
  --tea-700: #0e6348;
  --gold: #f4c76b;
  --shadow-soft: 0 18px 45px rgba(42, 33, 26, 0.10);
  --shadow-strong: 0 24px 70px rgba(24, 18, 13, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.88);
  border-bottom: 1px solid rgba(216, 199, 181, 0.55);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--tea-500), var(--tea-700));
  box-shadow: 0 10px 30px rgba(22, 131, 93, 0.35);
}

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

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

.nav-link,
.mobile-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--warm-600);
  font-size: 0.95rem;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--tea-700);
  background: rgba(40, 169, 120, 0.12);
}

.menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(40, 169, 120, 0.12);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 19px;
  height: 2px;
  border-radius: 99px;
  background: var(--tea-700);
}

.mobile-panel {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--warm-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: 80px 22px 84px;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 1.2s ease;
}

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

.hero-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  color: #ffffff;
}

.hero-panel {
  max-width: 720px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 30px;
  background: rgba(24, 18, 13, 0.32);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-strong);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--tea-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button-primary,
.button-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--tea-500), var(--tea-700));
  box-shadow: 0 14px 30px rgba(22, 131, 93, 0.28);
}

.button-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 1.6rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.52);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 30px;
  background: var(--tea-400);
}

.main-content,
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px;
}

.section-block {
  margin-bottom: 64px;
}

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

.section-heading h2,
.page-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--tea-700);
  background: rgba(40, 169, 120, 0.12);
  white-space: nowrap;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  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-strong);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream-100), var(--warm-100));
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.50), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--tea-700);
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-glow,
.movie-card:hover .play-badge {
  opacity: 1;
}

.movie-card:hover .play-badge {
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  display: block;
  padding: 16px;
}

.movie-meta,
.card-meta {
  display: block;
  color: var(--warm-500);
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.movie-info strong {
  display: block;
  color: var(--warm-900);
  font-size: 1.08rem;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-info em {
  display: -webkit-box;
  min-height: 44px;
  margin: 9px 0 12px;
  color: var(--warm-600);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.55;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  background: rgba(40, 169, 120, 0.12);
  color: var(--tea-700);
}

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

.category-card {
  min-height: 150px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, var(--cream-100));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card strong {
  font-size: 1.2rem;
}

.category-card span,
.category-card p {
  color: var(--warm-600);
  margin: 0;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(42, 33, 26, 0.08);
}

.rank-number {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--tea-600);
  font-size: 1.3rem;
  font-weight: 800;
}

.rank-item img {
  width: 82px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--cream-100);
}

.rank-item strong,
.rank-item em {
  display: block;
}

.rank-item strong {
  line-height: 1.2;
}

.rank-item em {
  color: var(--warm-500);
  font-size: 0.86rem;
  font-style: normal;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  padding: 76px 22px 34px;
  background: radial-gradient(circle at top left, rgba(40, 169, 120, 0.18), transparent 36%), linear-gradient(135deg, var(--cream-50), #ffffff);
  border-bottom: 1px solid rgba(216, 199, 181, 0.45);
}

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

.page-hero p {
  max-width: 760px;
  color: var(--warm-600);
  font-size: 1.06rem;
}

.search-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 26px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid rgba(216, 199, 181, 0.72);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--warm-900);
  background: var(--warm-50);
  font: inherit;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--tea-500);
  box-shadow: 0 0 0 4px rgba(40, 169, 120, 0.12);
}

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 24px;
  text-align: center;
  color: var(--warm-600);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.empty-state.show {
  display: block;
}

.detail-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--warm-500);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.42));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-trigger {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--tea-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.play-trigger:hover {
  transform: scale(1.06);
}

.detail-body,
.detail-card {
  padding: 24px;
}

.detail-title {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-lead {
  color: var(--warm-600);
  font-size: 1.08rem;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--warm-600);
  background: var(--warm-50);
}

.detail-tags span {
  color: var(--tea-700);
  background: rgba(40, 169, 120, 0.12);
}

.article-block {
  margin-top: 28px;
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.article-block p {
  margin: 0;
  color: var(--warm-600);
}

.side-poster {
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream-100);
  box-shadow: var(--shadow-soft);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.site-footer {
  margin-top: 40px;
  background: var(--warm-900);
  color: var(--warm-200);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px 20px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-inner p {
  max-width: 540px;
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a:hover {
  color: var(--tea-400);
}

.copyright {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px 32px;
  border-top: 1px solid rgba(216, 199, 181, 0.18);
  color: var(--warm-300);
  font-size: 0.9rem;
}

.hidden-by-filter {
  display: none !important;
}

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

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

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

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

  .menu-button {
    display: inline-flex;
  }

  .mobile-panel.open {
    display: grid;
    gap: 8px;
  }

  .hero {
    min-height: 74vh;
  }

  .hero-slide {
    padding: 70px 16px 70px;
  }

  .hero-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-control {
    display: none;
  }

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

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

  .movie-info {
    padding: 13px;
  }

  .movie-info em {
    min-height: 40px;
    font-size: 0.86rem;
  }

  .rank-item {
    grid-template-columns: 36px 72px 1fr;
  }

  .search-panel {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

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

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

  .page-main,
  .main-content,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}
