:root {
  color-scheme: light;
  --bg: #fff8ed;
  --bg-soft: #fff3dc;
  --surface: #ffffff;
  --surface-strong: #fffaf2;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(120, 53, 15, 0.13);
  --brand: #f59e0b;
  --brand-strong: #ea580c;
  --brand-dark: #7c2d12;
  --shadow: 0 18px 50px rgba(124, 45, 18, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.2), transparent 28rem),
    linear-gradient(180deg, #fff7e6 0%, #ffffff 45%, #fff3de 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 237, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.main-nav a {
  padding: 10px 14px;
  color: #374151;
  border-radius: 999px;
  transition: all 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #9a3412;
  background: rgba(251, 191, 36, 0.18);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 32vw);
  padding: 6px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.07);
}

.header-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font: inherit;
}

.header-search input {
  padding: 8px 12px;
}

.header-search button,
.filter-panel button,
.primary-btn,
.secondary-btn,
.player-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-btn,
.player-button {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.25);
}

.header-search button {
  padding: 8px 15px;
}

.primary-btn,
.secondary-btn,
.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
}

.secondary-btn {
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.primary-btn:hover,
.secondary-btn:hover,
.player-button:hover,
.header-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.31);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--brand-dark);
  background: rgba(251, 191, 36, 0.18);
  font-size: 1.25rem;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  color: white;
  background: #111827;
}

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

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.64) saturate(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.94), transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 78vh;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 86px;
}

.hero-copy {
  width: min(760px, 100%);
  animation: rise 0.8s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.22);
}

.hero .eyebrow {
  color: white;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.94), rgba(234, 88, 12, 0.94));
}

.hero h1,
.hero h2 {
  margin: 18px 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

.hero-text {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.85;
}

.hero-tags,
.tag-list,
.detail-tags,
.breadcrumbs,
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 22px 0 30px;
}

.hero-tags span,
.tag-list span,
.detail-tags span,
.breadcrumbs a,
.breadcrumbs span,
.category-pills a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  line-height: 1;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

.hero-dots {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 44px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
}

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

.section {
  padding: 72px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
  margin: 10px 0 0;
  color: #1f2937;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p,
.page-title p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

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

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

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

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: white;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  transform: scale(0.92);
  transition: transform 0.25s ease, background 0.25s ease;
}

.movie-card:hover .play-dot {
  transform: scale(1);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 9px;
  color: white;
  border-radius: 13px;
  background: linear-gradient(135deg, #111827, #7c2d12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

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

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

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

.movie-meta,
.movie-desc,
.muted {
  color: var(--muted);
}

.movie-meta {
  margin: 0 0 8px;
  font-size: 0.86rem;
}

.movie-desc {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 12px;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list span,
.detail-tags span,
.category-pills a {
  color: #9a3412;
  background: #fff1d6;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.78), transparent 7rem),
    linear-gradient(135deg, rgba(251, 191, 36, 0.88), rgba(234, 88, 12, 0.82));
  color: white;
  box-shadow: var(--shadow);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-card span {
  display: inline-flex;
  padding: 8px 13px;
  color: #7c2d12;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.page-hero {
  padding: 70px 0 42px;
}

.page-title {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 20%, rgba(251, 191, 36, 0.28), transparent 16rem),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.breadcrumbs {
  margin-bottom: 18px;
}

.breadcrumbs a,
.breadcrumbs span {
  color: #9a3412;
  background: rgba(251, 191, 36, 0.16);
}

.filter-panel {
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
}

.filter-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.filter-row label {
  display: grid;
  gap: 8px;
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 800;
}

.filter-row input,
.filter-row select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(120, 53, 15, 0.16);
  border-radius: 14px;
  background: #fffaf2;
}

.filter-row button {
  min-height: 46px;
  padding: 0 18px;
  color: #7c2d12;
  background: #fff1d6;
}

.filter-result {
  margin: 12px 0 0;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: start;
  padding: 44px 0 70px;
}

.player-shell,
.detail-panel,
.content-block {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.player-shell {
  overflow: hidden;
}

.video-frame {
  position: relative;
  background: #111827;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.46));
}

.video-overlay .player-button {
  pointer-events: auto;
}

.player-note {
  display: none;
  margin: 0;
  padding: 14px 18px;
  color: #92400e;
  background: #fff7ed;
  border-top: 1px solid rgba(120, 53, 15, 0.12);
}

.player-note.is-visible {
  display: block;
}

.detail-title {
  padding: 24px;
}

.detail-title h1 {
  margin-top: 8px;
}

.detail-title p {
  color: var(--muted);
  line-height: 1.85;
}

.detail-tags {
  margin-top: 18px;
}

.detail-panel {
  padding: 24px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.detail-panel dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px 18px;
  margin: 22px 0 0;
}

.detail-panel dt {
  color: #92400e;
  font-weight: 900;
}

.detail-panel dd {
  margin: 0;
  color: var(--muted);
}

.content-block {
  margin-top: 22px;
  padding: 26px;
}

.content-block h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.content-block p {
  color: #4b5563;
  line-height: 1.9;
}

.site-footer {
  padding: 54px 0;
  background: #111827;
  color: white;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
  min-width: 160px;
}

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

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(120, 53, 15, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

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

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

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

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

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

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: auto;
    padding: 12px 0;
  }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 8px;
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .header-search {
    order: 2;
    width: 100%;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero,
  .hero-content {
    min-height: 74vh;
  }

  .hero-content {
    padding: 100px 0 76px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 28px;
  }

  .section {
    padding: 50px 0;
  }

  .section-heading,
  .footer-inner {
    display: block;
  }

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

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

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

  .page-title {
    padding: 28px;
  }
}
