:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --rose-600: #e11d48;
  --teal-600: #0d9488;
  --blue-900: #1e3a8a;
  --indigo-900: #312e81;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.13);
  --shadow-deep: 0 28px 80px rgba(15, 23, 42, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #f8fafc 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-900), var(--amber-700), var(--amber-950));
  box-shadow: 0 10px 28px rgba(69, 26, 3, 0.26);
}

.header-inner {
  max-width: 1240px;
  height: 66px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  color: var(--amber-800);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 12px 26px rgba(0,0,0,0.22);
}

.brand-name {
  font-size: 21px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link,
.mobile-link {
  font-weight: 650;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--amber-100);
  opacity: 1;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 12px 22px 18px;
  border-top: 1px solid rgba(255,255,255,0.16);
  background: var(--amber-900);
}

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

.hero {
  position: relative;
  height: 640px;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-950), var(--amber-700) 46%, #7f1d1d 100%);
}

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.08) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.35), transparent 34%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(120, 53, 15, 0.78) 48%, rgba(15, 23, 42, 0.58));
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 86px 22px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 54px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.eyebrow,
.section-heading span,
.section-title span,
.ranking-copy span {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--amber-500);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-desc {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.75;
  color: #fffbeb;
}

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

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255,255,255,0.16);
  color: #fff7ed;
  backdrop-filter: blur(8px);
}

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

.primary-button,
.secondary-button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  font-weight: 820;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-search button {
  color: var(--amber-950);
  background: var(--white);
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);
}

.primary-button:hover,
.hero-search button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  color: var(--white);
  background: rgba(146, 64, 14, 0.72);
  border: 2px solid rgba(255,255,255,0.72);
}

.secondary-button.light {
  background: rgba(255,255,255,0.14);
  color: var(--white);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-deep);
  transform: rotate(2.5deg);
  isolation: isolate;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(0,0,0,0.76));
  z-index: 1;
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  font-weight: 800;
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--white);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 6;
  width: min(820px, calc(100% - 44px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.24);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: var(--slate-900);
  outline: none;
  background: rgba(255,255,255,0.96);
}

.section,
.detail-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 22px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.section-title h2,
.ranking-copy h2,
.side-card h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p,
.ranking-copy p,
.page-hero p {
  margin: 14px 0 0;
  color: var(--slate-600);
  font-size: 17px;
  line-height: 1.78;
}

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

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

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

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

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

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.72));
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 13px;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 880;
  color: var(--slate-800);
}

.movie-card h2 a:hover,
.text-link:hover {
  color: var(--amber-700);
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.text-link {
  color: var(--amber-700);
  font-weight: 850;
}

.category-section {
  max-width: none;
  background: linear-gradient(90deg, #f8fafc, #fff7ed, #f8fafc);
}

.category-section .section-heading,
.category-section .category-grid {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

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

.category-tile,
.category-overview-card a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-600), #0891b2);
  box-shadow: 0 18px 38px rgba(13, 148, 136, 0.23);
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-5px) scale(1.01);
  filter: saturate(1.08);
  box-shadow: 0 24px 50px rgba(13, 148, 136, 0.3);
}

.category-tile strong,
.category-overview-card h2 {
  font-size: 22px;
  font-weight: 900;
}

.category-tile span,
.category-overview-card p {
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  font-size: 14px;
}

.category-overview-card span {
  font-weight: 900;
  opacity: 0.58;
}

.ranking-band {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), var(--indigo-900), var(--slate-950));
  padding: 76px 22px;
}

.ranking-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
}

.ranking-copy h2,
.light-title h2 {
  color: var(--white);
}

.ranking-copy p {
  color: rgba(255,255,255,0.72);
}

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

.ranking-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-list a:hover {
  background: rgba(255,255,255,0.16);
  transform: translateX(5px);
}

.ranking-list span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--rose-600);
  font-weight: 900;
}

.ranking-list strong,
.ranking-list em {
  grid-column: 2;
}

.ranking-list strong {
  font-weight: 820;
}

.ranking-list em {
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  padding: 92px 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(245, 158, 11, 0.38), transparent 32%),
    linear-gradient(135deg, var(--amber-950), var(--amber-800), #7f1d1d);
  overflow: hidden;
}

.page-hero > div {
  max-width: 1240px;
  margin: 0 auto;
}

.page-hero p {
  max-width: 780px;
  color: rgba(255,255,255,0.78);
}

.slim-hero {
  padding-top: 78px;
  padding-bottom: 78px;
}

.category-hero,
.ranking-hero {
  background:
    radial-gradient(circle at 80% 15%, rgba(45, 212, 191, 0.26), transparent 32%),
    linear-gradient(135deg, var(--slate-950), var(--blue-900), var(--amber-900));
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(150px, 0.45fr));
  gap: 14px;
  margin-bottom: 30px;
  padding: 16px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  outline: none;
  background: var(--slate-50);
  color: var(--slate-800);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--slate-500);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

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

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--amber-700);
  font-weight: 820;
}

.detail-hero-card {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  padding: 30px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-deep);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

.badge-row span {
  color: var(--amber-900);
  background: var(--amber-100);
}

.detail-info h1 {
  margin: 18px 0 16px;
  color: var(--slate-900);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 920;
  letter-spacing: -0.04em;
}

.lead-text {
  margin: 0 0 20px;
  color: var(--slate-700);
  font-size: 19px;
  line-height: 1.86;
}

.tag-row span {
  color: var(--slate-700);
  background: var(--slate-100);
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.detail-actions .primary-button {
  color: var(--white);
  background: var(--amber-700);
}

.detail-actions .secondary-button {
  color: var(--amber-900);
  background: #fff7ed;
  border-color: #fed7aa;
}

.player-card {
  margin-top: 44px;
  padding: 28px;
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--amber-950));
  box-shadow: var(--shadow-deep);
}

.video-box {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  border-radius: 22px;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 22px 60px rgba(0,0,0,0.34);
}

.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  cursor: pointer;
}

.play-button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.20), rgba(0,0,0,0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-button span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 50px rgba(0,0,0,0.32);
  position: relative;
}

.play-button span::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 25px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 26px solid var(--amber-700);
}

.video-box.is-started .play-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-top: 44px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 28px;
}

.content-card,
.side-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.content-card {
  padding: 30px;
}

.highlight-card {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border: 1px solid #fed7aa;
}

.section-title {
  margin-bottom: 18px;
}

.section-title h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.content-card p {
  margin: 0 0 16px;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.94;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.detail-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 22px;
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.side-card dl,
.side-card dd {
  margin: 0;
}

.side-card dl {
  display: grid;
  gap: 10px;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.side-card dt {
  color: var(--slate-500);
  font-weight: 800;
}

.side-card dd {
  color: var(--slate-800);
  line-height: 1.55;
}

.small-card-list {
  display: grid;
  gap: 12px;
}

.small-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  background: var(--slate-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.small-card:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

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

.small-card strong {
  display: -webkit-box;
  color: var(--slate-800);
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.small-card em {
  display: block;
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

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

.rank-card a {
  display: grid;
  grid-template-columns: 58px 88px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--rose-600);
  font-weight: 900;
  font-size: 19px;
}

.rank-card img {
  width: 88px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy strong,
.rank-copy em,
.rank-copy small {
  display: block;
}

.rank-copy strong {
  color: var(--slate-800);
  font-size: 19px;
  font-weight: 900;
}

.rank-copy em {
  margin-top: 7px;
  color: var(--amber-700);
  font-style: normal;
  font-weight: 750;
}

.rank-copy small {
  margin-top: 9px;
  color: var(--slate-600);
  line-height: 1.65;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 22px 34px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 17px;
}

.site-footer p,
.site-footer ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  line-height: 1.75;
}

.site-footer a:hover {
  color: var(--amber-500);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-inner,
  .ranking-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-side {
    position: static;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .menu-button {
    display: block;
  }

  .hero {
    height: 690px;
  }

  .hero-inner {
    padding-top: 72px;
    padding-bottom: 140px;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-dots {
    bottom: 128px;
  }

  .movie-grid,
  .movie-grid-featured,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .detail-hero-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

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

  .rank-card a {
    grid-template-columns: 46px 70px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-card img {
    width: 70px;
    height: 96px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero {
    height: 720px;
  }

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

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

  .section,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .content-card,
  .player-card,
  .side-card {
    padding: 20px;
  }
}
