:root {
  color-scheme: light;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-deep: #78350f;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f9fafb;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f 0%, #9a3412 100%);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #92400e;
  background: #fbbf24;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.16);
}

.brand-name {
  font-size: 1.45rem;
  white-space: nowrap;
}

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

.nav-link {
  position: relative;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fde68a;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: #fbbf24;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.header-search input,
.mobile-nav input,
.catalog-toolbar input,
.search-panel input,
.search-panel select {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: #ffffff;
  border-radius: 999px;
  padding: 10px 14px;
}

.header-search button,
.mobile-nav button,
.catalog-toolbar button,
.search-panel button {
  border: 0;
  color: #ffffff;
  background: #d97706;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-nav button:hover,
.catalog-toolbar button:hover,
.search-panel button:hover {
  background: #b45309;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.hero-carousel {
  position: relative;
  height: min(72vh, 720px);
  min-height: 560px;
  color: #ffffff;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.35), transparent 34%), linear-gradient(90deg, #111827, #1f2937);
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 47%, rgba(0, 0, 0, 0.16) 100%);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #fcd34d;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.75;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  border-radius: 8px;
  font-weight: 750;
}

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

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

.primary-button {
  color: #ffffff;
  background: #d97706;
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32);
}

.secondary-button,
.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

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

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  font-size: 2rem;
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dots button.is-active {
  width: 30px;
  background: #f59e0b;
}

.home-section,
.catalog-section,
.detail-section,
.search-section {
  padding: 64px 0;
}

.home-section.soft {
  background: linear-gradient(90deg, #fffbeb 0%, #fff7ed 100%);
}

.home-section.dark {
  color: #ffffff;
  background: #111827;
}

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

.section-heading h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: 999px;
  background: #d97706;
}

.section-heading p {
  margin: 8px 0 0 18px;
  color: var(--muted);
}

.dark .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.section-more {
  color: #b45309;
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transform: translateY(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.dark .movie-card a {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.08);
}

.movie-card a:hover {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 24px 44px rgba(17, 24, 39, 0.16);
  transform: translateY(-8px);
}

.card-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.44), transparent 34%), linear-gradient(135deg, #111827, #78350f);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.28s ease;
}

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
  transition: opacity 0.24s ease;
}

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

.card-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  color: #ffffff;
  background: #d97706;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.card-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #d97706;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card a:hover .card-play {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body p {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark .card-body p {
  color: rgba(255, 255, 255, 0.68);
}

.card-meta,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-meta {
  justify-content: space-between;
  color: #6b7280;
  font-size: 0.82rem;
}

.mini-tags {
  margin-top: 10px;
}

.mini-tags span {
  padding: 4px 8px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

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

.category-tile {
  min-height: 138px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #78350f, #d97706);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.listing-hero,
.detail-hero,
.search-hero {
  position: relative;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.32), transparent 30%), linear-gradient(90deg, #111827 0%, #78350f 100%);
  overflow: hidden;
}

.listing-hero .container,
.search-hero .container {
  padding: 72px 0;
}

.listing-hero h1,
.search-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.listing-hero p,
.search-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.8;
}

.catalog-toolbar,
.search-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.catalog-toolbar strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.catalog-toolbar span {
  color: var(--muted);
}

.catalog-toolbar form,
.search-panel form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-toolbar input,
.search-panel input,
.search-panel select {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 38px;
}

.pagination a {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  color: #92400e;
  background: #ffffff;
  border: 1px solid #f3d19c;
  border-radius: 12px;
  font-weight: 800;
}

.pagination a.current,
.pagination a:hover {
  color: #ffffff;
  background: #d97706;
  border-color: #d97706;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(120, 53, 15, 0.78));
}

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

.detail-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: end;
  padding: 88px 0 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fcd34d;
  font-weight: 700;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.detail-copy p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.8;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: linear-gradient(135deg, #111827, #78350f);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

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

.player-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.48));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.play-circle {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  background: #d97706;
  border-radius: 999px;
  font-size: 2.5rem;
  box-shadow: 0 0 0 14px rgba(217, 119, 6, 0.22);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 12px;
}

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

.info-panel,
.content-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.info-panel {
  padding: 22px;
}

.info-panel h2,
.content-card h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 900;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-list div {
  display: grid;
  gap: 4px;
}

.info-list dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.info-list dd {
  margin: 0;
  font-weight: 760;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.75fr);
  gap: 28px;
  margin-top: 28px;
}

.content-card {
  padding: 26px;
}

.content-card p {
  color: #374151;
  font-size: 1.03rem;
  line-height: 1.9;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tags span {
  padding: 7px 12px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  font-weight: 750;
}

.search-panel {
  align-items: stretch;
  flex-direction: column;
}

.search-panel form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px 160px 130px;
}

.no-results {
  display: none;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed #d1d5db;
  border-radius: 18px;
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  line-height: 1.8;
}

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

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

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-control {
    display: none;
  }

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

  .category-tiles,
  .footer-inner,
  .detail-hero .container,
  .player-wrap,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

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

  .catalog-toolbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .brand-name {
    font-size: 1.15rem;
  }

  .hero-copy h1,
  .detail-copy h1 {
    letter-spacing: -0.03em;
  }

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

  .card-body {
    padding: 12px;
  }

  .home-section,
  .catalog-section,
  .detail-section,
  .search-section {
    padding: 42px 0;
  }

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

  .pagination a {
    min-width: 38px;
  }
}
