:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --amber: #f59e0b;
  --amber-2: #d97706;
  --blue: #2563eb;
  --red: #ef4444;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b 50%, #0f172a);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.22);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo-mark,
.footer-logo span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber), #fbbf24);
  color: #111827;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 22px;
  letter-spacing: 0.04em;
}

.logo-text small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.24);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 21px;
  cursor: pointer;
  transition: 0.25s ease;
}

.icon-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
  display: none;
}

.search-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.search-panel.is-open {
  display: block;
}

.search-box {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 24px;
}

.search-box input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 16px;
  outline: 0;
  transition: 0.25s ease;
}

.search-box input {
  background: #1e293b;
  color: #fff;
}

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

.search-results {
  position: absolute;
  top: calc(100% - 10px);
  left: 24px;
  right: 24px;
  z-index: 80;
  display: none;
  max-height: 420px;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.search-result-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.search-result-item span {
  color: var(--muted);
  font-size: 13px;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.is-active img {
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 78% 22%,
      rgba(245, 158, 11, 0.26),
      transparent 32%
    ),
    linear-gradient(
      90deg,
      rgba(2, 6, 23, 0.95) 0%,
      rgba(15, 23, 42, 0.82) 42%,
      rgba(15, 23, 42, 0.2) 100%
    ),
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 650px;
  margin: 0 auto;
  padding: 92px 24px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.55fr);
  align-items: center;
  gap: 52px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.26);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 720px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.85;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #fff;
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.34);
}

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

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.hero-panel {
  border-radius: 30px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(226, 232, 240, 0.16);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

.hero-panel h3 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.hero-tags,
.card-badges,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.card-badges span,
.detail-tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

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

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

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

.section,
.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 66px 24px;
}

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

.section-heading h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.section-heading p,
.page-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

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

.movie-card {
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

.movie-card:hover .movie-poster img,
.feature-card:hover img,
.compact-card:hover img {
  transform: scale(1.06);
}

.movie-score {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #fcd34d;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

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

.card-badges span {
  color: #1d4ed8;
  background: #dbeafe;
}

.movie-card h3,
.feature-card h3,
.compact-card h3 {
  margin: 12px 0 8px;
  color: #0f172a;
  line-height: 1.35;
}

.movie-card h3 {
  min-height: 2.7em;
  font-size: 18px;
}

.movie-card p,
.feature-card p,
.compact-card p {
  color: var(--muted);
  line-height: 1.7;
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.4em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
}

.feature-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  box-shadow: var(--shadow);
}

.feature-card:first-child {
  grid-row: span 2;
  min-height: 644px;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.08));
}

.feature-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px;
}

.feature-info h3,
.feature-info p {
  color: #fff;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  transition: 0.28s ease;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.35);
  filter: blur(12px);
}

.category-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
}

.category-card p,
.category-icon {
  position: relative;
  z-index: 1;
}

.category-card p {
  color: #cbd5e1;
  line-height: 1.65;
}

.category-icon {
  display: block;
  margin-bottom: 14px;
  font-size: 34px;
}

.dark-band {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  color: #fff;
}

.dark-band .section-heading h2,
.dark-band .section-heading p {
  color: #fff;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  width: 250px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

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

.compact-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: #111827;
}

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

.compact-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.compact-card p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.rank-num {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff !important;
  font-weight: 900;
}

.page-hero {
  background: linear-gradient(135deg, #0f172a, #1e293b 48%, #78350f);
  color: #fff;
}

.page-title {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.page-title h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
}

.page-title p {
  max-width: 790px;
  color: #cbd5e1;
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fcd34d;
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: #fff;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  background: #fff;
  color: var(--muted);
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 78px 136px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.ranking-item:hover {
  transform: translateY(-4px);
}

.ranking-index {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fef3c7;
  color: #b45309;
  font-size: 22px;
  font-weight: 900;
}

.ranking-poster {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

.ranking-copy h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.ranking-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.ranking-side {
  display: grid;
  gap: 10px;
  justify-items: end;
  color: #64748b;
  font-weight: 800;
}

.detail-shell {
  background: linear-gradient(
    180deg,
    #0f172a 0%,
    #0f172a 460px,
    #f8fafc 460px,
    #f8fafc 100%
  );
}

.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 74px;
}

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

.detail-copy {
  color: #fff;
}

.detail-copy h1 {
  color: #fff;
  font-size: clamp(34px, 4vw, 56px);
}

.detail-copy p {
  margin: 18px 0 0;
  color: #cbd5e1;
  line-height: 1.85;
  font-size: 18px;
}

.player-card {
  margin-top: 30px;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.12));
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.player-stage.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.player-button {
  pointer-events: auto;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--amber-2);
  font-size: 38px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: 0.25s ease;
}

.player-button:hover {
  transform: scale(1.08);
}

.detail-side {
  margin-top: 108px;
  border-radius: 28px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.meta-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta-row span:first-child {
  color: var(--muted);
}

.meta-row span:last-child {
  font-weight: 900;
  text-align: right;
}

.detail-panel {
  margin-top: 32px;
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.detail-panel p {
  color: #334155;
  line-height: 1.95;
  font-size: 17px;
}

.detail-tags span {
  background: #f1f5f9;
  color: #334155;
}

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

.site-footer {
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #cbd5e1;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 44px;
}

.footer-brand p {
  max-width: 430px;
  margin: 18px 0 0;
  line-height: 1.8;
  color: #94a3b8;
}

.footer-column h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  transition: 0.2s ease;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

  .hero-panel {
    max-width: 440px;
  }

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

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

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

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 68px;
    padding: 0 16px;
  }

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

  .logo-text small {
    display: none;
  }

  .hero-carousel,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 58px 18px 86px;
    gap: 26px;
  }

  .hero-panel {
    display: none;
  }

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

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

  .page-title {
    padding: 54px 16px;
  }

  .grid-5,
  .grid-4,
  .grid-3,
  .category-cards,
  .related-grid,
  .compact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .feature-card:first-child {
    min-height: 380px;
  }

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

  .ranking-item {
    grid-template-columns: 48px 92px minmax(0, 1fr);
  }

  .ranking-side {
    grid-column: 3;
    justify-items: start;
  }

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

@media (max-width: 520px) {
  .grid-5,
  .grid-4,
  .grid-3,
  .category-cards,
  .related-grid,
  .compact-list {
    grid-template-columns: 1fr;
  }

  .compact-card,
  .ranking-item {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .ranking-index {
    grid-column: 1 / -1;
  }

  .ranking-side {
    grid-column: 2;
  }

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }
}
