:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: var(--slate-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

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

.brand:hover,
.nav-link:hover,
.mobile-nav-link:hover {
  color: #fed7aa;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.34);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 650;
}

.nav-link,
.mobile-nav-link {
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link.is-active {
  color: #fb923c;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 278px;
}

.header-search input,
.mobile-search input,
.filter-field input,
.filter-field select {
  width: 100%;
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  color: var(--white);
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(255, 255, 255, 0.08);
  padding: 10px 42px 10px 14px;
}

.header-search input::placeholder {
  color: #cbd5e1;
}

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  color: #cbd5e1;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
}

.header-search button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-button {
  display: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mobile-nav-inner {
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 10px;
}

.mobile-nav-link.is-active {
  background: rgba(249, 115, 22, 0.18);
  color: #fed7aa;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  padding: 10px 12px;
}

.mobile-search button {
  color: var(--white);
  background: var(--orange-600);
  border-radius: 10px;
  padding: 0 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.22), transparent 32%), linear-gradient(135deg, var(--slate-800), var(--slate-700), var(--slate-950));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78));
  pointer-events: none;
}

.hero-slider {
  position: relative;
  z-index: 1;
  min-height: 620px;
}

.hero-slide {
  display: none;
  min-height: 620px;
  padding: 78px 0 86px;
}

.hero-slide.is-active {
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 64px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fed7aa;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.hero h1 span,
.hero h2 span {
  display: block;
  color: #fb923c;
}

.hero-text {
  max-width: 680px;
  margin: 0 0 28px;
  color: #d1d5db;
  font-size: 18px;
}

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

.btn-primary,
.btn-secondary,
.btn-light,
.rank-action,
.category-card .card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--orange-600);
  padding: 13px 24px;
  box-shadow: 0 16px 36px rgba(234, 88, 12, 0.26);
}

.btn-primary:hover,
.rank-action:hover,
.mobile-search button:hover {
  background: var(--orange-700);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
  padding: 13px 24px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-light {
  color: var(--slate-800);
  background: var(--white);
  padding: 11px 18px;
  border: 1px solid #e2e8f0;
}

.btn-light:hover {
  color: var(--orange-700);
  box-shadow: var(--shadow-soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 520px;
}

.hero-stat {
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.hero-stat strong {
  display: block;
  color: #fb923c;
  font-size: 26px;
  line-height: 1.1;
}

.hero-stat span {
  color: #cbd5e1;
  font-size: 13px;
}

.hero-poster-wrap {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 4px solid rgba(148, 163, 184, 0.52);
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.62));
}

.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  color: var(--white);
  background: rgba(234, 88, 12, 0.92);
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(234, 88, 12, 0.34);
  transform: translate(-50%, -50%);
}

.hero-floating-card {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -32px;
  z-index: 3;
  padding: 18px;
  color: var(--slate-800);
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.hero-floating-card strong {
  display: block;
  overflow: hidden;
  margin-bottom: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-floating-card span {
  color: var(--slate-600);
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 99px;
  cursor: pointer;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: rgba(15, 23, 42, 0.52);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(234, 88, 12, 0.92);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: var(--white);
}

.section-soft {
  background: linear-gradient(135deg, var(--slate-50), #e5e7eb);
}

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

.section-title {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--slate-600);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-600);
  font-weight: 750;
}

.more-link:hover {
  color: var(--orange-700);
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: #fed7aa;
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--slate-800);
}

.movie-cover img,
.rank-thumb img,
.related-thumb img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.movie-card:hover img,
.rank-row:hover img,
.related-item:hover img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(2, 6, 23, 0.72));
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--white);
  background: rgba(234, 88, 12, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.cover-meta,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.cover-meta {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: var(--orange-600);
}

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

.movie-card h2 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 0 0 9px;
  color: var(--slate-800);
  font-size: 17px;
  line-height: 1.42;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card h2 a:hover,
.rank-info h2 a:hover,
.related-title:hover {
  color: var(--orange-600);
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.movie-tags span,
.detail-tags span {
  color: var(--slate-700);
  background: var(--slate-100);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.movie-meta,
.rank-meta,
.related-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--slate-500);
  font-size: 13px;
}

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

.category-card {
  display: flex;
  min-height: 184px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2 {
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: 20px;
  font-weight: 850;
}

.category-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
}

.category-card .card-arrow {
  width: max-content;
  margin-top: 18px;
  color: var(--orange-600);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 68px 198px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.rank-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  border-radius: 16px;
  font-size: 22px;
  font-weight: 850;
}

.rank-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--slate-800);
  border-radius: 14px;
}

.rank-info h2 {
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: 19px;
  font-weight: 850;
}

.rank-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 9px;
  color: var(--slate-600);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-action {
  color: var(--white);
  background: var(--orange-600);
  padding: 10px 16px;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700));
  padding: 66px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.035em;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.65fr));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 750;
}

.filter-field input,
.filter-field select {
  height: 46px;
  padding: 0 13px;
}

.filter-field input:focus,
.filter-field select:focus,
.header-search input:focus,
.mobile-search input:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.empty-state {
  display: none;
  padding: 44px;
  text-align: center;
  color: var(--slate-500);
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 20px;
}

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

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

.player-card,
.detail-card,
.related-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.player-card {
  overflow: hidden;
  margin-bottom: 22px;
  background: #000;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.68));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-overlay-inner {
  display: grid;
  gap: 14px;
  justify-items: center;
  color: var(--white);
  text-align: center;
}

.player-button {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  color: var(--white);
  background: var(--orange-600);
  border-radius: 999px;
  box-shadow: 0 20px 52px rgba(234, 88, 12, 0.38);
  cursor: pointer;
}

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

.detail-card {
  padding: 26px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--orange-600);
}

.detail-title {
  margin: 0 0 14px;
  color: var(--slate-800);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.detail-meta {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e5e7eb;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 24px;
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2 {
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: 22px;
  font-weight: 850;
}

.detail-section p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.85;
  white-space: pre-line;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-card {
  position: sticky;
  top: 84px;
  padding: 20px;
}

.related-card h2 {
  margin: 0 0 16px;
  color: var(--slate-800);
  font-size: 21px;
  font-weight: 850;
}

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

.related-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background-color 0.2s ease;
}

.related-item:hover {
  background: var(--slate-50);
}

.related-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--slate-800);
  border-radius: 12px;
}

.related-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-800);
  font-weight: 800;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-meta {
  margin-top: 6px;
  font-size: 12px;
}

.cta-band {
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 12% 10%, rgba(251, 146, 60, 0.32), transparent 30%), linear-gradient(135deg, var(--slate-800), var(--slate-950));
  border-radius: 26px;
  padding: 36px;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 850;
}

.cta-band p {
  max-width: 760px;
  margin: 0 0 20px;
  color: #d1d5db;
}

.site-footer {
  color: #cbd5e1;
  background: var(--slate-900);
  padding: 56px 0 24px;
}

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

.footer-grid p {
  max-width: 360px;
  color: #94a3b8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 17px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #94a3b8;
}

.footer-grid a:hover {
  color: #fb923c;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

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

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

  .related-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-slider,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 52px 0 78px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

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

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

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

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

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

  .rank-action {
    grid-column: 2 / -1;
    width: max-content;
  }

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

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

  .brand-text {
    font-size: 18px;
  }

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

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

  .btn-primary,
  .btn-secondary,
  .btn-light {
    width: 100%;
  }

  .hero-floating-card {
    position: static;
    margin-top: 14px;
  }

  .movie-grid,
  .movie-grid.three,
  .category-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .rank-thumb {
    display: none;
  }

  .rank-action {
    grid-column: 2;
  }

  .detail-card,
  .related-card {
    padding: 18px;
  }

  .related-item {
    grid-template-columns: 100px minmax(0, 1fr);
  }

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