:root {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --yellow: #fef3c7;
  --shadow: 0 18px 45px rgba(154, 52, 18, 0.12);
  --shadow-strong: 0 24px 60px rgba(124, 45, 18, 0.22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 42%, #ffffff 100%);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 8px 30px rgba(154, 52, 18, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #b45309, var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.nav-link {
  padding: 8px 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: #4b5563;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--orange-dark);
  background: #fff7ed;
  cursor: pointer;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  padding: 68px 0 38px;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 44%, #f59e0b 100%);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.24), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(254, 243, 199, 0.36), transparent 32%),
    linear-gradient(90deg, rgba(124, 45, 18, 0.22), transparent 52%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.42;
  pointer-events: none;
}

.hero-glow-one {
  width: 360px;
  height: 360px;
  left: -110px;
  top: 60px;
  background: #fde68a;
}

.hero-glow-two {
  width: 300px;
  height: 300px;
  right: 4%;
  bottom: -80px;
  background: #ffedd5;
}

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

.hero-slide {
  display: none;
  min-height: 520px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

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

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-copy h1 em {
  color: #fef3c7;
  font-style: normal;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 680px;
  color: #fff7ed;
  font-size: clamp(1.03rem, 2.2vw, 1.35rem);
  line-height: 1.85;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span {
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.84);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.34);
  filter: saturate(1.05);
}

.button-light {
  color: var(--orange-dark);
  background: #ffffff;
}

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

.button-muted {
  color: var(--orange-dark);
  background: #fff7ed;
  box-shadow: none;
}

.button-small {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.hero-poster {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.25);
  border-radius: 34px;
  background: linear-gradient(135deg, #7c2d12, #fb923c);
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

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

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

.hero-poster img,
.poster img {
  transition: transform 0.45s ease;
}

.poster-fallback {
  display: none;
}

.poster-missing .poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ffffff;
  font-size: clamp(1.2rem, 4vw, 2.3rem);
  font-weight: 900;
  text-align: center;
  background:
    radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.20), transparent 34%),
    linear-gradient(135deg, #92400e, #f97316 52%, #fbbf24);
}

.hero-score {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: #7c2d12;
  background: #fef3c7;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 24px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.hero-category-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.hero-category-strip span {
  font-weight: 900;
}

.hero-category-strip a {
  padding: 7px 12px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.feature-bar,
.stats-band {
  padding: 42px 0;
  background: #ffffff;
}

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

.feature-grid div,
.stats-grid div {
  padding: 24px;
  border-radius: 24px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.feature-grid strong,
.stats-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #9a3412;
  font-size: 1.15rem;
}

.feature-grid span,
.stats-grid span {
  color: var(--muted);
}

.stats-grid strong {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}

.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.listing-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: end;
  margin: 46px auto 26px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.simple-head {
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange-dark);
}

.listing-head h1,
.section-title h2,
.content-card h2,
.related-section h2,
.category-card-head span,
.not-found h1 {
  margin: 0;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.listing-head h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
}

.listing-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.search-control {
  grid-column: 1 / -1;
}

.filter-control {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #374151;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-result {
  grid-column: 1 / -1;
  margin: 0;
  color: #9a3412;
  font-weight: 700;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(154, 52, 18, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card[hidden] {
  display: none;
}

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

.year-badge,
.rank-badge,
.play-hover {
  position: absolute;
  z-index: 2;
}

.year-badge,
.rank-badge {
  top: 10px;
  padding: 6px 9px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.year-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.play-hover {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: #ffffff;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
}

.movie-card:hover .poster::after {
  background: rgba(0, 0, 0, 0.22);
}

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

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 900;
}

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

.movie-meta,
.movie-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.movie-line {
  margin-top: 8px;
  display: -webkit-box;
  min-height: 2.85em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.text-link {
  color: var(--orange-dark);
  font-weight: 900;
}

.text-link:hover {
  color: #9a3412;
}

.rating {
  color: #b45309;
  font-size: 0.85rem;
  font-weight: 900;
}

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

.category-card {
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.category-card-head span {
  font-size: 1.55rem;
}

.category-card-head strong {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  border-radius: 999px;
  padding: 6px 12px;
}

.category-card p {
  color: var(--muted);
  line-height: 1.8;
}

.category-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.category-card li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.category-card li a {
  overflow: hidden;
  color: #374151;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 32px;
  border-radius: 34px;
  background:
    radial-gradient(circle at right top, rgba(251, 191, 36, 0.28), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  box-shadow: var(--shadow);
}

.detail-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  box-shadow: var(--shadow-strong);
}

.detail-info h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 1.12rem;
  line-height: 1.85;
}

.detail-meta span {
  color: #7c2d12;
  background: #ffedd5;
}

.large-tags span {
  min-height: 32px;
}

.player-section,
.content-card,
.related-section,
.ranking-note,
.detail-nav-links {
  margin-top: 26px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow-strong);
}

.site-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle, rgba(249, 115, 22, 0.35), rgba(17, 24, 39, 0.75)),
    linear-gradient(135deg, rgba(17, 24, 39, 0.35), rgba(124, 45, 18, 0.64));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.player-icon {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: #ffffff;
  border-radius: 999px;
  font-size: 1.8rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
  font-size: 1.6rem;
}

.player-overlay small {
  color: #ffedd5;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
}

.content-card {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.content-card h2,
.related-section h2 {
  margin-bottom: 14px;
  font-size: 1.8rem;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 1.04rem;
  line-height: 2;
}

.detail-nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-nav-links a,
.ranking-note {
  padding: 18px;
  border-radius: 22px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-weight: 800;
}

.detail-nav-links a:last-child {
  text-align: right;
}

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

.site-footer {
  margin-top: 28px;
  background: #ffffff;
  border-top: 1px solid #fed7aa;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
  gap: 28px;
  padding: 42px 0 28px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #111827;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px;
  border-top: 1px solid #ffedd5;
  font-size: 0.9rem;
}

.not-found {
  padding: 96px 0;
  text-align: center;
}

.not-found strong {
  color: var(--orange);
  font-size: 6rem;
  line-height: 1;
}

.not-found p {
  color: var(--muted);
}

.centered-actions {
  justify-content: center;
}

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-strong);
  }

  body.nav-open .main-nav {
    display: grid;
    justify-content: stretch;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7ed;
  }

  .hero-slide,
  .detail-hero,
  .listing-head,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    padding-top: 42px;
  }

  .hero-slide {
    min-height: 0;
  }

  .hero-poster {
    min-height: 420px;
    transform: none;
  }

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

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

@media (max-width: 640px) {
  .container,
  .page-main,
  .detail-main {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-text small {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-poster {
    min-height: 360px;
    border-width: 6px;
    border-radius: 26px;
  }

  .feature-grid,
  .stats-grid,
  .filter-panel,
  .category-grid,
  .detail-nav-links {
    grid-template-columns: 1fr;
  }

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

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

  .movie-line {
    display: none;
  }

  .detail-hero,
  .listing-head,
  .content-card {
    padding: 20px;
    border-radius: 24px;
  }

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

  .detail-nav-links a:last-child {
    text-align: left;
  }
}
