:root {
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --yellow: #facc15;
  --text: #111827;
  --muted: #6b7280;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 20px 45px rgba(124, 58, 237, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 46%, #eff6ff 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ec4899, #a855f7, #3b82f6);
  box-shadow: 0 12px 35px rgba(147, 51, 234, 0.32);
}

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

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

.logo-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #7e22ce;
  background: linear-gradient(135deg, #fde68a, #fbcfe8);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.14);
  animation: pulseMark 2.4s ease-in-out infinite;
}

.logo-text {
  font-size: 24px;
  background: linear-gradient(90deg, #fef3c7, #fbcfe8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fef08a;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(330px, 30vw);
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.header-search input,
.mobile-panel input,
.search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.header-search input::placeholder,
.mobile-panel input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-panel button,
.search-box button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 15px;
  color: #581c87;
  font-weight: 800;
  background: #fde047;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 16px;
  color: #ffffff;
  background: rgba(126, 34, 206, 0.96);
  backdrop-filter: blur(18px);
}

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

.mobile-panel nav,
.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-banner {
  position: relative;
  min-height: 640px;
  margin-bottom: 56px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899 0%, #a855f7 50%, #3b82f6 100%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(253, 224, 71, 0.26), transparent 28%),
    radial-gradient(circle at 82% 26%, rgba(125, 211, 252, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(236, 72, 153, 0.92), rgba(147, 51, 234, 0.9), rgba(37, 99, 235, 0.92));
}

.stars-background {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(#ffffff 1px, transparent 1px),
    radial-gradient(#ffffff 1px, transparent 1px);
  background-position: 0 0, 36px 44px;
  background-size: 92px 92px;
  animation: starMove 22s linear infinite;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 640px;
  align-items: center;
  padding-top: 76px;
}

.hero-slide {
  display: none;
  width: 100%;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.65s ease both;
}

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

.hero-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fef9c3;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 32px rgba(76, 29, 149, 0.28);
}

.hero-copy p,
.page-hero p,
.detail-line {
  max-width: 700px;
  margin: 20px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 12px;
  color: #7e22ce;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.84);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 25px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #581c87;
  background: #fde047;
  box-shadow: 0 15px 30px rgba(250, 204, 21, 0.26);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 420px;
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(88, 28, 135, 0.42);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 10px 14px;
  color: #581c87;
  font-weight: 900;
  background: rgba(254, 240, 138, 0.92);
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 58px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

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

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

.page-main {
  padding-top: 96px;
}

.content-section {
  margin-bottom: 58px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading span {
  font-size: 32px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.more-link {
  color: #db2777;
  font-weight: 900;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
  gap: 22px;
}

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

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

.horizontal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(88, 28, 135, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-card.large {
  grid-row: span 2;
}

.movie-card.small .movie-card-body p,
.movie-grid.compact .movie-card-body p {
  display: none;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fce7f3, #ddd6fe, #dbeafe);
}

.movie-card.large .poster-frame {
  aspect-ratio: 16 / 9;
}

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

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

.poster-frame::after {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  content: "";
  background: linear-gradient(transparent, rgba(17, 24, 39, 0.72));
}

.poster-year,
.poster-score {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(236, 72, 153, 0.88);
  backdrop-filter: blur(8px);
}

.poster-year {
  left: 12px;
}

.poster-score {
  right: 12px;
  color: #581c87;
  background: rgba(254, 240, 138, 0.92);
}

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

.movie-card h3,
.rank-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p,
.rank-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #6d28d9;
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.rank-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(237, 233, 254, 0.8);
}

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

.category-card,
.category-overview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 55px rgba(88, 28, 135, 0.2);
}

.category-card span,
.category-overview-card span {
  font-size: 34px;
}

.category-card strong,
.category-overview-card h2 {
  margin: 0;
  font-size: 22px;
}

.category-card em,
.category-overview-card p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-style: normal;
}

.category-overview-card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.tone-pink { background: linear-gradient(135deg, #ec4899, #a855f7); }
.tone-red { background: linear-gradient(135deg, #ef4444, #ec4899); }
.tone-yellow { background: linear-gradient(135deg, #f59e0b, #facc15); }
.tone-orange { background: linear-gradient(135deg, #f97316, #ef4444); }
.tone-rose { background: linear-gradient(135deg, #fb7185, #ec4899); }
.tone-purple { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.tone-cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.tone-green { background: linear-gradient(135deg, #10b981, #22c55e); }
.tone-blue { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.tone-indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

.tinted {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
  padding: 30px;
  border-radius: 34px;
}

.tinted .section-heading,
.tinted .more-link {
  color: #ffffff;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 42px;
  border-radius: 36px;
  padding: 58px;
  color: #ffffff;
  background: linear-gradient(100deg, #ec4899, #8b5cf6, #3b82f6);
  box-shadow: var(--shadow);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.mini-hero h1,
.category-hero h1,
.rank-hero h1 {
  font-size: clamp(42px, 5vw, 62px);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(150px, 0.22fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(88, 28, 135, 0.1);
}

.filter-panel input,
.filter-panel select,
.search-box input {
  height: 46px;
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--text);
  background: #ffffff;
}

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

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

.rank-row a {
  display: grid;
  grid-template-columns: auto 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(88, 28, 135, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #581c87;
  font-weight: 900;
  background: linear-gradient(135deg, #fef08a, #fbcfe8);
}

.rank-row img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #fce7f3, #ddd6fe, #dbeafe);
}

.rank-row strong {
  border-radius: 999px;
  padding: 8px 12px;
  color: #581c87;
  background: #fef08a;
}

.search-box {
  display: flex;
  max-width: 720px;
  gap: 10px;
  margin-top: 28px;
}

.search-box input {
  flex: 1;
}

.search-results.is-filled + .search-default {
  display: none;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  margin-top: -96px;
  padding-top: 150px;
  padding-bottom: 70px;
  color: #ffffff;
  background: linear-gradient(90deg, #111827, #581c87);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.25);
  transform: scale(1.04);
}

.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(88, 28, 135, 0.72), rgba(37, 99, 235, 0.52));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  background: linear-gradient(135deg, #fce7f3, #ddd6fe, #dbeafe);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.detail-tags span {
  color: #581c87;
}

.player-section {
  margin-top: 42px;
  margin-bottom: 40px;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 34px);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.24);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.72));
}

.player-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  color: #581c87;
  font-size: 34px;
  background: #fde047;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.14);
}

.player-overlay strong {
  font-size: 20px;
}

.player-box.is-playing .player-overlay {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-bottom: 54px;
}

.detail-content article,
.detail-content aside {
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(88, 28, 135, 0.09);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-content p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 17px;
}

.detail-content dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.detail-content dt {
  color: var(--muted);
}

.detail-content dd {
  margin: 0;
  font-weight: 800;
}

.index-list {
  display: grid;
  gap: 24px;
}

.index-group {
  border-radius: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(88, 28, 135, 0.09);
}

.index-group h2 {
  margin: 0 0 16px;
}

.index-group ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-group li {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.index-group a {
  overflow: hidden;
  color: #6d28d9;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-group span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 70px;
  color: #ffffff;
  background: linear-gradient(90deg, #581c87, #831843, #1e3a8a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 30px;
  padding: 46px 0;
}

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

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.82);
}

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

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

.footer-bottom {
  padding: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: var(--shadow);
}

.back-top.is-visible {
  display: block;
}

[data-card].is-hidden {
  display: none;
}

.empty-results {
  border-radius: 24px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
}

@keyframes pulseMark {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes starMove {
  from { background-position: 0 0, 36px 44px; }
  to { background-position: 92px 92px, 128px 136px; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

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

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

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

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

  .nav-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-banner,
  .hero-wrap {
    min-height: auto;
  }

  .hero-wrap {
    padding-top: 108px;
    padding-bottom: 94px;
  }

  .hero-poster {
    min-height: auto;
  }

  .hero-poster img {
    height: 320px;
  }

  .featured-layout,
  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .category-overview-grid,
  .rank-list.slim {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-row a {
    grid-template-columns: auto 88px minmax(0, 1fr);
  }

  .rank-row strong {
    grid-column: 3;
    justify-self: start;
  }

  .rank-row img {
    width: 88px;
    height: 62px;
  }

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

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

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

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

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

  .page-hero {
    padding: 34px 22px;
    border-radius: 28px;
  }

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

  .horizontal-strip {
    grid-auto-columns: 82%;
  }

  .rank-row a {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .rank-row img {
    display: none;
  }

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

  .rank-row strong {
    grid-column: 2;
  }

  .detail-hero {
    padding-top: 128px;
  }

  .detail-content article,
  .detail-content aside {
    padding: 22px;
  }

  .footer-grid,
  .index-group ul {
    grid-template-columns: 1fr;
  }
}
