:root {
  --primary-50: #e6f1ff;
  --primary-100: #b3d9ff;
  --primary-500: #0073e6;
  --primary-600: #005bb3;
  --primary-700: #004380;
  --secondary-50: #f0f9ff;
  --secondary-600: #0284c7;
  --accent-300: #fcd34d;
  --accent-400: #fbbf24;
  --accent-500: #f59e0b;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 4px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --shadow-large: 0 10px 40px -10px rgba(0, 0, 0, 0.15), 0 20px 50px -10px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--neutral-900);
  background: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-custom {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
}

.nav-bar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.brand-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: var(--shadow-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1.25rem;
  color: var(--neutral-900);
}

.brand-text small {
  color: var(--neutral-500);
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--neutral-700);
  font-weight: 600;
  white-space: nowrap;
}

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

.nav-search {
  width: 16.5rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--neutral-300);
  border-radius: 0.7rem;
  overflow: hidden;
  background: #fff;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--neutral-800);
  background: transparent;
}

.nav-search input {
  padding: 0.7rem 0.75rem;
}

.nav-search button {
  width: 2.8rem;
  border: 0;
  color: var(--neutral-600);
  background: transparent;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--neutral-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
}

.menu-toggle span {
  width: 1.25rem;
  height: 2px;
  background: var(--neutral-700);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--neutral-200);
  padding: 1rem;
  background: #fff;
}

.mobile-panel.is-open {
  display: block;
  animation: slideDown 0.3s ease;
}

.mobile-search {
  display: flex;
  border: 1px solid var(--neutral-300);
  border-radius: 0.7rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.mobile-search input {
  padding: 0.75rem;
}

.mobile-search button,
.search-page-form button {
  border: 0;
  background: var(--primary-600);
  color: #fff;
  padding: 0 1rem;
  font-weight: 700;
}

.mobile-links {
  display: grid;
  gap: 0.5rem;
}

.mobile-link {
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  color: var(--neutral-700);
  font-weight: 600;
  background: var(--neutral-50);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--neutral-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

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

.hero-copy {
  max-width: 42rem;
  color: #fff;
  animation: fadeIn 0.6s ease;
}

.hero-kicker {
  color: var(--accent-300);
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.08;
}

.hero-copy p {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags span,
.tag-list a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  padding: 0.86rem 1.7rem;
  font-weight: 800;
}

.btn-primary {
  color: #fff;
  background: var(--primary-600);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 2rem;
  background: #fff;
}

.content-section {
  padding: 4rem 0;
  background: #fff;
}

.content-section:nth-of-type(even) {
  background: var(--neutral-50);
}

.alt-section {
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.dark-section {
  background: var(--neutral-900);
  color: #fff;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.section-heading > span {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700);
  background: var(--primary-100);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-heading p {
  margin: 0.25rem 0 0;
  color: var(--neutral-500);
}

.light-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.light-heading > span {
  color: var(--neutral-900);
  background: var(--accent-400);
}

.section-more {
  margin-left: auto;
  color: var(--accent-300);
  font-weight: 700;
}

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

.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.top-grid {
  margin-bottom: 2rem;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 18rem;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
}

.poster-wrap {
  position: relative;
  height: 18rem;
  overflow: hidden;
  background: var(--neutral-200);
}

.movie-card.is-compact .poster-wrap {
  height: 13rem;
}

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

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

.card-badge,
.score-badge {
  position: absolute;
  top: 0.7rem;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.card-badge {
  left: 0.7rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
}

.score-badge {
  right: 0.7rem;
  color: var(--neutral-900);
  background: var(--accent-400);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  min-height: 9rem;
}

.card-body strong {
  color: var(--neutral-900);
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  color: var(--neutral-600);
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  color: var(--neutral-500);
  font-size: 0.8rem;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 0.45rem;
}

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

.category-tile {
  min-height: 13rem;
  padding: 1.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.category-tile:hover {
  transform: translateY(-3px);
  border-color: var(--primary-100);
  box-shadow: var(--shadow-medium);
}

.category-tile strong {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--neutral-900);
  font-size: 1.25rem;
}

.category-tile p {
  margin: 0 0 1rem;
  color: var(--neutral-600);
  line-height: 1.7;
}

.category-tile div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-tile div span {
  max-width: 100%;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: var(--primary-700);
  background: var(--primary-50);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.horizontal-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem;
  border-radius: 0.8rem;
  color: var(--neutral-900);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.dark-section .horizontal-card {
  color: #fff;
  background: var(--neutral-800);
}

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

.horizontal-card img {
  width: 5.4rem;
  height: 4.1rem;
  object-fit: cover;
  border-radius: 0.55rem;
  flex: 0 0 auto;
}

.horizontal-card span:not(.rank-number) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.horizontal-card strong,
.horizontal-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-card em {
  color: var(--neutral-500);
  font-size: 0.82rem;
  font-style: normal;
}

.dark-section .horizontal-card em,
.dark-section .horizontal-card small {
  color: rgba(255, 255, 255, 0.66);
}

.rank-number {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-900);
  background: var(--accent-400);
  font-weight: 900;
  flex: 0 0 auto;
}

.sub-hero {
  padding: 5rem 0;
  color: #fff;
  background: linear-gradient(135deg, var(--neutral-900), var(--primary-700));
}

.sub-hero span,
.breadcrumb-link {
  color: var(--accent-300);
  font-weight: 800;
}

.sub-hero h1 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.sub-hero p {
  max-width: 56rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.8;
}

.category-overview {
  padding: 3rem 1rem;
}

.category-block {
  margin-bottom: 3rem;
}

.category-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-block-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.8rem;
}

.category-block-head p {
  margin: 0;
  color: var(--neutral-600);
}

.category-block-head a {
  color: var(--primary-600);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 12rem 12rem;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  min-height: 2.8rem;
  padding: 0 0.9rem;
  border: 1px solid var(--neutral-300);
  border-radius: 0.75rem;
  background: #fff;
}

.ranking-list {
  display: grid;
  gap: 0.7rem;
}

.ranking-row {
  display: grid;
  grid-template-columns: 3.2rem 4rem minmax(10rem, 1fr) minmax(12rem, 1.4fr) 5rem;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.ranking-row:hover {
  transform: translateX(4px);
}

.ranking-index {
  color: var(--primary-600);
  font-weight: 900;
  font-size: 1.15rem;
}

.ranking-row img {
  width: 4rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.45rem;
}

.ranking-row em {
  color: var(--neutral-500);
  font-style: normal;
}

.ranking-row > span:last-child {
  color: var(--accent-500);
  font-weight: 900;
}

.search-page-form {
  display: flex;
  max-width: 42rem;
  margin-top: 1.5rem;
  border-radius: 0.8rem;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-medium);
}

.search-page-form input {
  min-height: 3.4rem;
  padding: 0 1.1rem;
}

.player-section {
  padding: 2rem 0;
  background: var(--neutral-900);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
  box-shadow: var(--shadow-large);
}

.movie-video,
.player-cover,
.player-cover img,
.player-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  object-fit: contain;
  z-index: 1;
  background: #000;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  background: #000;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  object-fit: cover;
}

.player-shade {
  background: rgba(0, 0, 0, 0.46);
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5.2rem;
  height: 5.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-600);
  box-shadow: var(--shadow-large);
  transform: translate(-50%, -50%);
  font-size: 2rem;
}

.player-cover:hover .play-circle {
  background: var(--primary-700);
  transform: translate(-50%, -50%) scale(1.05);
}

.detail-section {
  padding: 2.5rem 0 4rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.8fr);
  gap: 2rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--neutral-500);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary-600);
  font-weight: 700;
}

.detail-card,
.side-card {
  margin-bottom: 1.2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-card h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
}

.detail-card p {
  margin: 0;
  color: var(--neutral-700);
  line-height: 1.85;
}

.detail-one-line {
  font-size: 1.05rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.1rem 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--neutral-700);
  background: var(--neutral-100);
  font-weight: 700;
  font-size: 0.9rem;
}

.genre-pill {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-weight: 800;
}

.tag-list a {
  color: var(--neutral-700);
  background: var(--neutral-100);
}

.tag-list a:hover {
  color: #fff;
  background: var(--primary-600);
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 92px;
}

.side-list {
  display: grid;
  gap: 0.8rem;
}

.side-list .horizontal-card {
  box-shadow: none;
  background: var(--neutral-50);
}

.site-footer {
  color: var(--neutral-300);
  background: var(--neutral-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.site-footer p {
  color: var(--neutral-500);
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.05rem;
}

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

.site-footer a:hover {
  color: var(--accent-300);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  border-top: 1px solid var(--neutral-800);
  color: var(--neutral-500);
  font-size: 0.9rem;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .container-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    height: 540px;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

  .hero-arrow {
    display: none;
  }

  .content-section {
    padding: 3rem 0;
  }

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

  .movie-grid,
  .compact-grid,
  .category-grid,
  .rank-grid,
  .top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .poster-wrap {
    height: 13.8rem;
  }

  .movie-card.is-compact .poster-wrap {
    height: 11.5rem;
  }

  .card-body {
    padding: 0.8rem;
  }

  .scroll-row {
    grid-auto-columns: 15rem;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 2.5rem 3.5rem 1fr 4.5rem;
    gap: 0.7rem;
  }

  .ranking-row em {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid,
  .category-grid,
  .rank-grid,
  .top-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .movie-card.is-compact .poster-wrap {
    height: 20rem;
  }

  .hero-actions,
  .search-page-form {
    flex-direction: column;
  }

  .search-page-form button {
    min-height: 3rem;
  }
}
