:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --red-500: #ef4444;
  --pink-600: #db2777;
  --blue-500: #3b82f6;
  --cyan-600: #0891b2;
  --green-500: #22c55e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --dark: #1c0f06;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
  --soft-shadow: 0 12px 30px rgba(17, 24, 39, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 32%, #fffaf0 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.35);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #92400e, var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: var(--amber-600);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: nowrap;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--amber-100);
  color: #78350f;
}

.top-search {
  width: 260px;
  display: flex;
  align-items: center;
  border: 1px solid var(--amber-200);
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(251, 191, 36, 0.12);
}

.top-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 12px 10px 18px;
  color: var(--gray-700);
  background: transparent;
}

.top-search button {
  border: 0;
  width: 42px;
  align-self: stretch;
  color: var(--amber-700, #b45309);
  background: transparent;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.mobile-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: #92400e;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: var(--amber-100);
}

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

.hero-slider {
  padding: 28px 0 36px;
}

.hero-shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(146, 64, 14, 0.28);
  background: #451a03;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 6vw, 76px);
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #92400e;
  background: var(--amber-100);
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy .eyebrow {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 22px 0 12px;
  font-size: clamp(36px, 7vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy h3 {
  margin: 0 0 18px;
  color: #fde68a;
  font-size: clamp(20px, 3vw, 32px);
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.32);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.42);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.text-link {
  min-height: auto;
  padding: 0;
  color: var(--amber-600);
}

.text-link:hover {
  color: var(--orange-700);
}

.hero-poster {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: end;
  width: min(380px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

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

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

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

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

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

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

.content-section {
  margin-bottom: 64px;
}

.intro-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.section-kicker {
  color: var(--amber-600);
  font-size: 14px;
  font-weight: 900;
}

.intro-panel h2,
.section-title h2,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  color: var(--gray-900);
}

.intro-panel h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.intro-panel p,
.page-hero p {
  max-width: 760px;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.8;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.title-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

.title-icon.warm {
  background: linear-gradient(135deg, var(--red-500), var(--pink-600));
}

.title-icon.blue {
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-600));
}

.title-icon.green {
  background: linear-gradient(135deg, var(--green-500), var(--cyan-600));
}

.section-title h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 34px;
  align-items: center;
  padding: 26px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.featured-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.32s ease;
}

.featured-card:hover .featured-cover img {
  transform: scale(1.05);
}

.featured-info h2 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -0.04em;
}

.featured-info p,
.detail-content p {
  color: var(--gray-700);
  line-height: 1.85;
  font-size: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: var(--amber-100);
  font-size: 13px;
  font-weight: 800;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x mandatory;
}

.rail-item {
  flex: 0 0 290px;
  scroll-snap-align: start;
}

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

.movie-card {
  display: block;
  min-width: 0;
  border-radius: var(--radius-xl);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px rgba(146, 64, 14, 0.18);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

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

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

.score-pill,
.rank-badge {
  position: absolute;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
}

.score-pill {
  right: 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  left: 10px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.card-body {
  padding: 16px;
}

.card-body.compact {
  padding: 14px;
}

.meta-line {
  margin: 0 0 8px;
  color: var(--amber-600);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--gray-900);
}

.card-body p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 8px;
  color: #92400e;
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: start;
}

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

.category-tile,
.rank-panel,
.category-card-large,
.filter-panel,
.search-page-panel,
.detail-content,
.side-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: var(--shadow);
}

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52);
  transition: 0.28s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: #fffbeb;
  line-height: 1.6;
}

.rank-panel {
  padding: 22px;
}

.small-title h2 {
  font-size: 24px;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.rank-row:hover {
  background: var(--amber-50);
}

.rank-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

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

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  color: var(--gray-900);
}

.rank-info em {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.rank-heat {
  color: var(--amber-600);
  font-weight: 900;
  font-size: 13px;
}

.rank-more {
  margin-top: 18px;
}

.page-shell,
.detail-shell {
  padding: 32px 0 70px;
}

.page-hero {
  padding: clamp(32px, 6vw, 68px);
  margin-bottom: 30px;
  border-radius: 30px;
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.35), transparent 35%), linear-gradient(135deg, #fff7ed, #ffffff);
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.05em;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  transition: 0.22s ease;
}

.category-card-large:hover {
  transform: translateY(-4px);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.category-card-large h2 {
  margin: 14px 0 8px;
  font-size: 26px;
}

.category-card-large p {
  color: var(--gray-700);
  line-height: 1.75;
}

.category-card-large strong {
  color: var(--amber-600);
}

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

.crumbs a {
  color: var(--amber-600);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 110px;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select,
.filter-panel button,
.search-page-form input,
.search-page-form button {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--amber-200);
  background: #ffffff;
  padding: 0 14px;
  outline: 0;
}

.filter-panel button,
.search-page-form button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.ranking-list {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.search-page-panel {
  padding: 22px;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 12px;
  margin-bottom: 22px;
}

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

.search-empty {
  padding: 24px;
  color: var(--gray-500);
  background: var(--gray-50);
  border-radius: 18px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.35);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  text-align: center;
  padding: 24px;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.38);
  font-size: 30px;
  padding-left: 5px;
}

.play-layer strong {
  font-size: clamp(22px, 4vw, 36px);
}

.play-layer em {
  color: #fde68a;
  font-style: normal;
  font-weight: 800;
}

.detail-content {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 36px);
}

.detail-content h1 {
  margin-top: 16px;
  font-size: clamp(30px, 5vw, 50px);
  letter-spacing: -0.04em;
}

.lead-text {
  font-size: 18px;
  color: var(--gray-700);
}

.detail-content h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.detail-tags {
  margin: 18px 0 6px;
}

.detail-side {
  position: sticky;
  top: 102px;
}

.side-poster {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 16px;
}

.side-card p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.side-card p:last-child {
  border-bottom: 0;
}

.side-card strong {
  color: var(--gray-900);
}

.side-card a {
  color: var(--amber-600);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 40px;
  background: #451a03;
  color: #fffbeb;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.site-footer p {
  color: #fde68a;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: #fde68a;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .top-search {
    display: none;
  }

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

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-shell {
    min-height: 680px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .hero-poster {
    width: min(280px, 60vw);
    justify-self: start;
    transform: none;
  }

  .two-column,
  .watch-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .side-poster {
    max-width: 340px;
  }

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

  .category-large-grid,
  .featured-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .header-inner {
    min-height: 68px;
    width: min(100% - 24px, 1240px);
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero-slider {
    padding-top: 18px;
  }

  .hero-shell,
  .content-section,
  .page-shell,
  .detail-shell,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 24px, 1240px);
  }

  .hero-shell {
    min-height: 720px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 28px;
  }

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

  .hero-copy p {
    font-size: 16px;
  }

  .hero-control {
    display: none;
  }

  .intro-panel,
  .filter-panel,
  .search-page-form {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    display: block;
  }

  .movie-grid,
  .search-results,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .category-card-large {
    grid-template-columns: 1fr;
  }

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

  .rank-heat {
    display: none;
  }

  .rail-item {
    flex-basis: 250px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .search-results,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: 760px;
  }
}
