:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --ink: #2f1d0b;
  --muted: #7c6a57;
  --card: #ffffff;
  --shadow: 0 20px 55px rgba(120, 53, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.site-body {
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 42%, #fffbeb 100%);
}

body,
button,
input,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(120, 53, 15, 0.94);
  backdrop-filter: blur(16px);
  color: #fff7ed;
  box-shadow: 0 8px 24px rgba(69, 26, 3, 0.22);
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 900;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  color: white;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.35);
}

.desktop-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: 1rem;
}

.desktop-nav a,
.mobile-menu a {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: #fde68a;
  font-weight: 700;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.nav-search {
  margin-left: auto;
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-search input {
  width: 210px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff7ed;
  padding: 0.55rem 0.85rem;
}

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

.nav-search button,
.big-search button,
.home-search-panel button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 2.55rem;
  height: 2.55rem;
  border: 0;
  border-radius: 0.8rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.35rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--amber-900), var(--orange-600));
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  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.12));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  color: white;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-cloud {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(217, 119, 6, 0.92);
  color: white;
}

.hero-content h1 {
  max-width: 700px;
  margin: 1rem 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 1.6rem;
  color: #fef3c7;
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 2.9rem;
  padding: 0.75rem 1.35rem;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.3);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.rank-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
}

.ghost-button {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

.primary-button.block {
  display: flex;
  width: 100%;
  margin-top: 1rem;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  cursor: pointer;
}

.hero-arrow.prev {
  left: 1.4rem;
}

.hero-arrow.next {
  right: 1.4rem;
}

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

.hero-dots button {
  width: 0.8rem;
  height: 0.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dots button.active {
  width: 2.2rem;
  background: var(--orange-500);
}

.home-search-panel,
.content-section,
.feature-section,
.page-shell,
.site-footer .footer-grid,
.footer-bottom {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.home-search-panel {
  margin-top: -2.4rem;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.home-search-panel h2 {
  margin: 0 0 0.4rem;
  color: var(--amber-900);
  font-size: 1.45rem;
}

.home-search-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.home-search-panel form,
.big-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.home-search-panel input,
.big-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 2px solid #fed7aa;
  border-radius: 999px;
  outline: 0;
  padding: 0.85rem 1rem;
  background: white;
  color: var(--ink);
}

.home-search-panel input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.content-section,
.feature-section,
.page-shell {
  padding: 3.2rem 1rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  color: var(--amber-900);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.section-heading a {
  color: var(--orange-600);
  font-weight: 900;
}

.section-heading.light h2,
.section-heading.light a,
.section-heading.light .section-kicker {
  color: #fff7ed;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 0.3rem;
  color: var(--orange-600);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.movie-grid {
  display: grid;
  gap: 1.1rem;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.22);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #ea580c);
}

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

.poster-wrap img,
.category-card img,
.feature-main img,
.rank-card img,
.side-poster-card img,
.category-thumbs img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-wrap img,
.category-card img,
.feature-main img {
  transition: transform 0.48s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.feature-main:hover img {
  transform: scale(1.08);
}

.poster-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(217, 119, 6, 0.95);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.46);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: 0.24s ease;
}

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

.movie-card-body {
  padding: 0.85rem;
}

.movie-card-body h3 {
  margin: 0 0 0.45rem;
  color: var(--amber-900);
  font-size: 1rem;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  min-height: 3.1em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #8a6b47;
  font-size: 0.78rem;
}

.card-meta span,
.card-meta a,
.detail-meta span,
.detail-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-800);
  font-weight: 800;
}

.card-meta.compact span {
  font-size: 0.72rem;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 250px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

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

.feature-section {
  margin-top: 3.2rem;
  padding: 2rem;
  border-radius: 1.6rem;
  background: linear-gradient(135deg, #92400e, #ea580c);
  box-shadow: var(--shadow);
}

.feature-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.feature-main {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 1.2rem;
  background: var(--amber-900);
}

.feature-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.82));
}

.feature-main > div {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 2;
  color: white;
}

.feature-main span {
  color: #fde68a;
  font-weight: 900;
}

.feature-main h3 {
  margin: 0.45rem 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.feature-main p {
  margin: 0;
  color: #ffedd5;
  line-height: 1.7;
}

.feature-side,
.ranking-grid,
.ranking-page-list,
.side-links {
  display: grid;
  gap: 0.85rem;
}

.rank-card {
  display: grid;
  grid-template-columns: auto 86px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.72rem;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.1);
  transition: 0.22s ease;
}

.rank-card img {
  width: 86px;
  height: 64px;
  border-radius: 0.75rem;
  background: var(--amber-100);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  color: white;
  font-weight: 950;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.rank-card h3 {
  margin: 0 0 0.3rem;
  color: var(--amber-900);
  font-size: 1rem;
  line-height: 1.3;
}

.rank-card p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.category-card,
.category-overview-card {
  overflow: hidden;
  border-radius: 1.1rem;
  background: white;
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.12);
  transition: 0.22s ease;
}

.category-card {
  position: relative;
  min-height: 220px;
}

.category-card > img {
  height: 220px;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.75));
}

.category-card > div {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: white;
}

.category-card h3,
.category-card p {
  margin: 0;
}

.category-card h3 {
  font-size: 1.28rem;
  font-weight: 950;
}

.category-card p {
  margin-top: 0.35rem;
  color: #ffedd5;
  font-size: 0.86rem;
  line-height: 1.55;
}

.page-shell {
  padding-bottom: 3rem;
}

.page-hero.small {
  margin-top: 1.5rem;
  padding: 2.4rem;
  border-radius: 1.6rem;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(255, 237, 213, 0.95));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.page-hero p {
  max-width: 800px;
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.category-overview-grid {
  margin-top: 1.5rem;
}

.category-overview-card {
  display: flex;
  flex-direction: column;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 135px;
  overflow: hidden;
}

.category-thumbs img {
  border-right: 1px solid rgba(255, 255, 255, 0.5);
}

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

.category-overview-body h2 {
  margin: 0 0 0.55rem;
  color: var(--amber-900);
  font-size: 1.3rem;
}

.category-overview-body p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

.category-overview-body span {
  color: var(--orange-600);
  font-weight: 900;
}

.library-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.category-sidebar {
  position: sticky;
  top: 6rem;
  align-self: start;
  padding: 1rem;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.11);
}

.category-sidebar h2 {
  margin: 0 0 0.85rem;
  color: var(--amber-900);
  font-size: 1.1rem;
}

.category-sidebar nav {
  display: grid;
  gap: 0.45rem;
}

.category-sidebar a {
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  color: var(--amber-900);
  font-weight: 800;
}

.category-sidebar a.active,
.category-sidebar a:hover {
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb a {
  color: var(--orange-600);
}

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

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

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  aspect-ratio: 16 / 9;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.movie-video {
  object-fit: cover;
  background: #111827;
}

.player-cover {
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #111827;
}

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

.player-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.64));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  color: white;
  font-size: 2.2rem;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.34);
}

.detail-card,
.side-poster-card,
.side-links,
.search-panel-page {
  margin-top: 1.25rem;
  padding: 1.35rem;
  border-radius: 1.25rem;
  background: white;
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.11);
}

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

.detail-title-row h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
}

.detail-title-row > span {
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: white;
  font-weight: 950;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.detail-meta {
  margin: 1rem 0;
}

.tag-cloud {
  margin: 0 0 1.2rem;
}

.tag-cloud span {
  color: var(--orange-600);
  background: #ffedd5;
}

.detail-card section {
  margin-top: 1.3rem;
  padding-top: 1.3rem;
  border-top: 1px solid #fed7aa;
}

.detail-card h2,
.side-links h2 {
  margin: 0 0 0.65rem;
  color: var(--amber-900);
  font-size: 1.28rem;
}

.detail-card p {
  margin: 0;
  color: #5f4936;
  font-size: 1rem;
  line-height: 1.9;
}

.detail-card .lead-text {
  color: var(--amber-800);
  font-size: 1.08rem;
  font-weight: 700;
}

.side-poster-card {
  margin-top: 0;
}

.side-poster-card img {
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  background: var(--amber-100);
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.big-search {
  align-items: stretch;
}

.big-search input {
  font-size: 1rem;
}

.search-meta {
  min-height: 2rem;
  margin: 1rem 0;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  margin-top: 3rem;
  color: #ffedd5;
  background: linear-gradient(135deg, var(--amber-950), var(--amber-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding: 2.4rem 1rem;
}

.footer-grid p {
  max-width: 520px;
  color: #fde68a;
  line-height: 1.75;
}

.footer-grid h2 {
  margin: 0 0 1rem;
  color: white;
  font-size: 1.05rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: #fde68a;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding: 1rem;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  text-align: center;
  color: #fcd34d;
  font-size: 0.9rem;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .movie-grid.six,
  .movie-grid.five {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .mobile-menu.open {
    display: flex;
  }

  .hero-carousel {
    height: 540px;
  }

  .home-search-panel,
  .feature-grid,
  .library-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: static;
  }

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

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

@media (max-width: 620px) {
  .nav-shell {
    padding: 0.75rem 0.85rem;
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    justify-content: end;
    padding-bottom: 5rem;
  }

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

  .home-search-panel {
    margin-top: 0;
    border-radius: 0;
  }

  .home-search-panel form,
  .big-search,
  .filter-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .movie-grid.six,
  .movie-grid.five,
  .movie-grid.four,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .movie-card-body {
    padding: 0.7rem;
  }

  .movie-card-body h3 {
    font-size: 0.92rem;
  }

  .rank-card {
    grid-template-columns: 58px 1fr;
  }

  .rank-card .rank-no {
    grid-row: span 2;
  }

  .rank-card img {
    display: none;
  }

  .page-hero.small,
  .feature-section,
  .detail-card,
  .side-poster-card,
  .side-links,
  .search-panel-page {
    border-radius: 1rem;
    padding: 1rem;
  }

  .detail-title-row {
    flex-direction: column;
  }
}
