:root {
  --brand: #ea580c;
  --brand-dark: #dc2626;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --card: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 38%, #fef2f2 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  box-shadow: 0 16px 40px rgba(185, 28, 28, 0.25);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 20px;
  letter-spacing: 0.5px;
}

.logo-text em {
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  opacity: 0.86;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a,
.nav-dropdown > button {
  color: #ffffff;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 9px 0;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover,
.nav-dropdown > button:hover {
  color: #ffedd5;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 220px;
  transform: translate(-50%, 12px);
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 12px;
}

.dropdown-menu a:hover {
  color: var(--brand);
  background: #fff7ed;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 6px);
}

.nav-search {
  display: flex;
  align-items: center;
  width: min(340px, 32vw);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.nav-search input,
.nav-search button,
.hero-search input,
.hero-search button,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  font: inherit;
}

.nav-search input {
  width: 100%;
  padding: 11px 14px;
  color: #ffffff;
  background: transparent;
}

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

.nav-search button {
  padding: 11px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.52), rgba(17, 24, 39, 0.1));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1180px) / 2));
  width: min(620px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #ffffff;
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  font-weight: 800;
  font-size: 14px;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -1px;
}

.hero-content p {
  margin: 20px 0 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.category-enter,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.28);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.category-enter:hover,
.section-link:hover {
  transform: translateY(-2px);
}

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

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

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

.content-section,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link,
.category-enter {
  color: var(--brand);
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

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

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

.category-card,
.category-overview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 24px;
  border-radius: var(--radius);
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:after,
.category-overview-card:after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -38px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover,
.detail-main-card:hover,
.detail-side-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.category-card span {
  font-size: 34px;
}

.category-card strong,
.category-title-link strong {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 900;
}

.category-card em,
.category-overview-card p {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.category-tone-0 {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.category-tone-1 {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.category-tone-2 {
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

.category-tone-3 {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
}

.category-tone-4 {
  background: linear-gradient(135deg, #0f766e, #115e59);
}

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

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

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

.soft-panel {
  width: min(1180px, calc(100% - 32px));
  margin-top: 20px;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.84), rgba(254, 226, 226, 0.84));
}

.movie-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.poster-frame {
  position: relative;
  height: 245px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #374151);
}

.movie-card-wide .poster-frame {
  height: 210px;
}

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

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  left: 12px;
  top: 12px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

.poster-year {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 18px;
}

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

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #4b5563;
  font-size: 13px;
}

.movie-meta span,
.tag-row span,
.detail-tags span,
.ranking-tags b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f3f4f6;
  font-weight: 700;
}

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

.tag-row span,
.detail-tags span {
  color: #c2410c;
  background: #ffedd5;
  font-size: 12px;
}

.rank-panel {
  padding: 36px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

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

.rank-row,
.ranking-list-row,
.compact-card {
  color: inherit;
  text-decoration: none;
}

.rank-row {
  display: grid;
  grid-template-columns: 48px 92px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover,
.ranking-list-row:hover,
.compact-card:hover {
  background: #fff7ed;
  transform: translateY(-2px);
}

.rank-no,
.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.rank-row img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info,
.compact-card span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rank-info strong,
.compact-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em,
.compact-card em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-heat,
.ranking-score {
  color: var(--brand);
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.45), transparent 28%), linear-gradient(135deg, #111827, #7f1d1d);
  color: #ffffff;
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
}

.page-hero p {
  width: min(720px, 100%);
  margin: 16px 0 0;
  color: #e5e7eb;
  line-height: 1.8;
  font-size: 18px;
}

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

.category-overview-card {
  min-height: auto;
  color: #ffffff;
}

.category-title-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.category-title-link span {
  font-size: 30px;
}

.compact-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  transition: 0.2s ease;
}

.category-overview-card .compact-card {
  color: #ffffff;
}

.category-overview-card .compact-card em {
  color: rgba(255, 255, 255, 0.78);
}

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

.category-enter {
  position: relative;
  z-index: 1;
  width: max-content;
  margin-top: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  border-radius: 14px;
  background: #f9fafb;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

.filter-bar input {
  flex: 1;
  padding: 0 16px;
}

.filter-bar select {
  padding: 0 14px;
  color: var(--ink);
}

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

.ranking-list-row {
  display: grid;
  grid-template-columns: 52px 112px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: 0.2s ease;
}

.ranking-list-row img {
  width: 112px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ranking-main strong {
  font-size: 17px;
}

.ranking-main em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ranking-tags b {
  font-size: 12px;
  color: #4b5563;
}

.hero-search {
  display: flex;
  width: min(680px, 100%);
  min-height: 58px;
  margin-top: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.22);
}

.hero-search input {
  flex: 1;
  padding: 0 22px;
  color: var(--ink);
}

.hero-search button {
  padding: 0 28px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  font-weight: 900;
}

.search-status {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 16px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 800;
}

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

.detail-main-card,
.detail-side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
  overflow: hidden;
  transition: 0.2s ease;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 20px 42px rgba(220, 38, 38, 0.36);
  font-size: 32px;
  text-indent: 5px;
}

.player-overlay strong {
  font-size: 20px;
}

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

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
}

.player-message.is-visible {
  display: block;
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
}

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

.detail-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-weight: 800;
}

.detail-one-line {
  margin: 22px 0 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 800;
}

.detail-content h2,
.detail-side-card h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.detail-content p {
  color: #374151;
  line-height: 1.9;
}

.detail-side-card {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 22px;
}

.detail-side-card .compact-card {
  background: #f9fafb;
}

.detail-side-card .compact-card em {
  color: var(--muted);
}

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

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

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

.footer-brand p {
  max-width: 460px;
  margin: 12px 0 0;
  line-height: 1.8;
}

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

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
}

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

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

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

@media (max-width: 980px) {
  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    box-shadow: var(--shadow);
  }

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

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-nav a,
  .nav-dropdown > button {
    width: 100%;
    text-align: left;
  }

  .dropdown-menu {
    position: static;
    width: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    margin-top: 8px;
  }

  .nav-search {
    width: 100%;
  }

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

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

  .detail-side-card {
    position: static;
  }

  .ranking-list-row {
    grid-template-columns: 44px 88px 1fr;
  }

  .ranking-tags,
  .ranking-score {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    height: 66px;
  }

  .logo-text em {
    display: none;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-content {
    top: auto;
    bottom: 82px;
    transform: none;
  }

  .hero-actions,
  .page-hero-actions,
  .section-heading,
  .filter-bar,
  .footer-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .category-grid,
  .movie-grid,
  .featured-grid,
  .wide-grid,
  .category-overview-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .soft-panel,
  .rank-panel {
    padding: 24px 16px;
  }

  .rank-row {
    grid-template-columns: 42px 80px 1fr;
  }

  .rank-heat {
    display: none;
  }

  .footer-shell {
    display: flex;
  }

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

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

  .hero-search input,
  .hero-search button {
    min-height: 54px;
  }
}
