:root {
  --color-amber: #d97706;
  --color-amber-light: #f59e0b;
  --color-orange: #ea580c;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-bg: #ffffff;
  --color-soft: #f9fafb;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-logo__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.3);
  transition: transform 0.25s ease;
}

.site-logo:hover .site-logo__mark {
  transform: scale(1.08) rotate(6deg);
}

.site-logo__text {
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: #374151;
  border-radius: 12px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-amber);
  background: #fff7ed;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.mobile-menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #374151;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.mobile-nav.is-open {
  display: grid;
  gap: 4px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at center, #f59e0b, #111827 65%);
  transform: scale(1.02);
}

.hero-slide__image.image-missing,
.movie-card img.image-missing,
.update-card img.image-missing,
.feature-tile img.image-missing,
.rail-card img.image-missing,
.category-card img.image-missing,
.player-shell video[poster].image-missing {
  opacity: 0;
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.12));
}

.hero-slide__content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 78px;
  width: min(760px, calc(100% - 64px));
  color: #ffffff;
}

.hero-slide__badges,
.detail-meta,
.page-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-slide__badges span,
.detail-meta span,
.page-hero__stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  background: rgba(245, 158, 11, 0.92);
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
}

.hero-slide h1 {
  max-width: 900px;
  margin: 18px 0 16px;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-slide p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber-light), var(--color-orange));
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.32);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow--prev {
  left: 24px;
}

.hero-arrow--next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--color-amber-light);
}

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

.section--overlap {
  position: relative;
  z-index: 20;
  margin-top: -46px;
  padding-top: 0;
}

.section--warm,
.section--muted {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
}

.section--warm {
  background: linear-gradient(90deg, #ffedd5, #fef3c7);
}

.section--muted {
  background: #f8fafc;
}

.section--two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
}

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

.section-heading--simple {
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--color-amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.page-hero h1,
.detail-info h1,
.content-card h2 {
  margin: 0;
  color: #111827;
  letter-spacing: -0.04em;
}

.section h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
}

.text-link {
  color: var(--color-amber);
  font-weight: 800;
}

.quick-search__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.quick-search__card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.quick-search__form {
  display: flex;
  gap: 12px;
}

.quick-search__form input,
.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-search__form input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--color-amber-light);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #111827);
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.movie-card__rating,
.movie-card__duration {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-card__rating {
  left: 12px;
  background: rgba(245, 158, 11, 0.94);
}

.movie-card__duration {
  right: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.movie-card__body {
  display: block;
  padding: 16px;
}

.movie-card__title {
  display: -webkit-box;
  min-height: 1.55em;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card__title {
  color: var(--color-amber);
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.movie-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-card__desc {
  display: -webkit-box;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card--compact .movie-card__poster {
  aspect-ratio: 16 / 9;
}

.movie-card--compact .movie-card__desc {
  display: none;
}

.category-pills {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 8px;
  overflow-x: auto;
}

.category-pills a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-weight: 800;
}

.category-pills span {
  color: #ffffff;
  background: var(--color-amber);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
}

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

.feature-tile {
  position: relative;
  height: 320px;
  overflow: hidden;
  color: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.feature-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-tile:hover img {
  transform: scale(1.1);
}

.feature-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
}

.feature-tile__content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.feature-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.6rem;
  font-weight: 900;
}

.feature-tile span span,
.feature-tile__content > span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  background: var(--color-amber-light);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-tile em {
  display: -webkit-box;
  color: #e5e7eb;
  font-style: normal;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.update-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.update-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #111827);
  border-radius: 14px;
}

.update-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-card__image span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 7px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 8px;
  font-size: 0.72rem;
}

.update-card strong {
  display: -webkit-box;
  margin-bottom: 6px;
  font-weight: 850;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.update-card span:last-child {
  color: var(--color-muted);
  font-size: 0.86rem;
}

.ranking-list,
.ranking-table {
  display: grid;
  gap: 10px;
}

.ranking-item,
.ranking-table__row {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.ranking-item {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.ranking-table__row {
  grid-template-columns: 64px minmax(160px, 0.7fr) minmax(220px, 1fr) auto;
}

.ranking-item__number,
.ranking-table__row > span:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber-light), var(--color-orange));
  border-radius: 12px;
  font-weight: 900;
}

.ranking-item strong,
.ranking-table__row strong {
  display: block;
  color: #111827;
  font-weight: 850;
}

.ranking-item em,
.ranking-table__row em {
  display: block;
  color: var(--color-muted);
  font-style: normal;
  font-size: 0.88rem;
}

.ranking-item b,
.ranking-table__row b {
  color: var(--color-amber);
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.rail-card {
  flex: 0 0 270px;
  scroll-snap-align: start;
}

.rail-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #111827);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.rail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rail-card:hover img {
  transform: scale(1.08);
}

.rail-card strong {
  display: block;
  margin: 12px 0 4px;
  font-weight: 850;
}

.rail-card span:last-child {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 32%), linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  min-height: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0;
}

.page-hero--light {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  color: #111827;
}

.page-hero--rank {
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.35), transparent 28%), linear-gradient(135deg, #111827, #7c2d12);
}

.page-hero--search {
  background: radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.4), transparent 30%), linear-gradient(135deg, #0f172a, #374151);
}

.page-hero h1 {
  max-width: 760px;
  color: inherit;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  line-height: 1.8;
}

.page-hero--light p {
  color: #4b5563;
}

.filter-panel {
  display: grid;
  gap: 22px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px 180px;
  gap: 14px;
  align-items: end;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.filter-toolbar--large {
  grid-template-columns: minmax(300px, 1fr) 220px 200px;
}

.filter-toolbar label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 800;
}

.filter-count {
  margin: 0;
  color: var(--color-muted);
}

.filter-count strong {
  color: var(--color-amber);
}

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

.category-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.category-card__covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-card__covers span {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #111827);
  border-radius: 14px;
}

.category-card__covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card strong {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-card em {
  color: var(--color-amber);
  font-style: normal;
  font-weight: 800;
}

.category-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
}

.detail-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #111827;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-bg);
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.38;
}

.detail-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.62), #111827 88%);
}

.detail-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 30px;
  align-items: center;
}

.player-card {
  overflow: hidden;
  background: rgba(17, 24, 39, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber-light), var(--color-orange));
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.38);
  font-size: 1.6rem;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-play-button:hover {
  transform: translate(-50%, -50%) scale(1.07);
}

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

.player-status {
  margin: 0;
  padding: 13px 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.detail-info {
  color: #ffffff;
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1;
}

.detail-info__line {
  margin: 18px 0;
  color: #e5e7eb;
  font-size: 1.05rem;
  line-height: 1.8;
}

.detail-meta {
  margin: 18px 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.anchor-target {
  display: block;
  position: relative;
  top: -84px;
  visibility: hidden;
}

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

.content-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

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

.content-card--meta {
  grid-column: 1 / -1;
}

.content-card dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px 18px;
  margin: 18px 0 0;
}

.content-card dt {
  color: #6b7280;
  font-weight: 800;
}

.content-card dd {
  margin: 0;
  color: #111827;
}

.global-search .movie-grid:empty::before {
  content: "请输入关键词，或直接查看默认推荐结果。";
  grid-column: 1 / -1;
  color: var(--color-muted);
  padding: 28px;
  background: #ffffff;
  border: 1px dashed var(--color-line);
  border-radius: 18px;
}

.site-footer {
  background: #111827;
  color: #ffffff;
}

.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 42px 0;
}

.site-logo--footer .site-logo__text {
  color: #ffffff;
  background: none;
}

.site-footer__desc {
  max-width: 560px;
  margin: 12px 0 0;
  color: #9ca3af;
  line-height: 1.7;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.site-footer__links a {
  color: #d1d5db;
}

.site-footer__links a:hover {
  color: #ffffff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .movie-grid,
  .movie-grid--featured,
  .movie-grid--compact,
  .update-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section--two-column,
  .detail-layout,
  .quick-search__card,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .filter-toolbar,
  .filter-toolbar--large {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

  .site-header__inner {
    min-height: 60px;
  }

  .site-logo {
    font-size: 1.16rem;
  }

  .hero {
    height: 74vh;
    min-height: 520px;
  }

  .hero-slide__content {
    left: 20px;
    bottom: 70px;
    width: calc(100% - 40px);
  }

  .hero-slide h1 {
    font-size: clamp(2.4rem, 15vw, 4rem);
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
  }

  .hero-arrow--prev {
    left: 12px;
  }

  .hero-arrow--next {
    right: 12px;
  }

  .quick-search__form,
  .section-heading,
  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .movie-grid--featured,
  .movie-grid--compact,
  .update-grid,
  .category-grid,
  .feature-grid,
  .filter-toolbar,
  .filter-toolbar--large {
    grid-template-columns: 1fr;
  }

  .update-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .ranking-table__row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .ranking-table__row em,
  .ranking-table__row b {
    grid-column: 2;
  }

  .content-card dl {
    grid-template-columns: 1fr;
  }

  .detail-hero__inner,
  .section,
  .site-footer__inner,
  .page-hero > div,
  .site-header__inner,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }
}
