:root {
  --rose-900: #881337;
  --rose-800: #9f1239;
  --rose-700: #be123c;
  --rose-600: #e11d48;
  --rose-100: #ffe4e6;
  --amber-900: #78350f;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --pink-100: #fce7f3;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-card: 0 20px 40px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 24px rgba(17, 24, 39, 0.08);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--gray-900);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), #fb923c);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.32);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 8px 0;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--rose-600);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  background: var(--gray-700);
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  height: 70vh;
  overflow: hidden;
  background: linear-gradient(90deg, var(--rose-900), var(--amber-900));
}

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

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

.hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(251, 146, 60, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  top: 50%;
  transform: translateY(-50%);
  max-width: 680px;
  color: var(--white);
  padding-right: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-600);
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.34);
}

.hero-content h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 640px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.filter-chips,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--rose-600);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

.button-primary:hover {
  background: var(--rose-700);
}

.button-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 70px;
  z-index: 4;
  width: min(640px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--gray-900);
  background: var(--white);
}

.hero-search input {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px 0 0 12px;
}

.hero-search button {
  border: 0;
  padding: 0 22px;
  border-radius: 0 12px 12px 0;
  color: var(--white);
  background: var(--rose-600);
  font-weight: 800;
  cursor: pointer;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 20px;
}

.warm-section,
.rose-section,
.light-section {
  max-width: none;
  padding-left: max(20px, calc((100vw - 1280px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1280px) / 2 + 20px));
}

.warm-section {
  background: linear-gradient(90deg, var(--amber-50), var(--rose-100));
}

.rose-section {
  background: linear-gradient(135deg, var(--rose-100), var(--amber-50), var(--pink-100));
}

.light-section {
  background: var(--gray-50);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), #f59e0b);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.22);
}

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

.section-heading p {
  margin: 4px 0 0;
  color: var(--gray-600);
}

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

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

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

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

.movie-scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 290px;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.movie-scroll-row::-webkit-scrollbar {
  display: none;
}

.movie-card {
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.9);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 28%, rgba(251, 146, 60, 0.34), transparent 28%),
    linear-gradient(135deg, var(--rose-900), var(--amber-900));
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.04);
}

.poster-frame img.image-missing {
  opacity: 0;
}

.poster-year,
.poster-type {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-year {
  left: 12px;
  background: rgba(225, 29, 72, 0.9);
}

.poster-type {
  right: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.movie-card-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.movie-card-body h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.25;
}

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

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--rose-100);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

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

.category-card {
  min-height: 160px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--white), var(--amber-50));
  border: 1px solid rgba(225, 29, 72, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
  display: block;
  color: var(--gray-900);
  font-size: 20px;
  margin-bottom: 6px;
}

.category-card span {
  color: var(--rose-600);
  font-weight: 800;
}

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

.category-preview {
  margin-top: 42px;
}

.category-preview-head,
.rank-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.category-preview-head h3,
.rank-box-head h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: 24px;
}

.category-preview-head p {
  margin: 4px 0 0;
  color: var(--gray-600);
}

.category-preview-head a,
.rank-box-head a,
.side-card a {
  color: var(--rose-600);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 30px;
}

.hot-rank-box,
.side-card,
.category-overview-block {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: var(--shadow-soft);
}

.hot-rank-box {
  padding: 22px;
  align-self: start;
}

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

.rank-row {
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.9);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 10px 14px;
}

.rank-number {
  color: var(--rose-600);
  font-size: 22px;
  font-weight: 900;
}

.rank-link img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose-900), var(--amber-900));
}

.rank-main {
  min-width: 0;
}

.rank-main strong,
.rank-main em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.rank-main em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.rank-score {
  color: var(--rose-700);
  background: var(--rose-100);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: 72px max(20px, calc((100vw - 1280px) / 2 + 20px));
  color: var(--white);
  background:
    radial-gradient(circle at 72% 38%, rgba(251, 146, 60, 0.34), transparent 28%),
    linear-gradient(135deg, var(--rose-900), var(--amber-900));
}

.page-hero h1 {
  max-width: 840px;
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.filter-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.92);
}

.filter-panel input {
  min-width: min(100%, 360px);
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.filter-chips button {
  border: 0;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--rose-100);
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  display: none;
  margin: 30px 0 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--gray-600);
  background: var(--gray-50);
}

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

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

.category-overview-block {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

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

.category-overview-info p {
  color: var(--gray-600);
}

.category-overview-info span {
  display: block;
  margin-bottom: 18px;
  color: var(--rose-600);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: blur(3px);
  transform: scale(1.04);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.88), rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.34)),
    linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.9));
}

.detail-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 20px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 38px;
}

.breadcrumb a:hover {
  color: var(--white);
}

.detail-main {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 880px;
  margin: 26px 0;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.detail-meta dd {
  margin: 3px 0 0;
  font-weight: 850;
}

.detail-tags {
  margin-bottom: 26px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--gray-950);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(225, 29, 72, 0.35), rgba(3, 7, 18, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rose-600);
  box-shadow: 0 20px 50px rgba(225, 29, 72, 0.42);
  font-size: 34px;
}

.player-start.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.text-block,
.side-card {
  margin-top: 26px;
  padding: 26px;
}

.text-block {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.92);
}

.text-block h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: 24px;
}

.text-block p,
.side-card p {
  margin: 0 0 12px;
  color: var(--gray-700);
}

.detail-side {
  position: sticky;
  top: 92px;
}

.sitemap-main,
.sitemap-movies {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 10px;
}

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

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

.sitemap-section a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.sitemap-section a:hover {
  color: var(--rose-600);
  border-color: var(--rose-100);
  background: #fff7f7;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--gray-900);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 20px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 22px;
}

.footer-inner p {
  max-width: 650px;
  margin: 0;
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 28px;
  color: rgba(255, 255, 255, 0.5);
}

.is-hidden-by-filter {
  display: none !important;
}

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

  .split-section,
  .detail-layout,
  .category-overview-block {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
  }

  .mobile-menu-button {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-carousel {
    height: 760px;
  }

  .hero-content {
    top: 43%;
  }

  .hero-search {
    bottom: 82px;
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
    border-radius: 12px;
  }

  .hero-arrow {
    display: none;
  }

  .content-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .movie-grid-three,
  .movie-grid-four,
  .movie-grid-six,
  .category-card-grid,
  .sitemap-main,
  .sitemap-movies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-main {
    grid-template-columns: 1fr;
  }

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

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

  .rank-link {
    grid-template-columns: 38px 52px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    width: fit-content;
  }

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

@media (max-width: 520px) {
  .movie-grid-three,
  .movie-grid-four,
  .movie-grid-six,
  .category-card-grid,
  .sitemap-main,
  .sitemap-movies {
    grid-template-columns: 1fr;
  }

  .movie-scroll-row {
    grid-auto-columns: 82%;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }
}
