:root {
  --color-page: #f9fafb;
  --color-card: #ffffff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-brand: #d97706;
  --color-brand-dark: #b45309;
  --color-brand-soft: #fef3c7;
  --color-orange: #ea580c;
  --shadow-card: 0 16px 45px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100% - 32px, var(--max-width));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-brand), var(--color-orange));
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-menu a,
.mobile-menu a {
  color: #374151;
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.mobile-menu a:hover,
.nav-menu a.is-active,
.mobile-menu a.is-active {
  color: var(--color-brand-dark);
  background: var(--color-brand-soft);
}

.menu-toggle {
  display: none;
  border: 0;
  background: #fff7ed;
  color: var(--color-brand-dark);
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.main {
  min-height: 72vh;
}

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

.section {
  padding: 68px 0;
}

.section-tight {
  padding: 44px 0;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--color-brand-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 17px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 74vh;
  background: radial-gradient(circle at 15% 15%, rgba(251, 191, 36, 0.38), transparent 28%), linear-gradient(135deg, #fef3c7 0%, #fff7ed 48%, #fefce8 100%);
}

.hero-carousel {
  position: relative;
  min-height: 74vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(2px) saturate(1.08);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 247, 237, 0.76), rgba(255, 247, 237, 0.36));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 44px;
  align-items: center;
  padding: 92px 0 82px;
}

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

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h1 span,
.hero-copy h2 span {
  display: block;
  color: var(--color-brand-dark);
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #4b5563;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tag-pill,
.hero-tags span,
.movie-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #92400e;
  background: rgba(254, 243, 199, 0.92);
  font-size: 13px;
  font-weight: 750;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-brand), var(--color-orange));
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.24);
}

.btn-secondary {
  color: #92400e;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.btn-ghost {
  color: #374151;
  background: #ffffff;
  border: 1px solid var(--color-line);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.14);
}

.hero-poster-card {
  justify-self: end;
  width: min(100%, 430px);
  padding: 14px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 64px rgba(120, 53, 15, 0.24);
  backdrop-filter: blur(18px);
}

.hero-poster-card a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 500px;
  background: #f3f4f6;
}

.hero-poster-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster-card:hover img {
  transform: scale(1.04);
}

.poster-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.poster-caption strong {
  display: block;
  font-size: 22px;
}

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

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.25);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--color-brand-dark);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.search-panel input,
.filter-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 14px 16px;
  background: #ffffff;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-panel input:focus,
.filter-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.category-strip a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #92400e;
  background: #fff7ed;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-strip a:hover {
  color: #ffffff;
  background: var(--color-brand);
  transform: translateY(-2px);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 20px;
  background: var(--color-card);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: var(--shadow-card);
}

.movie-card.is-hidden {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f3f4f6;
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 48%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .movie-poster::after {
  opacity: 1;
}

.movie-year,
.rank-badge,
.movie-region {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.movie-region {
  left: auto;
  right: 12px;
  max-width: calc(100% - 24px);
}

.movie-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

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

.movie-body {
  padding: 16px;
}

.movie-title {
  display: block;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.32;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--color-brand-dark);
}

.movie-line {
  display: -webkit-box;
  min-height: 46px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  align-items: end;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.18);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.2;
}

.category-card p {
  position: relative;
  margin: 0;
  color: var(--color-muted);
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 80% 20%, rgba(253, 230, 138, 0.24), transparent 30%), linear-gradient(135deg, var(--color-brand), var(--color-orange));
  padding: 72px 0;
}

.page-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #6b7280;
  font-size: 14px;
  margin: 24px 0;
}

.breadcrumb a {
  color: #92400e;
  font-weight: 750;
}

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

.detail-main,
.detail-side,
.content-card {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-main {
  overflow: hidden;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.48);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-brand), var(--color-orange));
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease;
}

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

.detail-content {
  padding: 30px;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-intro {
  margin: 18px 0;
  color: #4b5563;
  font-size: 18px;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.review-box {
  border-left: 4px solid var(--color-brand);
  border-radius: 0 16px 16px 0;
  padding: 18px;
  background: #fffbeb;
  color: #374151;
}

.detail-side {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: #f3f4f6;
}

.meta-list {
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 10px;
  color: #6b7280;
}

.meta-item strong {
  color: #111827;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 56px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.ranking-number {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-brand), var(--color-orange));
  font-weight: 900;
}

.ranking-thumb {
  width: 92px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #f3f4f6;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info h2,
.ranking-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
}

.ranking-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.empty-message {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--color-muted);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

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

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 48px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-inner a {
  display: block;
  color: #d1d5db;
  margin: 8px 0;
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: #fbbf24;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 18px;
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
}

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

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

  .detail-side {
    position: static;
  }
}

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 72px;
  }

  .hero-poster-card {
    justify-self: start;
    width: 100%;
  }

  .hero-poster-card a,
  .hero-poster-card img {
    min-height: 320px;
    height: 320px;
  }

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

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

  .ranking-item {
    grid-template-columns: 42px 78px minmax(0, 1fr);
  }

  .ranking-item .btn-ghost {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 24px, var(--max-width));
  }

  .brand {
    font-size: 19px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .hero,
  .hero-carousel {
    min-height: 78vh;
  }

  .hero-inner,
  .container,
  .footer-inner {
    width: min(100% - 24px, var(--max-width));
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 42px;
  }

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

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

  .movie-body {
    padding: 12px;
  }

  .movie-title {
    font-size: 16px;
  }

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

  .detail-content {
    padding: 20px;
  }

  .play-button {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

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