:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #162033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --amber-50: #fffbeb;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --teal-900: #134e4a;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 8px 25px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(18px);
}

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

.header-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--white);
  font-weight: 900;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.3);
}

.logo-copy {
  display: grid;
  gap: 1px;
}

.logo-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.logo-copy em {
  font-size: 12px;
  color: var(--stone-400);
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}

.nav-link {
  position: relative;
  font-size: 14px;
  color: var(--stone-200);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--amber-500);
  transition: width 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-400);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-search,
.mobile-search,
.search-hero-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.search-hero-form input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 999px;
  outline: none;
  color: var(--slate-900);
  background: rgba(255, 255, 255, 0.96);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 220px;
  padding: 10px 14px;
  font-size: 13px;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-hero-form input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.nav-search button,
.mobile-search button,
.search-hero-form button,
.btn,
.filter-reset {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav-search button,
.mobile-search button {
  padding: 10px 16px;
  font-size: 13px;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-hero-form button:hover,
.btn:hover,
.filter-reset:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.3);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--stone-200);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-link.is-active,
.mobile-link:hover {
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.12);
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.78) 48%, rgba(15, 23, 42, 0.12));
}

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

.hero-copy {
  width: min(680px, 92vw);
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  background: rgba(217, 119, 6, 0.9);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.25);
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero strong {
  display: block;
  margin-top: 12px;
  color: var(--amber-400);
  font-size: clamp(24px, 4vw, 46px);
}

.hero p {
  width: min(620px, 100%);
  margin: 24px 0 0;
  color: var(--stone-200);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.tag-list span,
.info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--stone-100);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 700;
}

.btn-soft {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.btn-soft:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.46);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--amber-500);
}

.section {
  padding: 72px 0;
}

.section-dark {
  color: var(--white);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-700));
}

.section-amber {
  background: var(--amber-50);
}

.section-teal {
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-900), var(--slate-900), var(--slate-800));
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--stone-600);
}

.section-dark .section-desc,
.section-teal .section-desc {
  color: var(--stone-300);
}

.rail {
  overflow-x: auto;
  padding: 6px 0 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--amber-600) rgba(255, 255, 255, 0.18);
}

.rail-track {
  display: flex;
  gap: 22px;
  min-width: max-content;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card.rail-card {
  width: 310px;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--slate-800);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--slate-900);
}

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

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.44));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
}

.badge-left {
  left: 12px;
  background: rgba(217, 119, 6, 0.92);
}

.badge-right {
  right: 12px;
}

.play-hover {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-card-body {
  padding: 18px;
}

.movie-card h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.rail-card h3 {
  color: var(--white);
}

.movie-card:hover h3 {
  color: var(--amber-700);
}

.movie-card p {
  min-height: 44px;
  margin: 8px 0 0;
  color: var(--stone-600);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-card p {
  color: var(--stone-300);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--stone-600);
  font-size: 12px;
}

.card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--stone-100);
}

.rail-card .card-meta span {
  color: var(--stone-200);
  background: rgba(255, 255, 255, 0.1);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
  box-shadow: var(--soft-shadow);
  isolation: isolate;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.36), transparent 36%);
}

.category-card-content {
  position: relative;
  z-index: 2;
  padding: 26px;
}

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

.category-card p {
  margin: 10px 0 20px;
  color: var(--stone-300);
  font-size: 14px;
}

.category-card span {
  color: var(--amber-400);
  font-weight: 700;
}

.category-thumbs {
  position: absolute;
  right: -20px;
  bottom: -20px;
  display: flex;
  gap: 10px;
  opacity: 0.42;
  transform: rotate(-6deg);
}

.category-thumbs img {
  width: 86px;
  height: 126px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
}

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

.rank-item {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.rank-item a {
  display: grid;
  grid-template-columns: 56px 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
}

.rank-item img {
  width: 96px;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

.rank-item h3 {
  margin: 0;
  font-size: 18px;
}

.rank-item p {
  margin: 8px 0 0;
  color: var(--stone-600);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  margin-top: 10px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 700;
}

.page-hero {
  color: var(--white);
  padding: 76px 0;
  background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.28), transparent 28%), linear-gradient(90deg, var(--slate-900), var(--slate-800));
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 16px 0 0;
  color: var(--stone-200);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--stone-300);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.filter-input,
.filter-select {
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
}

.filter-reset {
  height: 46px;
  padding: 0 18px;
}

.empty-state {
  display: none;
  padding: 48px;
  text-align: center;
  color: var(--stone-600);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(1px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.82));
}

.detail-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.detail-info .summary {
  margin: 22px 0 0;
  color: var(--stone-200);
  font-size: 17px;
}

.info-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-list span {
  color: var(--amber-50);
  background: rgba(217, 119, 6, 0.22);
  border-color: rgba(245, 158, 11, 0.28);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.content-panel {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.content-panel h2,
.player-section h2,
.related-section h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.content-panel p {
  margin: 0;
  color: var(--stone-700);
}

.content-panel p + p {
  margin-top: 18px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--black);
  box-shadow: var(--shadow);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.62));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  border-radius: 999px;
  font-size: 34px;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 24px 48px rgba(217, 119, 6, 0.36);
}

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

.related-section {
  margin-top: 52px;
}

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

.compact-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  border-radius: var(--radius-lg);
  background: var(--slate-900);
  box-shadow: var(--soft-shadow);
}

.compact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  opacity: 0.82;
}

.compact-card span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.search-panel {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.search-hero-form {
  display: grid;
  grid-template-columns: 1fr auto;
}

.search-hero-form input {
  height: 56px;
  padding: 0 20px;
  border-radius: 18px;
}

.search-hero-form button {
  height: 56px;
  padding: 0 26px;
  border-radius: 18px;
}

.search-status {
  margin: 18px 0 0;
  color: var(--stone-600);
}

.site-footer {
  color: var(--stone-300);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.footer-brand p {
  margin: 0;
  max-width: 420px;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 16px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: var(--stone-400);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

  .detail-shell {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 560px;
  }

  .hero-nav {
    display: none;
  }

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

  .movie-grid,
  .movie-grid.six,
  .category-grid,
  .rank-grid,
  .compact-grid,
  .footer-shell,
  .detail-shell,
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .detail-shell {
    align-items: start;
  }

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

  .rank-item a {
    grid-template-columns: 46px 82px 1fr;
    gap: 12px;
  }

  .rank-item img {
    width: 82px;
    height: 104px;
  }
}

@media (max-width: 560px) {
  .header-shell,
  .footer-shell,
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo-copy em {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-slide::after {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.94));
  }

  .hero h1,
  .hero h2 {
    font-size: 38px;
  }

  .hero strong {
    font-size: 28px;
  }

  .movie-grid,
  .movie-grid.six,
  .category-grid,
  .rank-grid,
  .compact-grid,
  .footer-shell,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .movie-card.rail-card {
    width: 260px;
  }

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

  .content-panel {
    padding: 22px;
  }

  .search-hero-form {
    grid-template-columns: 1fr;
  }
}
