:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-300: #fdba74;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-700: #44403c;
  --stone-900: #1c1917;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --shadow-soft: 0 14px 40px rgba(120, 53, 15, 0.12);
  --shadow-card: 0 10px 28px rgba(120, 53, 15, 0.10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--stone-50), #ffffff 45%, var(--amber-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.narrow-container {
  max-width: 900px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.92);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.25);
  font-weight: 900;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  color: var(--orange-700);
  font-size: 22px;
  line-height: 1.1;
}

.brand-text small {
  color: var(--amber-600);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.mobile-nav-link {
  color: #7c2d12;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--amber-100);
  border: 0;
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #7c2d12;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

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

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding: 54px 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(253, 186, 116, 0.46), transparent 36%),
    radial-gradient(circle at 80% 16%, rgba(234, 88, 12, 0.22), transparent 32%),
    linear-gradient(135deg, #fff7ed 0%, #ffedd5 42%, #fff 100%);
}

.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-glow-one {
  left: -120px;
  top: 40px;
  background: #fdba74;
}

.hero-glow-two {
  right: -120px;
  bottom: 20px;
  background: #f97316;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-stage {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  color: #92400e;
  background: rgba(255, 237, 213, 0.92);
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 10px;
  color: #7c2d12;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 14px;
  color: var(--orange-700);
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #7c2d12;
  font-size: 18px;
}

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

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.tag-row span {
  padding: 5px 10px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-primary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.24);
}

.button-ghost {
  color: #9a3412;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

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

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  max-width: 380px;
  margin-left: auto;
  background: #fed7aa;
  border: 12px solid rgba(255, 255, 255, 0.74);
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(124, 45, 18, 0.24);
}

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

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

.hero-poster span {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 6px 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  border-radius: 999px;
  font-weight: 900;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: #fed7aa;
  border: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: var(--orange-600);
}

.content-section,
.page-main,
.detail-main {
  padding: 56px 0;
}

.soft-bg {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.75), rgba(255, 255, 255, 0.88));
}

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

.section-heading.tight {
  margin-bottom: 16px;
}

.section-heading h2,
.page-title h1,
.filter-panel h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading p,
.page-title p,
.filter-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--orange-700);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(234, 88, 12, 0.32);
  box-shadow: 0 20px 46px rgba(120, 53, 15, 0.16);
  transform: translateY(-5px);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fff7ed);
}

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

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

.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: var(--white);
  background: rgba(194, 65, 12, 0.94);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.score-badge {
  right: 10px;
  bottom: 10px;
  padding: 7px 8px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 7px 9px;
}

.movie-info {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-info h3 {
  margin: 0;
  color: var(--stone-900);
  font-size: 16px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--orange-600);
}

.movie-meta,
.movie-desc {
  margin: 0;
}

.movie-meta {
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 700;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.1em;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.filter-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
}

.filter-controls label {
  display: grid;
  gap: 7px;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
}

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

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--orange-600);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.filter-count {
  margin: 0;
  color: var(--orange-700);
  font-weight: 800;
}

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

.category-card a {
  display: grid;
  overflow: hidden;
  height: 100%;
  background: var(--white);
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card a:hover {
  box-shadow: 0 20px 46px rgba(120, 53, 15, 0.16);
  transform: translateY(-4px);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 150px;
  background: var(--amber-100);
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-content {
  padding: 20px;
}

.category-content span {
  color: var(--orange-700);
  font-size: 13px;
  font-weight: 900;
}

.category-content h2 {
  margin: 6px 0 8px;
  color: var(--stone-900);
}

.category-content p {
  margin: 0;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--orange-700);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
  padding: 28px;
  background:
    radial-gradient(circle at 10% 20%, rgba(253, 186, 116, 0.36), transparent 34%),
    linear-gradient(135deg, #fff7ed, #ffffff);
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--amber-100);
  border-radius: 24px;
  box-shadow: 0 22px 52px rgba(120, 53, 15, 0.18);
}

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

.detail-copy h1 {
  margin: 18px 0 12px;
  color: var(--stone-900);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
}

.detail-one-line {
  margin: 0;
  color: #7c2d12;
  font-size: 18px;
}

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

.detail-meta-grid div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 14px;
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--orange-700);
  font-size: 17px;
}

.player-section,
.detail-content,
.about-panel {
  margin-bottom: 34px;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1c1917, #44403c);
  border-radius: 22px;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--white);
  background: radial-gradient(circle, rgba(217, 119, 6, 0.24), rgba(0, 0, 0, 0.62));
  border: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  padding-left: 4px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.3);
  font-size: 28px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  padding: 7px 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  border-radius: 999px;
  font-size: 13px;
}

.detail-content article {
  display: grid;
  gap: 14px;
}

.detail-content h2,
.about-panel h2 {
  margin: 8px 0 0;
  color: var(--stone-900);
  font-size: 24px;
}

.detail-content p,
.about-panel p {
  margin: 0;
  color: var(--stone-700);
}

.related-section {
  padding-top: 24px;
}

.about-panel {
  display: grid;
  gap: 24px;
  padding: 34px;
}

.about-panel h1 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(30px, 4vw, 46px);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-stats div {
  padding: 20px;
  background: var(--amber-50);
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-md);
}

.about-stats strong {
  display: block;
  color: var(--orange-700);
  font-size: 34px;
}

.about-stats span {
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  color: var(--amber-100);
  background: linear-gradient(135deg, #7c2d12, #431407);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 28px;
  padding: 46px 0;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fdba74;
}

.footer-grid p,
.footer-grid ul {
  margin: 0;
  padding: 0;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

.footer-grid a {
  color: var(--amber-100);
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 16px;
  text-align: center;
  color: #fed7aa;
  border-top: 1px solid rgba(255, 237, 213, 0.12);
}

[hidden] {
  display: none !important;
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 34px 0;
  }

  .hero-stage {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-poster {
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .section-heading,
  .page-title {
    display: grid;
    align-items: start;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

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

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

  .detail-cover {
    width: min(320px, 100%);
    margin: 0 auto;
  }

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

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy h2 {
    font-size: 24px;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 16px;
  }

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

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 14px;
  }

  .category-grid,
  .footer-grid,
  .about-stats {
    grid-template-columns: 1fr;
  }

  .detail-hero,
  .player-section,
  .detail-content,
  .about-panel {
    padding: 18px;
    border-radius: 20px;
  }
}
