:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --teal: #14b8a6;
  --green: #22c55e;
  --red: #dc2626;
  --ink: #111827;
  --muted: #4b5563;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  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(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--cyan-dark);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #374151;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 92px;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 52%, #f0fdfa 100%);
}

.hero-pattern,
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #cffafe;
  color: #0e7490;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-copy h1,
.page-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.hero-copy p,
.page-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.85;
}

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

.hero-link-row a {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(6, 182, 212, 0.18);
  color: #0f766e;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.btn-secondary {
  color: #374151;
  background: #ffffff;
  border-color: #d1d5db;
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan-dark);
}

.btn-ghost {
  color: #0e7490;
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(6, 182, 212, 0.28);
}

.hero-stage {
  position: relative;
  min-height: 520px;
}

.hero-slides {
  position: relative;
  height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow);
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16) 56%, rgba(0, 0, 0, 0.04));
}

.hero-slide-copy {
  position: absolute;
  z-index: 1;
  left: 34px;
  right: 34px;
  bottom: 34px;
  color: #ffffff;
}

.hero-slide-copy h2 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.hero-slide-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.75;
}

.hero-controls {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #0e7490;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  font-size: 30px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #a7f3d0;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 28px;
  background: var(--cyan-dark);
}

.feature-strip,
.alt-bg {
  background: #f9fafb;
}

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

.feature-grid article {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.feature-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.feature-grid span {
  color: var(--muted);
  line-height: 1.65;
}

.section-block {
  padding: 76px 0;
}

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

.section-head span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
}

.section-head a,
.text-link {
  color: var(--cyan-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: #111827;
}

.compact .movie-cover {
  height: 210px;
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 55%);
}

.cover-year,
.rank-num {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.rank-num {
  left: 14px;
  right: auto;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.movie-body {
  padding: 20px;
}

.movie-meta,
.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.movie-body h2 {
  margin: 12px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.movie-body h2 a:hover,
.rank-info h2 a:hover {
  color: var(--cyan-dark);
}

.movie-body p {
  min-height: 48px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 13px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-card img,
.category-card span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card span {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.08));
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 1;
}

.category-card strong {
  margin-bottom: 8px;
  font-size: 24px;
}

.category-card em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 92px 54px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.rank-thumb {
  display: block;
  width: 92px;
  height: 120px;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-badge {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.side-panel,
.filter-panel,
.detail-card,
.category-overview-card {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.side-panel {
  padding: 30px;
}

.side-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.side-panel p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.page-main {
  background: #f9fafb;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 52%, #f0fdfa 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-small {
  padding: 58px 0;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 26px;
}

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

.filter-title h2 {
  margin: 0;
  font-size: 26px;
}

.filter-title p {
  margin: 0;
  color: var(--muted);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 180px;
  gap: 16px;
}

.filter-controls label span {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 800;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 14px;
  background: #ffffff;
  outline: none;
  transition: border 0.25s ease;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--cyan);
}

.view-switch {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.view-switch button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: #374151;
  background: #f3f4f6;
  cursor: pointer;
  font-weight: 800;
}

.view-switch button.is-active {
  color: #ffffff;
  background: var(--cyan-dark);
}

.filter-results.list-view {
  display: grid;
  grid-template-columns: 1fr;
}

.filter-results.list-view .movie-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.filter-results.list-view .movie-cover {
  height: 100%;
  min-height: 220px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 36px;
  border-radius: 22px;
  background: #ffffff;
  color: #6b7280;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.empty-state.show {
  display: block;
}

.category-overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  padding: 22px;
}

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

.category-mosaic img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-overview-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.mini-links a {
  padding: 7px 11px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-weight: 700;
  font-size: 14px;
}

.detail-main {
  background: #f9fafb;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000000;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.26) 58%, rgba(0, 0, 0, 0.08));
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 54px;
  color: #ffffff;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-weight: 800;
}

.detail-tags span:first-child {
  background: var(--cyan);
}

.detail-hero h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
}

.detail-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  line-height: 1.75;
}

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

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.3);
  font-size: 32px;
}

.play-overlay strong {
  font-size: 18px;
}

.detail-card {
  margin-top: 26px;
  padding: 30px;
}

.detail-card h2 {
  margin: 28px 0 14px;
  font-size: 28px;
}

.detail-card h2:first-of-type {
  margin-top: 22px;
}

.detail-card p {
  margin: 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.9;
}

.detail-tag-row {
  margin-top: 18px;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.prev-next a {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  color: #0e7490;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

.side-recommend {
  display: grid;
  gap: 18px;
}

.side-recommend .movie-card {
  box-shadow: none;
  border: 1px solid #e5e7eb;
}

.side-recommend .movie-cover {
  height: 160px;
}

.side-recommend .movie-body h2 {
  font-size: 18px;
}

.site-footer {
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  border-top: 1px solid #e5e7eb;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #4b5563;
}

.site-footer a:hover {
  color: var(--cyan-dark);
}

.footer-bottom {
  padding: 20px;
  border-top: 1px solid #d1d5db;
  color: #6b7280;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--cyan-dark);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.back-top.show {
  display: block;
}

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

  .hero-stage {
    min-height: 460px;
  }

  .hero-slides {
    height: 460px;
  }

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

  .detail-side {
    order: 2;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: #ecfeff;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    padding: 52px 0 72px;
  }

  .hero-stage,
  .hero-slides {
    min-height: 420px;
    height: 420px;
  }

  .hero-slide-copy {
    left: 22px;
    right: 22px;
    bottom: 28px;
  }

  .hero-controls {
    left: 10px;
    right: 10px;
  }

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

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

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

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

  .filter-results.list-view .movie-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1280px);
  }

  .hero-copy p,
  .page-hero p,
  .detail-hero p {
    font-size: 17px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

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

  .rank-item {
    grid-template-columns: 74px 44px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-thumb {
    width: 74px;
    height: 98px;
  }

  .prev-next {
    grid-template-columns: 1fr;
  }

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