:root {
  --primary-50: #fef7ed;
  --primary-100: #fdecd0;
  --primary-400: #f49a3f;
  --primary-500: #f17925;
  --primary-600: #e2591b;
  --primary-700: #bc3e18;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(41, 37, 36, 0.12);
  --shadow-card: 0 14px 30px rgba(41, 37, 36, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--neutral-900);
  background: var(--neutral-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.05);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(241, 121, 37, 0.35);
  font-size: 15px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--neutral-700);
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--primary-500);
  transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary-600);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
}

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

.header-search input,
.mobile-nav input,
.search-page-form input,
.large-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--neutral-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--neutral-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-nav input:focus,
.search-page-form input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(241, 121, 37, 0.14);
}

.header-search button,
.mobile-nav button,
.search-page-form button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--primary-500);
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-nav button:hover,
.search-page-form button:hover,
.large-search button:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--primary-50);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

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

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

.mobile-nav input {
  width: 100%;
  padding: 10px 14px;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  background: var(--neutral-900);
  color: var(--white);
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: 70vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.1s ease;
}

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(241, 121, 37, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.95) 0%, rgba(28, 25, 23, 0.66) 44%, rgba(28, 25, 23, 0.25) 100%),
    linear-gradient(0deg, rgba(28, 25, 23, 0.95) 0%, transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  min-height: 70vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 90px 0 130px;
}

.hero-label,
.section-kicker,
.card-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(253, 236, 208, 0.9);
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary,
.btn.block {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  box-shadow: 0 14px 30px rgba(241, 121, 37, 0.28);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.btn.outline {
  color: var(--primary-700);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
}

.btn.block {
  width: 100%;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.38);
  backdrop-filter: blur(10px);
  font-size: 36px;
  cursor: pointer;
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  width: min(100% - 32px, var(--container));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-thumb.active {
  border-color: rgba(241, 121, 37, 0.8);
  background: rgba(241, 121, 37, 0.24);
}

.hero-thumb img {
  width: 48px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-thumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 750;
}

.search-hero-card,
.content-section,
.page-shell,
.site-footer .footer-grid {
  width: min(100% - 32px, var(--container));
  margin-left: auto;
  margin-right: auto;
}

.search-hero-card {
  position: relative;
  z-index: 4;
  margin-top: -54px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(253, 236, 208, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.search-hero-card h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.text-panel h2,
.ranking-head h2 {
  margin: 6px 0 8px;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.search-hero-card h2,
.section-heading h2,
.page-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
}

.search-hero-card p,
.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--neutral-600);
}

.large-search,
.search-page-form {
  display: flex;
  gap: 10px;
}

.large-search input,
.search-page-form input {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
}

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

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

.section-more,
.text-link {
  color: var(--primary-600);
  font-weight: 800;
}

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

.category-card,
.category-overview-card,
.movie-card,
.rank-card,
.text-panel,
.ranking-card,
.filter-panel,
.player-card {
  border: 1px solid rgba(231, 229, 228, 0.9);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-cover {
  height: 92px;
  border-radius: 16px;
}

.category-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.category-card p {
  margin: 0;
  color: var(--neutral-600);
  font-size: 13px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card.compact .poster-shell {
  aspect-ratio: 16 / 11;
}

.poster-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 2.8;
  background:
    radial-gradient(circle at 70% 12%, rgba(241, 121, 37, 0.22), transparent 32%),
    linear-gradient(135deg, var(--neutral-900), var(--neutral-700));
}

.poster-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(28, 25, 23, 0.72));
  pointer-events: none;
}

.poster-shell.image-missing::before {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
  font-weight: 800;
}

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

.movie-card:hover .poster-shell img,
.category-card:hover .poster-shell img,
.rank-card:hover .poster-shell img {
  transform: scale(1.06);
}

.poster-badge,
.rank-medal {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 850;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--primary-500);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(241, 121, 37, 0.36);
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 15px;
}

.movie-card-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card-body p {
  margin: 0;
  color: var(--neutral-600);
  font-size: 14px;
}

.tag-row {
  margin-top: auto;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
}

.ranking-card {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 22px;
  border-radius: var(--radius-md);
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-weight: 900;
}

.ranking-list strong,
.ranking-list em {
  display: block;
}

.ranking-list em {
  color: var(--neutral-500);
  font-size: 12px;
  font-style: normal;
}

.page-shell {
  padding: 32px 0 76px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 15%, rgba(241, 121, 37, 0.23), transparent 30%),
    linear-gradient(135deg, var(--white), var(--primary-50));
  border: 1px solid rgba(253, 236, 208, 0.9);
  box-shadow: var(--shadow-card);
}

.compact-hero {
  margin-bottom: 26px;
}

.category-hero,
.ranking-hero {
  margin-bottom: 24px;
}

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

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

.filter-panel {
  padding: 18px;
  border-radius: var(--radius-md);
}

.filter-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 14px;
  margin-bottom: 18px;
}

.filter-row label {
  display: grid;
  gap: 6px;
  color: var(--neutral-600);
  font-size: 13px;
  font-weight: 750;
}

.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
}

.empty-state {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 750;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-media {
  border-radius: 20px;
}

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

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

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.quick-links a {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-size: 12px;
  font-weight: 750;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-poster {
  border-radius: 18px;
}

.rank-medal {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
}

.rank-info h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.rank-info p {
  margin: 0 0 12px;
  color: var(--neutral-600);
}

.detail-shell {
  padding-top: 24px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 8%, rgba(241, 121, 37, 0.36), transparent 32%),
    linear-gradient(135deg, var(--neutral-900), #382016 62%, var(--neutral-800));
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  border-radius: 26px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

.detail-info h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

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

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.player-section {
  padding-top: 34px;
}

.slim-heading {
  margin-bottom: 16px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 42%, rgba(241, 121, 37, 0.28), transparent 27%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.play-overlay.is-hidden {
  pointer-events: none;
}

.play-button-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 18px 36px rgba(241, 121, 37, 0.38);
  font-size: 28px;
}

.play-overlay strong {
  font-size: 24px;
}

.play-overlay small {
  color: rgba(255, 255, 255, 0.7);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 34px;
}

.text-panel {
  padding: 26px;
  border-radius: var(--radius-md);
}

.text-panel p {
  color: var(--neutral-700);
  margin: 0;
}

.search-page-form {
  max-width: 780px;
  margin-top: 24px;
}

.site-footer {
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.74);
  background: var(--neutral-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--primary-400);
}

.footer-logo {
  color: var(--white);
}

.footer-brand p {
  max-width: 480px;
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .header-search {
    display: none;
  }

  .search-hero-card,
  .two-column-section,
  .detail-hero,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-card {
    position: static;
  }

  .detail-poster {
    max-width: 320px;
  }
}

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

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

  .hero-content {
    padding: 74px 0 150px;
  }

  .hero-thumbs {
    grid-template-columns: repeat(5, 1fr);
    overflow-x: auto;
  }

  .hero-thumb {
    min-width: 120px;
  }

  .hero-control {
    display: none;
  }

  .search-hero-card {
    margin-top: -28px;
    padding: 22px;
  }

  .large-search,
  .search-page-form,
  .mobile-nav form {
    flex-direction: column;
  }

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

  .category-card,
  .category-overview-card,
  .rank-card {
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .detail-hero {
    padding: 26px;
  }

  .detail-poster {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .category-grid,
  .movie-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 40px;
  }

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

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