:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --pink: #db2777;
  --orange: #f97316;
  --green: #059669;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.28);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08);
}

.logo-text {
  display: grid;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 20px;
  color: #111827;
}

.logo-text small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--red);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #f3f4f6;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-link:hover {
  background: #f9fafb;
}

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

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

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

.hero-tags {
  margin-bottom: 16px;
}

.hero-tags span {
  padding: 5px 12px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.hero-tags span:first-child {
  background: var(--red);
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.hero-one-line {
  margin: 0 0 8px;
  font-size: 19px;
  color: #e5e7eb;
}

.hero-summary {
  max-width: 620px;
  margin: 0 0 26px;
  color: #d1d5db;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 11px 24px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--pink));
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.36);
}

.primary-button.full {
  width: 100%;
}

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

.ghost-button.light {
  color: #111827;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.72);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

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

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

.hero-dot.active {
  width: 32px;
  background: #ffffff;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
  margin-top: -34px;
  position: relative;
  z-index: 8;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-search {
  display: flex;
  gap: 10px;
}

.site-search input,
.filter-bar input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.filter-bar input:focus {
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.site-search button {
  min-width: 96px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 800;
  background: var(--red);
}

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

.quick-links a,
.text-button {
  padding: 9px 13px;
  color: var(--red);
  background: #fff1f2;
  border-radius: 999px;
  font-weight: 800;
}

.page-stack {
  padding: 54px 0 78px;
  display: grid;
  gap: 64px;
}

.content-section {
  display: grid;
  gap: 22px;
}

.section-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 24px;
}

.white-card {
  background: #ffffff;
  box-shadow: var(--shadow);
}

.orange-card {
  background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

.green-card {
  background: linear-gradient(90deg, #ecfdf5, #f0fdfa);
}

.yellow-card {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.section-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.18);
}

.section-more {
  color: var(--red);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

.movie-grid-small {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  min-width: 0;
  transition: transform 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.015);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #d1d5db;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.movie-card-small .movie-cover {
  aspect-ratio: 4 / 3;
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.1);
}

.cover-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.16), transparent);
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-gradient {
  opacity: 1;
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.score-badge {
  position: absolute;
  top: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.year-badge {
  right: 10px;
  background: rgba(220, 38, 38, 0.84);
}

.score-badge {
  left: 10px;
  background: rgba(17, 24, 39, 0.68);
}

.movie-card-body {
  padding: 12px 2px 0;
}

.movie-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card-small h3 {
  font-size: 15px;
}

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

.movie-meta,
.movie-card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-card-summary {
  margin-top: 7px;
}

.tag-list {
  margin-top: 10px;
}

.tag-list span,
.detail-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
}

.card-category {
  display: inline-block;
  margin-top: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.region-stack {
  display: grid;
  gap: 36px;
}

.region-block h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 21px;
}

.region-block h3 span {
  width: 5px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--red), var(--orange));
}

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

.category-tile,
.category-overview-card,
.detail-card,
.side-card,
.player-panel {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 180px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

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

.category-tile span,
.category-stats span {
  color: var(--red);
  font-weight: 800;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.subpage {
  padding: 28px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--red);
}

.page-hero {
  margin-bottom: 30px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #991b1b, #be185d 55%, #7c2d12);
  box-shadow: var(--shadow);
}

.compact-hero,
.category-hero,
.rank-hero {
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
}

.category-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-counts span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  font-weight: 800;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.empty-state {
  display: none;
  margin: 28px 0;
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

.empty-state.show {
  display: block;
}

.category-overview-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #e5e7eb;
}

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

.category-overview-body {
  padding: 20px;
}

.category-overview-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-overview-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.category-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
}

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

.rank-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  font-weight: 900;
}

.rank-body h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.rank-body h2 a:hover {
  color: var(--red);
}

.rank-body p {
  margin: 0 0 10px;
  color: var(--muted);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-meta span,
.rank-meta a {
  padding: 4px 9px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 800;
}

.rank-score {
  text-align: center;
  color: var(--red);
}

.rank-score strong {
  display: block;
  font-size: 28px;
}

.rank-score span {
  color: var(--muted);
  font-size: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 28px;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-panel {
  padding: 12px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.68));
  text-align: center;
  font-weight: 900;
}

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

.overlay-play {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  pointer-events: none;
}

.detail-card {
  padding: clamp(22px, 4vw, 32px);
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
}

.detail-tags {
  margin-bottom: 18px;
}

.one-line {
  margin: 0 0 22px;
  padding: 16px;
  border-radius: 14px;
  color: #374151;
  background: linear-gradient(90deg, #f8fafc, #f3f4f6);
  font-weight: 800;
}

.article-block {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-block h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.article-block p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.review-block {
  margin-top: 22px;
  padding: 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.detail-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.side-card {
  padding: 18px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.related-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.related-row:first-of-type {
  border-top: 0;
}

.related-row img {
  width: 92px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

.related-row strong {
  display: block;
  line-height: 1.35;
}

.related-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.related-row:hover strong {
  color: var(--red);
}

.related-section {
  margin-top: 4px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding: 46px 0;
}

.footer-logo .logo-text strong {
  color: #ffffff;
}

.footer-brand p {
  max-width: 360px;
  margin: 16px 0 0;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #ffffff;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

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

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

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

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

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

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 580px;
  }

  .hero-content {
    padding-bottom: 76px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel,
  .filter-bar {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

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

  .rank-score {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    align-items: baseline;
    text-align: left;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

  .logo-text small {
    display: none;
  }

  .logo-text strong {
    font-size: 17px;
  }

  .hero {
    height: 76vh;
    min-height: 560px;
  }

  .hero-tags span {
    font-size: 12px;
  }

  .hero-one-line {
    font-size: 16px;
  }

  .hero-summary {
    font-size: 14px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .site-search {
    display: grid;
  }

  .movie-grid-medium,
  .movie-grid-small,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-cover {
    aspect-ratio: 16 / 9;
  }

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