:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #b45309;
  --brand-dark: #92400e;
  --brand-light: #f59e0b;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0, #f8fafc 28rem);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

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

.brand {
  font-size: 1.22rem;
  flex: 0 0 auto;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 10px 25px rgba(180, 83, 9, 0.22);
  font-size: 0.82rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  color: #4b5563;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--brand);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 280px;
}

.nav-search input,
.hero-search input,
.filter-bar input,
.inline-filter input,
.mobile-nav input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.72rem 0.95rem;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.inline-filter input:focus,
.mobile-nav input:focus,
.filter-bar select:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.nav-search button,
.hero-search button,
.mobile-nav button {
  border: 0;
  color: #fff;
  border-radius: 0.85rem;
  padding: 0.72rem 1.05rem;
  background: var(--brand);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.mobile-nav button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.85rem;
  color: #111827;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-nav a {
  padding: 0.4rem 0;
  color: #374151;
}

.mobile-nav form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.hero {
  margin-top: 1rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 1.4rem;
  align-items: stretch;
}

.hero-intro,
.page-hero,
.detail-hero,
.section-block,
.category-overview-card,
.player-section,
.content-card {
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-intro {
  min-height: 36rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-intro::before {
  content: "";
  position: absolute;
  inset: auto -8rem -8rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.24), rgba(245, 158, 11, 0));
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-intro h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: #111827;
}

.hero-intro h1 {
  font-size: clamp(2.4rem, 5.5vw, 5.3rem);
}

.hero-intro p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  color: #4b5563;
  line-height: 1.85;
  font-size: 1.05rem;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 3rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transform: scale(1.015);
  color: #fff;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.70), rgba(180, 83, 9, 0.18)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p:not(.eyebrow) {
  max-width: 42rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span,
.movie-tags span,
.detail-tags a {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn-primary,
.btn-ghost,
.btn-small,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.95rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.btn-small {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  box-shadow: 0 14px 30px rgba(180, 83, 9, 0.25);
}

.btn-primary {
  padding: 0.85rem 1.25rem;
}

.btn-small {
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
}

.btn-ghost {
  padding: 0.85rem 1.25rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-small:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
  transform: rotate(1.5deg);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: clamp(1.5rem, 3vw, 3rem);
  bottom: 1.4rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dots button {
  width: 2.1rem;
  height: 0.42rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.is-active {
  background: #fff;
}

.hero-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.mini-card {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.06);
}

.mini-card img {
  width: 3.4rem;
  height: 4.6rem;
  object-fit: cover;
  border-radius: 0.75rem;
  background: #f3f4f6;
}

.mini-card span {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.section-block,
.page-hero,
.detail-hero,
.player-section {
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

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

.section-head h2,
.content-card h2,
.site-footer h2 {
  margin: 0;
  color: #111827;
}

.section-head h2,
.content-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

.section-link {
  color: var(--brand);
  background: var(--surface-soft);
  padding: 0.7rem 1rem;
  white-space: nowrap;
}

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

.category-card,
.category-overview-card {
  overflow: hidden;
}

.category-card {
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #ffffff, #fff7ed);
  min-height: 15rem;
  display: flex;
  flex-direction: column;
}

.category-card > a {
  padding: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.category-card span {
  color: var(--brand);
  font-weight: 900;
  font-size: 1.15rem;
}

.category-card strong {
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.65;
}

.category-card ul {
  margin: auto 0 0;
  padding: 0 1.15rem 1.15rem;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: #6b7280;
  font-size: 0.88rem;
}

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

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

.compact-grid,
.rank-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(17, 24, 39, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(17, 24, 39, 0.12);
}

.movie-poster {
  position: relative;
  display: block;
  background: #f3f4f6;
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.poster-badge,
.card-rank {
  position: absolute;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
}

.poster-badge {
  right: 0.65rem;
  top: 0.65rem;
  padding: 0.28rem 0.58rem;
  background: rgba(17, 24, 39, 0.76);
  font-size: 0.76rem;
}

.card-rank {
  left: 0.65rem;
  top: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
}

.movie-body {
  padding: 0.9rem;
}

.movie-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-body p {
  margin: 0 0 0.75rem;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags span,
.detail-tags a {
  background: #fffbeb;
  color: var(--brand);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem 12rem;
  gap: 0.75rem;
  margin: 1.2rem 0 1.4rem;
}

.inline-filter {
  min-width: min(22rem, 100%);
}

.category-overview-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.category-overview-card {
  padding: clamp(1.25rem, 2.2vw, 2rem);
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 1.2rem;
  align-items: center;
}

.category-overview-card h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.category-overview-card p {
  color: #6b7280;
  line-height: 1.8;
}

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

.detail-hero {
  background: radial-gradient(circle at 20% 0, rgba(245, 158, 11, 0.20), transparent 32rem), #fff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.breadcrumbs a {
  color: var(--brand);
}

.breadcrumbs a::after {
  content: "/";
  margin-left: 0.55rem;
  color: #d1d5db;
}

.detail-grid {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 1.4rem;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #f3f4f6;
}

.detail-copy h1 {
  font-size: clamp(2.1rem, 4vw, 4.6rem);
}

.detail-one {
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.85;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.detail-meta div {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
}

.detail-meta dt {
  color: #9ca3af;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.detail-meta dd {
  margin: 0;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 1.2rem;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #030712;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 55px rgba(17, 24, 39, 0.20);
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #030712;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background-image: linear-gradient(rgba(17, 24, 39, 0.38), rgba(17, 24, 39, 0.74)), var(--player-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover span {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
  padding-left: 0.25rem;
  font-size: 1.9rem;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.content-card {
  padding: clamp(1.25rem, 2vw, 2rem);
}

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

.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 3rem 1.25rem 2rem;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  color: #fff;
  font-size: 1.2rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.7;
}

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #6b7280;
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

  .nav-search {
    margin-left: auto;
  }

  .hero-shell,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-intro,
  .hero-carousel {
    min-height: 30rem;
  }

  .hero-rail,
  .compact-grid,
  .rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

  main {
    padding-inline: 0.9rem;
  }

  .hero-intro,
  .hero-carousel {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    grid-template-columns: 1fr;
    min-height: 36rem;
    padding-bottom: 4.5rem;
  }

  .hero-slide:not(.is-active) {
    display: none;
  }

  .hero-poster {
    max-width: 14rem;
    justify-self: center;
  }

  .hero-search,
  .filter-bar,
  .mobile-nav form {
    grid-template-columns: 1fr;
  }

  .hero-rail,
  .movie-grid,
  .compact-grid,
  .rank-grid,
  .category-grid,
  .mini-card-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-poster {
    max-width: 16rem;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-rail,
  .movie-grid,
  .compact-grid,
  .rank-grid,
  .category-grid,
  .mini-card-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 1rem;
  }

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