* {
  box-sizing: border-box;
}

:root {
  --mist-50: #f8f9fa;
  --mist-100: #f1f3f5;
  --mist-200: #e9ecef;
  --mist-300: #dee2e6;
  --mist-500: #868e96;
  --mist-600: #6c757d;
  --mist-700: #495057;
  --mist-800: #343a40;
  --mist-900: #212529;
  --mineral-50: #f0f9ff;
  --mineral-100: #e0f2fe;
  --mineral-300: #7dd3fc;
  --mineral-500: #0ea5e9;
  --mineral-600: #0284c7;
  --mineral-700: #0369a1;
  --moss-50: #f0fdf4;
  --moss-600: #16a34a;
  --earth-50: #faf8f5;
  --shadow-sm: 0 4px 12px rgba(33, 37, 41, 0.08);
  --shadow-md: 0 12px 30px rgba(33, 37, 41, 0.12);
  --shadow-xl: 0 25px 55px rgba(33, 37, 41, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  background: linear-gradient(135deg, rgba(33, 37, 41, 0.96), rgba(52, 58, 64, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.section-shell,
.page-shell,
.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--mineral-500), var(--mineral-700));
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.34);
}

.logo-text {
  font-size: 20px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--mist-100);
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  background: rgba(2, 132, 199, 0.92);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-button {
  border: 0;
  cursor: pointer;
  background: transparent;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  background: white;
  color: var(--mist-800);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu .nav-link {
  width: 100%;
  color: var(--mist-800);
  justify-content: flex-start;
}

.nav-dropdown-menu .nav-link:hover,
.nav-dropdown-menu .nav-link.is-active {
  color: var(--mineral-700);
  background: var(--mineral-50);
}

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

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: white;
  border-radius: 2px;
}

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

.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--mist-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

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

.hero-slide.is-active img {
  animation: heroZoom 7s ease forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 22%, rgba(14, 165, 233, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56) 45%, rgba(0, 0, 0, 0.18));
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(660px, 100%);
  color: white;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  color: white;
  background: rgba(2, 132, 199, 0.82);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--mist-100);
  font-size: 18px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: white;
  background: var(--mineral-600);
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--mineral-700);
  box-shadow: 0 16px 38px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-ghost {
  color: var(--mineral-700);
  background: var(--mineral-50);
}

.hero-search {
  width: min(520px, 100%);
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  padding: 0 10px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search button {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.46);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

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

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

.section {
  padding: 56px 0;
}

.section-soft {
  background: linear-gradient(135deg, var(--mineral-50), var(--moss-50));
}

.section-white {
  background: white;
}

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

.section-head h2,
.page-title h1,
.detail-main h1 {
  margin: 0;
  color: var(--mist-900);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--mist-600);
}

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

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

.feature-main {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: white;
  background: var(--mist-900);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.feature-main img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-main:hover img {
  transform: scale(1.05);
}

.feature-main-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
}

.feature-main-content h3 {
  margin: 12px 0 8px;
  font-size: 28px;
}

.feature-side {
  display: grid;
  gap: 14px;
}

.mini-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mini-card img {
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}

.mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--mist-900);
  font-size: 15px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-card span {
  display: block;
  margin-top: 6px;
  color: var(--mist-600);
  font-size: 13px;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: var(--mist-200);
}

.movie-card-compact .poster-wrap {
  height: 190px;
}

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

.movie-card-link:hover img {
  transform: scale(1.1);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 55%);
  transition: opacity 0.25s ease;
}

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: white;
  background: rgba(14, 165, 233, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.region-badge,
.score-badge,
.rank-score {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 4px 8px;
  color: white;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.region-badge {
  left: 10px;
  background: rgba(2, 132, 199, 0.92);
}

.score-badge {
  right: 10px;
  background: rgba(0, 0, 0, 0.72);
}

.card-body {
  display: block;
  padding: 16px;
}

.card-body strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  color: var(--mist-900);
  font-size: 16px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card-link:hover .card-body strong {
  color: var(--mineral-700);
}

.card-body em {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin-top: 8px;
  color: var(--mist-600);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: block;
  margin-top: 12px;
  color: var(--mist-500);
  font-size: 12px;
}

.horizontal-wrap {
  position: relative;
}

.horizontal-row {
  display: grid;
  grid-auto-columns: 280px;
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 20px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.horizontal-row::-webkit-scrollbar {
  display: none;
}

.scroll-buttons {
  display: flex;
  gap: 10px;
}

.scroll-buttons button {
  width: 40px;
  height: 40px;
  border: 0;
  color: var(--mist-700);
  background: var(--mist-200);
  border-radius: 50%;
  cursor: pointer;
}

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

.category-tile {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-tile strong {
  font-size: 20px;
}

.category-tile span {
  display: block;
  margin-top: 8px;
  color: var(--mist-600);
  font-size: 14px;
}

.category-tile em {
  color: var(--mineral-700);
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  padding: 54px 0 36px;
  color: white;
  background:
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.34), transparent 34%),
    linear-gradient(135deg, var(--mist-900), var(--mist-800));
}

.page-title h1 {
  color: white;
}

.page-title p {
  color: var(--mist-200);
  max-width: 780px;
}

.breadcrumbs {
  margin-bottom: 14px;
  color: var(--mist-300);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--mineral-300);
}

.filter-panel {
  margin: 28px 0 28px;
  padding: 18px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--mist-600);
  font-size: 13px;
  font-weight: 700;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--mist-200);
  border-radius: 12px;
  outline: 0;
  padding: 0 12px;
  background: var(--mist-50);
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--mineral-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--mist-600);
  font-size: 14px;
}

.filter-summary button {
  border: 0;
  color: var(--mineral-700);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

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

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

.ranking-item a {
  position: relative;
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 12px;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  color: var(--mineral-700);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 86px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
}

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

.rank-text strong {
  color: var(--mist-900);
  font-size: 16px;
}

.rank-text em {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: var(--mist-600);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-text span {
  margin-top: 6px;
  color: var(--mist-500);
  font-size: 12px;
}

.rank-score {
  position: static;
  justify-self: end;
  background: var(--mineral-600);
  font-size: 15px;
}

.player-stage {
  background: #000;
}

.player-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.player-frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.player-frame video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-frame video {
  object-fit: contain;
  background: #000;
}

.player-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  border: 0;
  color: white;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.36);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: rgba(14, 165, 233, 0.94);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(14, 165, 233, 0.18);
  font-size: 32px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  margin: 0;
  color: white;
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 26px;
  padding: 38px 0 56px;
}

.detail-card,
.side-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.detail-main {
  padding: 28px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  color: var(--mist-600);
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  background: var(--mist-100);
  border-radius: 999px;
  font-size: 13px;
}

.detail-intro {
  padding: 18px;
  margin: 20px 0;
  color: var(--mist-800);
  background: var(--mineral-50);
  border-left: 4px solid var(--mineral-600);
  border-radius: 14px;
  font-weight: 700;
}

.detail-main h2 {
  margin: 26px 0 10px;
  font-size: 21px;
}

.detail-main p {
  color: var(--mist-700);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.side-card {
  padding: 18px;
  margin-bottom: 18px;
}

.side-card img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.side-stat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.side-stat span {
  padding: 12px;
  background: var(--mist-50);
  border-radius: 12px;
  text-align: center;
}

.side-stat strong {
  display: block;
  color: var(--mineral-700);
  font-size: 22px;
}

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

.site-footer {
  color: var(--mist-100);
  background: linear-gradient(180deg, var(--mist-800), var(--mist-900));
}

.footer-shell {
  padding: 48px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
  color: var(--mist-300);
  font-size: 14px;
}

.footer-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-grid a:hover {
  color: var(--mineral-300);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--mist-600);
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1100px) {
  .card-grid,
  .card-grid.grid-5,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .filter-search {
    grid-column: 1 / -1;
  }
}

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-slider {
    height: 620px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

  .related-grid,
  .ranking-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .footer-shell,
  .section-shell,
  .page-shell,
  .hero-inner {
    width: min(100% - 24px, 1180px);
  }

  .logo-text {
    font-size: 17px;
  }

  .section {
    padding: 38px 0;
  }

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

  .card-grid,
  .card-grid.grid-5,
  .category-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 220px;
  }

  .ranking-item a {
    grid-template-columns: 42px 74px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .detail-main {
    padding: 20px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
