* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #fff8ed;
  --surface: #ffffff;
  --surface-soft: #fff4dd;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.14);
  --brand: #b45309;
  --brand-dark: #78350f;
  --brand-soft: #f59e0b;
  --accent: #e11d48;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #fffdf7 42%, #fff8ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #78350f 0%, #c2410c 52%, #d97706 100%);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.24);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.25rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: #78350f;
  background: #fff7ed;
  box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.4);
}

.brand-text {
  font-size: 1.25rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1rem;
}

.nav-link {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: #ffedd5;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.header-search {
  display: flex;
  align-items: center;
  margin-left: auto;
  min-width: 280px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.header-search input,
.mobile-nav input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
}

.header-search input {
  flex: 1;
  min-width: 0;
  padding: 0.68rem 1rem;
  color: #111827;
  background: transparent;
}

.header-search button,
.hero-search button,
.mobile-nav button {
  border: 0;
  color: #fff;
  background: var(--brand);
  padding: 0.68rem 1rem;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.7rem;
}

.mobile-nav a {
  color: #fff7ed;
  padding: 0.65rem 0;
}

.mobile-nav form {
  display: flex;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #fff;
}

.mobile-nav input {
  flex: 1;
  padding: 0.75rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
  max-width: 1280px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.06) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 42%);
}

.hero-copy {
  position: absolute;
  left: clamp(1.25rem, 5vw, 4rem);
  bottom: clamp(1.25rem, 5vw, 4rem);
  max-width: 650px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 0.75rem;
  color: #f59e0b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h2,
.page-hero h1,
.hero-panel h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p,
.hero-panel p,
.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.hero-links,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  padding: 0.34rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.35);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

.hero-controls {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 2.2rem;
  background: #f59e0b;
}

.hero-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 2rem;
  padding: 2rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.95), rgba(234, 88, 12, 0.9)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.8), transparent 16rem);
  box-shadow: var(--shadow);
}

.hero-search {
  display: flex;
  overflow: hidden;
  margin-top: 1rem;
  border-radius: 999px;
  background: #fff;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1rem;
  background: transparent;
}

.hero-search button {
  padding-inline: 1.35rem;
}

.hero-links a {
  margin-top: 1rem;
  color: #fff7ed;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.section-wrap {
  max-width: 1280px;
  margin: 4rem auto 0;
  padding: 0 1.25rem;
}

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

.section-title span {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
}

.section-title a,
.text-link {
  color: var(--brand);
}

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

.category-chip {
  position: relative;
  min-height: 9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.15rem;
  background: linear-gradient(135deg, #fff, #fff7ed);
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.18);
}

.category-chip:hover,
.movie-card:hover,
.mini-card:hover,
.category-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(120, 53, 15, 0.16);
}

.category-chip strong,
.category-chip span {
  position: relative;
  z-index: 1;
  display: block;
}

.category-chip strong {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

.category-chip span {
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.play-dot,
.rank-badge {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
}

.play-dot {
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 0.75rem;
  top: 0.75rem;
  min-width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, #e11d48, #f97316);
  font-weight: 900;
}

.card-content {
  padding: 1rem;
}

.card-content h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.35;
}

.card-content h2 a:hover {
  color: var(--brand);
}

.card-content p {
  min-height: 3.2em;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag-row {
  margin-top: 0.75rem;
}

.tag-row span {
  font-size: 0.74rem;
  background: #fef3c7;
}

.ranking-band {
  border-radius: 2rem;
  padding: 2rem 1.25rem;
  background: linear-gradient(135deg, #78350f, #c2410c 52%, #e11d48);
  box-shadow: var(--shadow);
}

.light-title,
.light-title span,
.light-title a,
.light-title h2 {
  color: #fff;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

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

.mini-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  min-height: 11rem;
  background: #111827;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card img {
  height: 100%;
  min-height: 11rem;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.35s ease;
}

.mini-card span,
.mini-card strong {
  position: absolute;
  z-index: 1;
}

.mini-card span {
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  color: #fff;
  font-weight: 900;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.mini-card strong {
  top: 0.65rem;
  left: 0.65rem;
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  color: #fff;
  background: rgba(225, 29, 72, 0.9);
}

.page-hero {
  max-width: 1280px;
  margin: 1.5rem auto 0;
  padding: clamp(2rem, 6vw, 5rem) 1.25rem;
  color: #fff;
  border-radius: 0 0 2.5rem 2.5rem;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(194, 65, 12, 0.9)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.7), transparent 20rem);
}

.slim-hero,
.category-hero,
.ranking-hero {
  border-radius: 2rem;
}

.page-hero > div {
  max-width: 820px;
}

.breadcrumb {
  margin-top: 1rem;
  color: #fed7aa;
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #fff;
}

.category-list {
  display: grid;
  gap: 1.25rem;
}

.category-panel {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.2rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-panel h2 {
  margin: 0;
  font-size: 1.7rem;
}

.category-panel p {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

.filter-bar input,
.filter-bar select {
  min-height: 2.7rem;
  border-radius: 0.9rem;
  padding: 0 0.9rem;
  color: var(--text);
  background: #fff7ed;
}

.filter-bar input {
  flex: 1 1 260px;
}

.filter-bar select {
  flex: 0 1 170px;
}

.empty-state {
  margin: 2rem 0;
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.detail-layout {
  max-width: 1180px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
}

.detail-main {
  margin-top: 1rem;
}

.player-card {
  overflow: hidden;
  border-radius: 1.4rem;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
}

.player-cover[hidden] {
  display: none;
}

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

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(4.6rem, 9vw, 6.6rem);
  height: clamp(4.6rem, 9vw, 6.6rem);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  box-shadow: 0 16px 40px rgba(225, 29, 72, 0.4);
  transform: translate(-50%, -50%);
}

.detail-content {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
}

.detail-poster {
  overflow: hidden;
  border-radius: 1rem;
  background: #451a03;
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.one-line {
  color: var(--muted);
  line-height: 1.85;
}

.detail-tags span {
  background: #ffedd5;
}

.article-section {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
}

.article-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
}

.article-section p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
}

.site-footer {
  margin-top: 5rem;
  color: #fff7ed;
  background: linear-gradient(90deg, #78350f, #9a3412 45%, #b45309);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 2rem;
  padding: 3rem 1.25rem 2rem;
}

.footer-grid h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.footer-grid p {
  max-width: 420px;
  color: #fed7aa;
  line-height: 1.7;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin-bottom: 0.55rem;
  color: #ffedd5;
}

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

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1.1rem 1.25rem 1.5rem;
  color: #fed7aa;
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

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

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

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner {
    gap: 0.75rem;
  }

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

  .hero-copy {
    left: 1.2rem;
    right: 1.2rem;
    bottom: 4.2rem;
  }

  .hero-controls {
    left: 1.2rem;
    right: auto;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .category-movie-grid,
  .ranking-grid,
  .mini-grid,
  .four-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title,
  .category-panel-head {
    align-items: start;
    flex-direction: column;
  }

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

  .detail-poster {
    max-width: 240px;
  }

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

@media (max-width: 520px) {
  .brand-text {
    font-size: 1.05rem;
  }

  .hero,
  .section-wrap,
  .detail-layout {
    padding-inline: 0.85rem;
  }

  .hero-stage {
    min-height: 500px;
    border-radius: 1.3rem;
  }

  .hero-panel,
  .page-hero,
  .ranking-band {
    border-radius: 1.3rem;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .category-movie-grid,
  .ranking-grid,
  .mini-grid,
  .four-cols {
    grid-template-columns: 1fr;
  }

  .hero-copy h2,
  .hero-panel h1,
  .page-hero h1 {
    font-size: 2.15rem;
  }

  .filter-bar select {
    flex: 1 1 100%;
  }
}
