* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: #f8fafc;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #14b8a6);
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.25);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  color: #475569;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 190px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #475569;
}

.dropdown-panel a:hover {
  color: #2563eb;
  background: #eff6ff;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 280px;
  margin-left: 8px;
}

.nav-search input,
.mobile-panel input,
.quick-search input,
.catalog-search-label input {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.nav-search input {
  height: 40px;
  padding: 0 15px;
}

.nav-search input:focus,
.mobile-panel input:focus,
.quick-search input:focus,
.catalog-search-label input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.nav-search button,
.mobile-panel button,
.quick-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.open {
  display: grid;
  gap: 8px;
}

.mobile-panel a,
.mobile-panel form {
  display: block;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  height: 42px;
  padding: 0 14px;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 4.8s ease;
  transform: scale(1.04);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.88), rgba(14, 116, 144, 0.72) 48%, rgba(15, 23, 42, 0.22));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 720px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 18px 0 12px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.18;
  color: #cffafe;
}

.hero-content p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 0 26px;
  color: #e0f2fe;
  font-size: 19px;
  line-height: 1.8;
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.3);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.primary-btn.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.ghost-btn {
  min-height: 48px;
  padding: 0 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

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

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

.hero-dot.active {
  width: 36px;
  background: #67e8f9;
}

.stats-band {
  background: #ffffff;
  padding: 34px 0;
}

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

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 25px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.13);
}

.stat-card::before {
  content: "";
  position: absolute;
  right: -26px;
  top: -26px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  opacity: 0.16;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.stat-card.from-cyan::before {
  background: linear-gradient(135deg, #06b6d4, #14b8a6);
}

.stat-card.from-amber::before {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.stat-card.from-green::before {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.stat-card strong {
  display: block;
  font-size: 34px;
  color: #0f172a;
}

.stat-card span {
  color: #64748b;
  font-weight: 700;
}

.quick-search {
  padding: 46px 0;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.quick-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 55px rgba(14, 116, 144, 0.12);
  backdrop-filter: blur(14px);
}

.quick-search h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.quick-search p {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

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

.quick-search input {
  height: 52px;
  padding: 0 20px;
}

.content-section {
  padding: 70px 0;
  background: #ffffff;
}

.content-section.tinted {
  background: linear-gradient(135deg, #f8fafc, #ecfeff);
}

.compact-section {
  padding: 36px 0;
}

.inline-section {
  padding: 34px 0 0;
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2,
.panel-head h2,
.side-card h2 {
  margin: 0 0 8px;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.04em;
  color: #0f172a;
}

.section-head p {
  margin: 0;
  color: #64748b;
}

.section-more,
.panel-head a {
  color: #2563eb;
  font-weight: 800;
}

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

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

.latest-grid {
  grid-template-columns: repeat(4, 1fr);
}

.catalog-grid {
  grid-template-columns: repeat(4, 1fr);
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.card-cover {
  position: relative;
  display: block;
  height: 238px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.movie-card.small .card-cover,
.movie-card.ranked .card-cover {
  height: 194px;
}

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

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

.play-dot {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.86);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.rank-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.card-body h2 {
  margin: 12px 0 9px;
  font-size: 19px;
  line-height: 1.32;
  color: #0f172a;
}

.card-body h2 a:hover {
  color: #2563eb;
}

.card-body p {
  margin: 0;
  min-height: 56px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.rank-panel,
.side-card,
.detail-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.25s ease, transform 0.25s ease;
}

.compact-card:hover {
  background: #eff6ff;
  transform: translateX(3px);
}

.compact-card img {
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-info {
  min-width: 0;
}

.compact-info strong,
.compact-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-info strong {
  color: #0f172a;
  font-size: 14px;
}

.compact-info em {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.compact-rank {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-weight: 900;
  font-size: 12px;
}

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

.home-categories {
  grid-template-columns: repeat(3, 1fr);
}

.category-card {
  position: relative;
  min-height: 226px;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.92));
}

.category-content {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 20px;
  color: #ffffff;
}

.category-content strong {
  font-size: 22px;
}

.category-content em {
  color: #dbeafe;
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.category-content b {
  color: #67e8f9;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0891b2, #14b8a6);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #e0f2fe;
  font-size: 18px;
  line-height: 1.8;
}

.soft-hero {
  color: #0f172a;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.soft-hero .eyebrow {
  color: #2563eb;
}

.soft-hero p:not(.eyebrow) {
  color: #475569;
}

.category-hero {
  background-size: cover;
  background-position: center;
  padding: 96px 0;
}

.category-hero > span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.62));
}

.category-hero .container {
  position: relative;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  color: #dbeafe;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.breadcrumb em {
  font-style: normal;
  opacity: 0.65;
}

.catalog-tools {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.catalog-search-label {
  display: grid;
  gap: 10px;
  color: #0f172a;
  font-weight: 800;
}

.catalog-search-label input {
  height: 52px;
  padding: 0 18px;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #e2e8f0;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.empty-state {
  display: none;
  margin: 34px 0 0;
  padding: 24px;
  border-radius: 20px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  font-weight: 800;
}

.rank-hero {
  background: radial-gradient(circle at top right, rgba(103, 232, 249, 0.35), transparent 36%), linear-gradient(135deg, #0f172a, #1d4ed8 55%, #0e7490);
}

.rank-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.6fr);
  gap: 30px;
  align-items: start;
}

.rank-top-list {
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.player-layout {
  padding: 32px 0 70px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

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

.detail-breadcrumb {
  margin: 0 0 18px;
  color: #475569;
}

.detail-breadcrumb a:hover {
  color: #2563eb;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.25);
}

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

.play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-mask span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 24px 55px rgba(37, 99, 235, 0.38);
  font-size: 34px;
  text-indent: 4px;
}

.player-frame.playing .play-mask {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card {
  margin-top: 24px;
  padding: 30px;
}

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

.detail-card h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.detail-card section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #e2e8f0;
}

.detail-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
}

.detail-card p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 16px;
  line-height: 1.88;
}

.review-box {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.review-box p {
  margin: 0;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
}

.side-card {
  padding: 22px;
}

.poster-card img {
  height: 440px;
  border-radius: 20px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.poster-card dl {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.poster-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.poster-card dt {
  color: #64748b;
  font-weight: 800;
}

.poster-card dd {
  margin: 0;
  color: #0f172a;
  text-align: right;
  font-weight: 800;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #111827 56%, #0f172a);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  padding: 54px 0;
}

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

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

.site-footer p {
  margin: 14px 0 0;
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: #67e8f9;
}

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

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

  .latest-grid,
  .category-grid,
  .home-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column,
  .detail-grid,
  .rank-hero-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }

  .poster-card img {
    height: 360px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    gap: 12px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content p:not(.eyebrow) {
    font-size: 16px;
  }

  .stat-grid,
  .featured-grid,
  .latest-grid,
  .catalog-grid,
  .category-grid,
  .home-categories,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-search-box,
  .quick-search form,
  .section-head,
  .detail-title-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .quick-search form {
    display: grid;
  }

  .card-cover,
  .movie-card.small .card-cover,
  .movie-card.ranked .card-cover {
    height: 230px;
  }
}

@media (max-width: 520px) {
  .container,
  .nav-wrap,
  .mobile-panel,
  .footer-grid {
    width: min(100% - 22px, 1180px);
  }

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

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

  .hero-actions {
    display: grid;
  }

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

  .detail-card,
  .side-card,
  .catalog-tools,
  .quick-search-box {
    padding: 18px;
    border-radius: 20px;
  }

  .compact-card {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }

  .compact-card img {
    height: 52px;
  }
}
