:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --surface-soft: #fff8ed;
  --text: #171717;
  --muted: #6b6258;
  --line: rgba(120, 82, 36, 0.18);
  --brand: #b45309;
  --brand-dark: #78350f;
  --brand-soft: #f59e0b;
  --shadow: 0 24px 70px rgba(120, 53, 15, 0.16);
  --radius: 26px;
}

* {
  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:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 34rem),
    linear-gradient(180deg, #fffaf2 0%, var(--bg) 46%, #f5efe5 100%);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

main {
  min-height: 70vh;
}

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

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  box-shadow: 0 12px 30px rgba(180, 83, 9, 0.32);
}

.brand-text {
  font-size: clamp(18px, 2vw, 22px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: #4b4036;
}

.nav-link {
  position: relative;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-dark);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: #46382c;
  font-weight: 800;
}

.mobile-nav a:hover {
  background: #fff3dd;
  color: var(--brand-dark);
}

.hero-section {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  min-height: 650px;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 25% 10%, rgba(245, 158, 11, 0.5), transparent 30rem),
    linear-gradient(135deg, #111827, #78350f 52%, #f59e0b);
  box-shadow: var(--shadow);
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.72) 46%, rgba(120, 53, 15, 0.16) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.66), transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: clamp(28px, 6vw, 72px);
}

.hero-copy {
  max-width: 650px;
}

.pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill {
  padding: 8px 14px;
  color: #fff;
  background: rgba(180, 83, 9, 0.92);
  box-shadow: 0 14px 36px rgba(180, 83, 9, 0.25);
}

.eyebrow {
  color: var(--brand);
  font-size: 12px;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-description,
.page-hero p,
.detail-one-line {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

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

.hero-meta span,
.detail-meta span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.09);
}

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

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

.hero-tags span,
.detail-tags a,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags a {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.text-button,
.global-search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  box-shadow: 0 18px 38px rgba(180, 83, 9, 0.32);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.11);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  left: clamp(28px, 6vw, 72px);
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dot.active {
  width: 56px;
  background: #fff;
}

.hero-rank-card,
.category-overview-card,
.filter-panel,
.detail-article,
.global-search-box,
.site-footer {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-rank-card {
  align-self: stretch;
  padding: 24px;
  border-radius: 32px;
  overflow: auto;
}

.rank-card-head h2,
.section-heading h2,
.filter-panel h2,
.detail-article h2,
.category-overview-body h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hot-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.hot-list.mini {
  margin-top: 16px;
}

.hot-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 10px;
  padding: 12px;
  border-radius: 18px;
  background: #fff8ef;
  border: 1px solid rgba(245, 158, 11, 0.14);
  transition: transform 0.18s ease, background 0.18s ease;
}

.hot-item:hover {
  transform: translateX(4px);
  background: #fff2dc;
}

.hot-rank {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  font-weight: 900;
  font-size: 12px;
}

.hot-title {
  overflow: hidden;
  color: #21160e;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hot-meta {
  color: var(--muted);
  font-size: 12px;
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 58px auto;
}

.surface-section {
  padding: clamp(22px, 4vw, 36px);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 237, 0.86));
  border: 1px solid var(--line);
}

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

.section-heading.compact {
  align-items: center;
  margin-bottom: 16px;
}

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

.section-more,
.text-button {
  color: var(--brand-dark);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #3f1f0c, #b45309 62%, #f59e0b);
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.18);
}

.category-tile img,
.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.tile-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 70%);
}

.category-tile strong,
.category-tile span:not(.tile-glow) {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile span:not(.tile-glow) {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(120, 82, 36, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 15px 45px rgba(120, 53, 15, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(120, 53, 15, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.55), transparent 45%),
    linear-gradient(135deg, #1f2937, #78350f);
}

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

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.72));
}

.rank-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 6px 9px;
  background: rgba(180, 83, 9, 0.92);
}

.score-badge {
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.74);
}

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

.movie-card-title {
  display: block;
  overflow: hidden;
  color: #20150c;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.movie-card-desc {
  min-height: 42px;
  margin: 10px 0 0;
  color: #5d5147;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  color: var(--brand-dark);
  background: #fff3dd;
}

.page-hero,
.detail-hero {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.32), transparent 26rem),
    linear-gradient(135deg, #111827, #78350f 66%, #b45309);
  box-shadow: var(--shadow);
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(28px, 5vw, 58px);
}

.page-hero.small-hero {
  min-height: 280px;
}

.page-hero > div {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 16px;
  border-radius: 30px;
}

.category-cover {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1f2937, #b45309);
}

.category-overview-body p {
  color: var(--muted);
  line-height: 1.7;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 28px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 190px 220px;
  gap: 14px;
}

.filter-grid label,
.global-search-box {
  display: grid;
  gap: 7px;
}

.filter-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #261910;
  background: #fff;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(180, 83, 9, 0.45);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.result-count,
.global-search-meta {
  color: var(--muted);
  font-weight: 800;
}

.detail-hero {
  min-height: 640px;
  background: linear-gradient(135deg, #111827, #78350f);
}

.detail-inner {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 5vw, 56px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: end;
  margin-top: 40px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  background: linear-gradient(135deg, #1f2937, #b45309);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
  font-size: clamp(40px, 6vw, 78px);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #050505;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  min-width: 150px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  box-shadow: 0 18px 50px rgba(180, 83, 9, 0.45);
  font-weight: 900;
}

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

.detail-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.detail-article {
  padding: 26px;
  border-radius: 28px;
}

.detail-article p {
  color: #51463d;
  line-height: 1.9;
  font-size: 16px;
}

.global-search-box {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 16px;
  border-radius: 28px;
  margin-bottom: 12px;
}

.global-search-box button {
  border: 0;
  color: #fff;
  background: var(--brand-dark);
}

.global-search-meta {
  margin: 0 0 22px;
}

.site-footer {
  width: min(1240px, calc(100% - 32px));
  margin: 72px auto 28px;
  padding: 28px;
  border-radius: 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 28px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff3dd;
  font-weight: 800;
  font-size: 13px;
}

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

  .mobile-menu-button {
    display: flex;
  }

  body.menu-open .mobile-nav {
    display: block;
  }

  .hero-section,
  .page-hero {
    grid-template-columns: 1fr;
  }

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

  .hero-stage,
  .hero-content {
    min-height: 560px;
  }

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

  .category-overview-grid,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
  }

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

  .hero-section,
  .content-section,
  .page-hero,
  .detail-hero,
  .site-footer {
    width: min(100% - 22px, 1240px);
  }

  .hero-content,
  .page-hero,
  .detail-inner {
    padding: 24px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .hero-rank-card {
    max-height: none;
  }

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

  .filter-grid,
  .global-search-box,
  .footer-inner,
  .detail-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    align-items: start;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 160px;
  }
}
