:root {
  --bg: #fff8ed;
  --bg-soft: #fffdf8;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.14);
  --amber: #d97706;
  --amber-dark: #92400e;
  --amber-soft: #fff3d2;
  --shadow: 0 24px 60px rgba(146, 64, 14, 0.14);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 34rem),
    linear-gradient(180deg, #fff8ed 0%, #ffffff 38%, #fff8ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  width: 100%;
}

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

.header-inner,
.footer-inner,
.content-section,
.quick-search-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-dark);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.35);
}

.desktop-nav,
.mobile-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.footer-links a {
  padding: 10px 16px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.footer-links a:hover {
  color: var(--amber-dark);
  background: var(--amber-soft);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-dark);
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.mobile-nav.is-open {
  display: flex;
  flex-wrap: wrap;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.62) 45%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0.05) 42%, rgba(17, 24, 39, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 90px;
  color: #ffffff;
}

.hero-site-title,
.hero-kicker,
.section-kicker {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 780px;
  margin-top: 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-movie-title {
  color: #fde68a;
}

.hero-summary {
  max-width: 680px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.card-link,
.quick-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.quick-search-form button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.32);
}

.primary-button:hover,
.ghost-button:hover,
.card-link:hover,
.quick-search-form button:hover {
  transform: translateY(-2px);
}

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

.ghost-button.dark {
  color: var(--amber-dark);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fbbf24;
}

.quick-search-section {
  position: relative;
  z-index: 5;
  margin-top: -56px;
}

.quick-search-card,
.filter-panel,
.copy-card,
.category-card,
.movie-card,
.ranking-aside,
.page-hero,
.player-section {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.quick-search-card {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
}

.quick-search-card h2,
.section-heading h2,
.page-hero h1,
.detail-intro h1,
.player-section h2,
.copy-card h2 {
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.quick-search-card h2 {
  font-size: 28px;
}

.quick-search-card p,
.page-hero p,
.copy-card p,
.player-section p {
  color: var(--muted);
  line-height: 1.8;
}

.quick-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid var(--line);
}

.quick-search-form input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  outline: none;
  color: #111827;
  background: transparent;
}

.quick-category-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-category-links a,
.detail-tags span,
.tag-line span,
.movie-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--amber-dark);
  border-radius: 999px;
  background: var(--amber-soft);
  font-size: 12px;
  font-weight: 800;
}

.content-section {
  padding: 76px 0;
}

.muted-section {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: rgba(255, 247, 237, 0.72);
}

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

.section-heading h2 {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 44px);
}

.section-heading a {
  color: var(--amber-dark);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(146, 64, 14, 0.2);
}

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

.poster-link img,
.category-cover-stack img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.32);
}

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

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

.movie-card h3 {
  margin-top: 12px;
  color: #111827;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
}

.movie-card p {
  display: -webkit-box;
  min-height: 50px;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-line {
  margin-top: 14px;
}

.card-link {
  width: 100%;
  margin-top: 16px;
  color: #ffffff;
  background: #111827;
}

.compact-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 164px;
}

.compact-card .poster-link {
  aspect-ratio: auto;
  height: 100%;
}

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

.compact-card h3 {
  font-size: 17px;
}

.compact-card .card-link,
.compact-card .tag-line {
  display: none;
}

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

.category-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(146, 64, 14, 0.18);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  height: 140px;
  overflow: hidden;
  border-radius: 18px;
}

.category-card h2 {
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.two-column-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 30px;
}

.ranking-aside {
  align-self: start;
  padding: 24px;
  border-radius: 28px;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  padding: clamp(40px, 6vw, 78px);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.28), transparent 30rem),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

.page-hero h1 {
  margin-top: 10px;
  font-size: clamp(38px, 6vw, 66px);
}

.page-hero p {
  max-width: 760px;
  margin-top: 16px;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 900;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-control {
  min-height: 46px;
  min-width: 170px;
  padding: 0 14px;
  color: #111827;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  outline: none;
}

.search-field .filter-control {
  width: 100%;
}

.empty-state {
  display: none;
  padding: 36px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 22px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 38px;
  width: min(1180px, calc(100% - 32px));
  margin: 46px auto 0;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.26), transparent 28rem),
    #ffffff;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  background: #fff3d2;
  box-shadow: 0 24px 50px rgba(17, 24, 39, 0.18);
}

.detail-intro {
  align-self: center;
}

.detail-intro h1 {
  margin-top: 12px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
}

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

.detail-meta span {
  display: inline-flex;
  padding: 8px 12px;
  color: #ffffff;
  border-radius: 999px;
  background: #111827;
  font-weight: 800;
}

.detail-one-line {
  max-width: 760px;
  margin-top: 22px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.85;
}

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

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 30px;
}

.player-section h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.player-shell {
  position: relative;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 24px 50px rgba(217, 119, 6, 0.4);
  font-size: 34px;
}

.play-layer strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

.detail-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.copy-card {
  padding: 28px;
  border-radius: 28px;
}

.copy-card h2 {
  margin-bottom: 14px;
  font-size: 30px;
}

.site-footer {
  margin-top: 40px;
  padding: 44px 0;
  color: #6b7280;
  border-top: 1px solid var(--line);
  background: #fffdf8;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand {
  margin-bottom: 10px;
}

@media (max-width: 1120px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-column-layout,
  .detail-copy {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-slider {
    min-height: 640px;
  }

  .quick-search-card,
  .filter-panel,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

  .filter-control {
    min-width: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .header-inner,
  .footer-inner,
  .content-section,
  .quick-search-section,
  .page-hero,
  .detail-hero,
  .player-section {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .movie-grid,
  .category-grid,
  .compact-grid,
  .filter-selects {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 104px 1fr;
  }

  .quick-search-form {
    align-items: stretch;
    flex-direction: column;
    border-radius: 22px;
  }

  .quick-search-form input {
    min-height: 46px;
  }

  .detail-intro h1 {
    font-size: 38px;
  }
}
