:root {
  --primary-50: #f0f4f8;
  --primary-100: #d9e2ec;
  --primary-600: #486581;
  --primary-700: #334e68;
  --primary-800: #243b53;
  --primary-900: #102a43;
  --accent-300: #ffd54f;
  --accent-500: #ffc107;
  --accent-600: #ffb300;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --soft-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --medium-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.10), 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --hard-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.20), 0 20px 50px -10px rgba(0, 0, 0, 0.15);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(180deg, var(--slate-50), #ffffff 36rem);
  color: var(--slate-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--soft-shadow);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-900));
  color: #ffffff;
  font-size: 17px;
  box-shadow: var(--medium-shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a,
.mobile-links a {
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-links a:hover {
  background: var(--primary-100);
  color: var(--primary-800);
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 270px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  background: #ffffff;
  color: var(--slate-900);
  outline: none;
  transition: border 0.18s ease, box-shadow 0.18s ease;
}

.top-search input {
  height: 40px;
  padding: 0 74px 0 14px;
}

.top-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 10px;
  background: var(--primary-700);
  color: #ffffff;
  font-weight: 700;
}

.top-search button {
  position: absolute;
  right: 4px;
  height: 32px;
  padding: 0 13px;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(72, 101, 129, 0.22);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  padding: 8px 11px;
  background: var(--slate-100);
  color: var(--slate-700);
}

.mobile-panel {
  border-top: 1px solid var(--slate-200);
  background: #ffffff;
}

.mobile-links {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

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

.mobile-search input {
  height: 42px;
  padding: 0 14px;
}

.mobile-search button {
  padding: 0 16px;
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--primary-900) 55%, var(--slate-800));
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 193, 7, 0.18), transparent 32%), linear-gradient(90deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.34) 68%, rgba(15, 23, 42, 0.72));
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(760px, 100%);
  color: #ffffff;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.20);
  color: var(--accent-300);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(40px, 6vw, 68px);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #e2e8f0;
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.hero-tags span,
.detail-chips span,
.tag-list span,
.genre-list span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-accent {
  background: var(--accent-500);
  color: var(--slate-900);
  box-shadow: var(--hard-shadow);
}

.btn-accent:hover {
  background: var(--accent-600);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-light {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  border-radius: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.hero-meta i {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.35);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  transition: width 0.18s ease, background 0.18s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--accent-500);
}

.section {
  padding: 64px 0;
}

.section-soft {
  background: linear-gradient(90deg, var(--primary-50), var(--slate-50));
}

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

.section-head h2 {
  margin: 0 0 6px;
  color: var(--slate-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--slate-600);
}

.section-icon {
  margin-left: auto;
  color: var(--accent-500);
  font-size: 30px;
}

.section-more {
  color: var(--primary-700);
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.movie-card-link,
.rank-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-200);
}

.movie-thumb img,
.poster-media img,
.rank-card img,
.ranking-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card-link:hover .movie-thumb img,
.poster-link:hover img,
.rank-card-link:hover img {
  transform: scale(1.08);
}

.thumb-gradient,
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 62%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card-link:hover .thumb-gradient,
.poster-link:hover .poster-shade {
  opacity: 1;
}

.movie-region,
.poster-meta {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.movie-body {
  display: flex;
  min-height: 156px;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-body strong,
.poster-info strong,
.rank-card strong,
.rank-text strong {
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.38;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-desc {
  margin-top: 8px;
  color: var(--slate-600);
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--slate-500);
  font-size: 12px;
}

.movie-meta em {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-style: normal;
  font-weight: 800;
}

.movie-meta b {
  font-weight: 800;
}

.rail {
  display: grid;
  grid-auto-columns: minmax(280px, 330px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scroll-snap-type: x proximity;
}

.rail .movie-card {
  scroll-snap-align: start;
}

.category-grid,
.overview-grid,
.spotlight-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile,
.category-card-main {
  display: flex;
  min-height: 146px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  color: #ffffff;
  box-shadow: var(--medium-shadow);
  position: relative;
}

.category-tile:before,
.category-card-main:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -28px;
  top: -30px;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.22);
}

.category-tile span,
.category-card-main span {
  position: relative;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em,
.category-card-main em {
  position: relative;
  margin-top: 8px;
  color: #dbeafe;
  font-size: 13px;
  font-style: normal;
}

.movie-card-poster .poster-link {
  display: block;
}

.poster-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background: var(--slate-200);
  box-shadow: var(--soft-shadow);
}

.poster-info {
  display: block;
  padding-top: 12px;
}

.poster-info em {
  display: block;
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.callout {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  color: #ffffff;
}

.callout-inner {
  text-align: center;
}

.callout h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 48px);
}

.callout p {
  max-width: 760px;
  margin: 0 auto;
  color: #dbeafe;
  font-size: 18px;
}

.callout-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--primary-900));
  color: #ffffff;
}

.page-hero {
  padding: 72px 0;
}

.compact-hero,
.category-hero,
.ranking-hero,
.search-hero {
  background: radial-gradient(circle at 18% 20%, rgba(255, 193, 7, 0.19), transparent 30%), linear-gradient(135deg, var(--primary-800), var(--slate-900));
}

.page-hero h1 {
  max-width: 860px;
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.small-actions {
  margin-top: 24px;
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-sample {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
}

.category-sample a {
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--slate-700);
  background: var(--slate-50);
  font-weight: 700;
}

.filter-panel {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
  height: 44px;
  padding: 0 13px;
}

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

.rank-card-link {
  flex-direction: row;
  min-height: 170px;
}

.rank-card img {
  width: 150px;
  flex: 0 0 150px;
}

.rank-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.rank-card-body em,
.rank-card-body span,
.rank-text em,
.rank-text span {
  color: var(--slate-600);
  font-size: 13px;
  font-style: normal;
}

.rank-card-body span {
  margin-top: 8px;
}

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

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

.ranking-row a {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row a:hover {
  transform: translateY(-2px);
  box-shadow: var(--medium-shadow);
}

.rank-no {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-100);
  color: var(--primary-800);
  font-size: 18px;
  font-weight: 900;
}

.ranking-row img {
  width: 96px;
  height: 62px;
  border-radius: 12px;
  background: var(--slate-200);
}

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

.rank-text strong,
.rank-text em,
.rank-text span {
  display: block;
}

.rank-text span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  justify-self: end;
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff8e1;
  color: #9a6b00;
  font-size: 13px;
}

.hero-search {
  margin-top: 26px;
  display: flex;
  max-width: 620px;
  gap: 10px;
}

.hero-search input {
  height: 52px;
  padding: 0 18px;
}

.hero-search button {
  min-width: 112px;
}

.search-result-head {
  margin-bottom: 22px;
}

.search-result-head h2 {
  margin: 0 0 4px;
  font-size: 30px;
}

.search-result-head p {
  margin: 0;
  color: var(--slate-600);
}

.detail-hero {
  min-height: 420px;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.42) 66%, rgba(15, 23, 42, 0.86));
}

.detail-hero-inner {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: #ffffff;
  font-weight: 700;
}

.breadcrumb em {
  font-style: normal;
}

.detail-copy {
  max-width: 820px;
}

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.detail-copy p {
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 19px;
}

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

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: var(--hard-shadow);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #000000;
  color: #ffffff;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-cover-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 193, 7, 0.12), rgba(0, 0, 0, 0.52));
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--accent-500);
  color: var(--slate-900);
  font-size: 34px;
  box-shadow: var(--hard-shadow);
}

.detail-article,
.tag-box,
.side-card {
  margin-top: 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.detail-article,
.tag-box {
  padding: 24px;
}

.detail-article h2,
.tag-box h2,
.info-side h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 20px;
  color: var(--slate-700);
  font-size: 16px;
}

.detail-article p:last-child {
  margin-bottom: 0;
}

.tag-list span,
.genre-list span {
  background: var(--primary-50);
  color: var(--primary-700);
}

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

.side-card {
  overflow: hidden;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--slate-200);
}

.poster-side div,
.info-side {
  padding: 18px;
}

.poster-side strong,
.poster-side span {
  display: block;
}

.poster-side strong {
  color: var(--slate-900);
  font-size: 20px;
  line-height: 1.35;
}

.poster-side span {
  margin-top: 6px;
  color: var(--slate-500);
}

.info-side dl {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0 0 18px;
}

.info-side dt {
  color: var(--slate-500);
}

.info-side dd {
  margin: 0;
  color: var(--slate-800);
  font-weight: 700;
}

.site-footer {
  margin-top: 24px;
  background: var(--slate-900);
  color: #cbd5e1;
}

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

.footer-brand strong {
  color: #ffffff;
  font-size: 22px;
}

.footer-brand p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 1040px) {
  .cards-4,
  .poster-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-search {
    display: none;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
  }

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

@media (max-width: 780px) {
  .nav-shell {
    height: 60px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .hero-carousel,
  .hero-inner {
    min-height: 560px;
  }

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

  .hero-actions,
  .callout-actions,
  .hero-search {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hero-meta i {
    display: none;
  }

  .section {
    padding: 46px 0;
  }

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

  .cards-4,
  .poster-grid,
  .category-grid,
  .overview-grid,
  .spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ranking-row a {
    grid-template-columns: 44px 82px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .rank-no {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .ranking-row img {
    width: 82px;
    height: 56px;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container,
  .nav-shell,
  .footer-shell,
  .hero-inner,
  .mobile-links,
  .mobile-search {
    width: min(100% - 24px, 1180px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy small {
    display: none;
  }

  .cards-4,
  .poster-grid,
  .category-grid,
  .overview-grid,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .mobile-links {
    grid-template-columns: 1fr;
  }

  .hero-carousel,
  .hero-inner {
    min-height: 520px;
  }

  .page-hero {
    padding: 54px 0;
  }

  .movie-body {
    min-height: auto;
  }

  .rank-card-link {
    flex-direction: column;
  }

  .rank-card img {
    width: 100%;
    flex-basis: auto;
    aspect-ratio: 16 / 9;
  }
}
