:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --paper: #ffffff;
  --ink: #2b1712;
  --muted: #7c6a5f;
  --line: #f1d8b5;
  --red-950: #450a0a;
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-400: #fbbf24;
  --amber-200: #fde68a;
  --shadow: 0 20px 45px rgba(69, 10, 10, 0.14);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 36rem),
    linear-gradient(180deg, #fff7ed 0%, #fff1f2 42%, #fffbeb 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: var(--container);
  min-height: 74px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-800), var(--amber-600));
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.28);
}

.brand-text {
  font-size: 1.1rem;
  white-space: nowrap;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #5f2c1e;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--red-800);
  background: #ffedd5;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  min-width: 260px;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.header-search input {
  min-width: 0;
  width: 100%;
  padding: 10px 14px 10px 18px;
  color: var(--ink);
  border: 0;
  outline: 0;
}

.header-search button {
  padding: 10px 16px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--red-800), var(--amber-600));
  cursor: pointer;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  color: var(--red-900);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, var(--red-950), var(--amber-800));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.26) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: pulsePattern 4s ease-in-out infinite;
}

.hero-slides,
.hero-slide,
.hero-slide__image,
.hero-slide__image img,
.hero-slide__shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transform: scale(1.04);
}

.hero-slide__image img.poster-missing {
  opacity: 0;
}

.hero-slide__shade {
  background:
    linear-gradient(90deg, rgba(69, 10, 10, 0.96), rgba(127, 29, 29, 0.72) 45%, rgba(146, 64, 14, 0.4)),
    linear-gradient(0deg, rgba(69, 10, 10, 0.6), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 44px));
  min-height: 560px;
  margin: 0 auto;
  padding: 74px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: #fffbeb;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero h1,
.page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--amber-200);
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #ffedd5;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red-700), var(--amber-600));
  box-shadow: 0 16px 34px rgba(185, 28, 28, 0.32);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-search {
  display: flex;
  max-width: 580px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  padding: 16px 18px;
  color: #fff;
  border: 0;
  outline: 0;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 237, 213, 0.82);
}

.hero-search button {
  padding: 14px 22px;
  color: var(--red-950);
  border: 0;
  background: var(--amber-200);
  font-weight: 900;
  cursor: pointer;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-stat {
  min-width: 116px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
}

.hero-stat small {
  color: #fde68a;
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.hero-focus-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-focus-card:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(4px);
}

.hero-focus-card img {
  width: 104px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(217,119,6,0.6), rgba(127,29,29,0.6));
}

.hero-focus-card img.poster-missing {
  opacity: 0;
}

.hero-focus-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.hero-focus-card span {
  display: block;
  color: #fde68a;
  font-size: 0.86rem;
}

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

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

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

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, var(--red-950), var(--red-800) 48%, var(--amber-800));
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #ffedd5;
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #fde68a;
  font-weight: 700;
}

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

.section {
  padding: 64px 0;
}

.section--tinted {
  background: linear-gradient(90deg, rgba(253, 230, 138, 0.42), rgba(254, 226, 226, 0.6), rgba(253, 230, 138, 0.42));
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.section-title span {
  color: var(--amber-700);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  color: var(--red-900);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.section-title p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(69, 10, 10, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: var(--amber-400);
  box-shadow: var(--shadow);
}

.movie-card--large .poster-frame {
  min-height: 320px;
}

.poster-frame {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.56), transparent 38%),
    linear-gradient(135deg, var(--red-900), var(--amber-700));
}

.poster-img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-img.poster-missing {
  opacity: 0;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), rgba(0,0,0,0.12));
  transition: opacity 0.25s ease;
}

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

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: var(--red-700);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.65);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.meta-badge,
.rank-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  color: #fff;
  border-radius: 999px;
  background: var(--red-700);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(69, 10, 10, 0.22);
}

.rank-corner {
  left: 14px;
  right: auto;
  background: var(--amber-600);
}

.meta-row {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row span {
  padding: 5px 8px;
  color: #fff;
  border-radius: 8px;
  background: rgba(0,0,0,0.56);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__body h3 {
  min-height: 3.1em;
  margin: 0 0 8px;
  color: #2f1b14;
  font-size: 1.04rem;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card__body h3 {
  color: var(--red-700);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: #92400e;
  border-radius: 999px;
  background: #fffbeb;
  font-size: 0.78rem;
  font-weight: 800;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 26px;
}

.panel,
.info-card,
.category-box,
.filter-panel,
.search-results-panel {
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(69, 10, 10, 0.08);
}

.panel,
.filter-panel,
.search-results-panel {
  padding: 24px;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-link:hover {
  background: #ffedd5;
  transform: translateX(4px);
}

.rank-link strong {
  color: var(--red-800);
  font-size: 1.15rem;
}

.rank-link span {
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-link em {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.category-cloud,
.category-grid {
  display: grid;
  gap: 14px;
}

.category-cloud {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

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

.category-pill,
.category-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover,
.category-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(69, 10, 10, 0.1);
}

.category-pill strong,
.category-box strong {
  color: var(--red-900);
}

.category-pill span,
.category-box span {
  color: var(--amber-700);
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 30px 80px rgba(69, 10, 10, 0.22);
}

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

.video-player video,
.video-poster,
.video-shade,
.player-overlay {
  position: absolute;
  inset: 0;
}

.video-player video {
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
}

.video-poster {
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.video-poster.poster-missing {
  opacity: 0;
}

.video-shade {
  z-index: 3;
  background:
    radial-gradient(circle at center, rgba(217, 119, 6, 0.18), transparent 38%),
    linear-gradient(0deg, rgba(0,0,0,0.78), rgba(0,0,0,0.12));
}

.player-overlay {
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #fff;
}

.player-overlay h2 {
  margin: 16px 0 6px;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.player-overlay p {
  max-width: 620px;
  margin: 0 auto;
  color: #ffedd5;
}

.player-button {
  width: 82px;
  height: 82px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-700), var(--amber-600));
  box-shadow: 0 22px 44px rgba(0,0,0,0.36);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.player-button:hover {
  transform: scale(1.06);
}

.player-status {
  margin-top: 12px;
  min-height: 1.3em;
  color: #fde68a;
  font-weight: 800;
}

.video-player.is-playing .video-poster,
.video-player.is-playing .video-shade,
.video-player.is-playing .player-overlay {
  display: none;
}

.content-card {
  padding: 28px;
  margin-top: 24px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(69, 10, 10, 0.08);
}

.content-card h1,
.content-card h2,
.content-card h3,
.info-card h2,
.info-card h3 {
  margin-top: 0;
  color: var(--red-900);
}

.content-card p {
  color: #514039;
  white-space: pre-line;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #7f1d1d;
  font-weight: 800;
}

.info-card {
  padding: 22px;
  margin-bottom: 20px;
}

.info-card dl {
  margin: 0;
}

.info-card div.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #f3dfc2;
}

.info-card div.row:last-child {
  border-bottom: 0;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  color: var(--red-900);
  font-weight: 900;
  text-align: right;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.related-item img {
  width: 110px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-900), var(--amber-700));
}

.related-item img.poster-missing {
  opacity: 0;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.filter-panel form,
.search-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(120px, 170px)) auto;
  gap: 12px;
  align-items: end;
}

.filter-panel label,
.search-controls label {
  display: grid;
  gap: 6px;
  color: var(--red-900);
  font-weight: 900;
}

.filter-panel input,
.filter-panel select,
.search-controls input,
.search-controls select {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 119, 6, 0.32);
  border-radius: 12px;
  background: #fff;
  outline: none;
}

.filter-panel button,
.search-controls button {
  min-height: 46px;
  padding: 10px 18px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-800), var(--amber-600));
  font-weight: 900;
  cursor: pointer;
}

.result-summary {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.page-link,
.page-ellipsis {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(217, 119, 6, 0.28);
  color: var(--red-900);
  font-weight: 900;
}

.page-link:hover {
  background: #ffedd5;
}

.page-link.is-current {
  color: #fff;
  background: var(--red-800);
}

.page-link.is-disabled {
  color: #b5a095;
  background: #fff7ed;
}

.sitemap-list {
  columns: 4 240px;
  column-gap: 28px;
}

.sitemap-list a {
  display: block;
  break-inside: avoid;
  padding: 7px 0;
  color: var(--red-900);
  border-bottom: 1px dotted #f1d8b5;
}

.site-footer {
  margin-top: 70px;
  color: #ffedd5;
  background: linear-gradient(135deg, var(--red-950), var(--red-900) 48%, var(--amber-800));
}

.footer-inner {
  width: min(var(--container), calc(100% - 44px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 28px;
}

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

.footer-inner p {
  max-width: 520px;
  color: #fde7ca;
}

.footer-inner h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.footer-bottom {
  width: min(var(--container), calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: #fde68a;
}

@keyframes pulsePattern {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.24; }
}

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

  .hero-content,
  .detail-layout,
  .panel-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

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

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

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

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

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 14px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    background: #fff;
  }

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

  .hero-content {
    padding: 54px 0;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 18px;
  }

  .hero-search button {
    width: 100%;
  }

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

  .poster-frame {
    min-height: 210px;
  }

  .movie-card__body {
    padding: 13px;
  }

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

  .rank-link {
    grid-template-columns: 36px 1fr;
  }

  .rank-link em {
    grid-column: 2;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .container,
  .hero-content,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 28px, var(--container));
  }

  .movie-grid,
  .category-cloud,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .related-item {
    grid-template-columns: 92px 1fr;
  }

  .related-item img {
    width: 92px;
  }
}
