:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #3b82f6;
  --green: #22c55e;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 46%, #fff7ed 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 14px 40px rgba(239, 68, 68, 0.28);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 14px;
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.brand-text {
  white-space: nowrap;
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 15px;
}

.desktop-nav a {
  position: relative;
  padding: 8px 2px;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fef3c7;
  opacity: 1;
}

.desktop-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #fef3c7;
  content: "";
}

.top-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.local-filter,
.quick-filter {
  min-width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  outline: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: width 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.top-search input:focus {
  width: 260px;
  box-shadow: 0 0 0 3px rgba(254, 243, 199, 0.55);
  background: rgba(255, 255, 255, 0.24);
}

.top-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 16px 18px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-nav a {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.16);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 9px 18px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.34);
  font-weight: 800;
  animation: pulseBadge 2.4s infinite;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-copy p,
.page-hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.7;
}

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

.hero-tags span,
.detail-tags span,
.tag-list span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #78350f;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.3);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

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

.hero-dot.is-active {
  width: 36px;
  background: var(--orange);
}

.section {
  padding: 58px 0;
}

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

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading > div {
  min-width: 0;
}

.section-heading h2 {
  display: inline;
  margin: 0 0 0 10px;
  color: #111827;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.section-icon {
  font-size: 30px;
  vertical-align: middle;
}

.section-more {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--orange);
  background: #fff7ed;
  font-weight: 900;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.26);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
  transform: translateY(-8px);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.movie-card-large .poster-wrap {
  aspect-ratio: 16 / 10;
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 4 / 3;
}

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

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

.card-pill,
.card-score {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-pill {
  left: 12px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.card-score {
  right: 12px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
}

.hover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  display: flex;
  min-height: 154px;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-card-compact .movie-info {
  min-height: 128px;
}

.movie-info h3 {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: #9ca3af;
  font-size: 13px;
}

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

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover {
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.2);
  transform: translateY(-8px);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  mix-blend-mode: multiply;
  transition: transform 0.45s ease;
}

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

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.78));
}

.category-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  min-height: 190px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.category-icon {
  margin-bottom: 14px;
  font-size: 40px;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.gradient-orange { background: linear-gradient(135deg, #fb923c, #ef4444); }
.gradient-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.gradient-pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.gradient-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.gradient-green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.gradient-amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.gradient-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.gradient-cyan { background: linear-gradient(135deg, #22d3ee, #0284c7); }

.two-col-section {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
  gap: 34px;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 22px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-card:hover {
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
  transform: translateX(6px);
}

.rank-card img {
  width: 104px;
  height: 78px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-card h3 {
  margin: 0 0 6px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-card p {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-meta {
  color: #9ca3af;
  font-size: 13px;
}

.rank-num {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.promo-panel,
.editor-picks,
.side-card,
.detail-card,
.player-card,
.filter-panel,
.search-panel {
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.promo-panel {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
}

.promo-panel h2 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 900;
}

.promo-panel p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.promo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.promo-tags a {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.editor-picks {
  padding: 34px;
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: #ffffff;
  background: linear-gradient(100deg, #111827, #ef4444 55%, #ec4899);
}

.small-hero {
  background: linear-gradient(100deg, #111827, #f97316 55%, #ec4899);
}

.page-hero::after {
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  content: "";
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.filter-panel,
.search-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding: 18px;
}

.local-filter,
.quick-filter {
  width: 100%;
  border-color: var(--line);
  color: var(--text);
  background: #ffffff;
}

.quick-filter {
  width: 190px;
  flex: 0 0 auto;
}

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

.ranking-page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-page {
  background: linear-gradient(180deg, #111827 0, #111827 320px, #f8fafc 320px, #ffffff 100%);
  padding: 32px 0 64px;
}

.detail-shell {
  color: var(--text);
}

.detail-breadcrumb {
  color: rgba(255, 255, 255, 0.78);
}

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

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: #000000;
}

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

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

.play-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.play-mask.is-hidden {
  display: none;
}

.play-mask strong {
  max-width: 80%;
  margin-top: 92px;
  overflow: hidden;
  font-size: clamp(18px, 4vw, 30px);
  text-overflow: ellipsis;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 20px 46px rgba(239, 68, 68, 0.4);
  font-size: 34px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.play-mask:hover .play-circle {
  transform: translate(-50%, -50%) scale(1.08);
}

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

.detail-title-row {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.detail-card h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.detail-meta span,
.category-link {
  border-radius: 999px;
  padding: 8px 12px;
  background: #f3f4f6;
}

.category-link {
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-weight: 900;
}

.lead-text {
  border-left: 4px solid var(--orange);
  margin: 0 0 28px;
  border-radius: 0 18px 18px 0;
  padding: 18px 20px;
  color: #7c2d12;
  background: #fff7ed;
  font-size: 18px;
  line-height: 1.8;
}

.detail-card h2,
.side-card h2 {
  margin: 24px 0 12px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.detail-card p,
.side-card p {
  color: #374151;
  line-height: 1.9;
}

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

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

.side-card {
  padding: 20px;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  object-fit: cover;
}

.poster-side .btn {
  width: 100%;
  margin-top: 14px;
}

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

.related-grid .movie-info {
  min-height: 108px;
  padding: 12px;
}

.related-grid .movie-info p,
.related-grid .movie-meta,
.related-grid .card-score {
  display: none;
}

.related-grid .movie-info h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
}

.footer-links a {
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  color: #9ca3af;
  text-align: center;
}

.is-filter-hidden {
  display: none !important;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

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

  .nav-toggle {
    display: block;
  }

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

  .category-grid,
  .category-grid-large,
  .top-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col-section,
  .detail-layout,
  .editor-layout,
  .ranking-page {
    grid-template-columns: 1fr;
  }

  .detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    height: 560px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .section {
    padding: 42px 0;
  }

  .section-heading,
  .filter-panel,
  .search-panel,
  .detail-title-row,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .page-grid,
  .category-grid,
  .category-grid-large,
  .compact-grid,
  .top-three,
  .detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .quick-filter {
    width: 100%;
  }

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

  .rank-card img {
    width: 90px;
    height: 72px;
  }

  .editor-picks,
  .detail-card,
  .side-card {
    padding: 18px;
    border-radius: 22px;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .page-grid,
  .category-grid,
  .category-grid-large,
  .compact-grid,
  .top-three,
  .detail-side,
  .related-grid,
  .mobile-nav nav {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 520px;
  }

  .movie-info {
    min-height: auto;
  }

  .poster-wrap {
    aspect-ratio: 16 / 11;
  }

  .play-circle {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
