:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #ea580c;
  --amber: #f59e0b;
  --green: #14532d;
  --green-soft: #dcfce7;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "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;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
  background: #fee2e2;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #374151;
}

.hero-shell {
  position: relative;
  min-height: 100vh;
  padding: 118px 0 72px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(248, 113, 113, 0.28), transparent 34%),
    radial-gradient(circle at 90% 70%, rgba(251, 146, 60, 0.24), transparent 36%),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 52%, #ffffff 100%);
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.48;
  pointer-events: none;
}

.glow-left {
  width: 310px;
  height: 310px;
  top: 12%;
  left: 4%;
  background: rgba(248, 113, 113, 0.55);
}

.glow-right {
  width: 420px;
  height: 420px;
  right: -100px;
  bottom: 5%;
  background: rgba(251, 146, 60, 0.45);
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 52px;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-copy {
  padding: 36px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow,
.section-head span,
.category-block-head span,
.page-hero span,
.rank-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 0;
  max-width: 700px;
  color: #374151;
  font-size: clamp(17px, 2vw, 23px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 850;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.25);
}

.btn.ghost {
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(220, 38, 38, 0.35);
}

.btn.outline {
  color: var(--red-dark);
  background: #ffffff;
  border-color: rgba(220, 38, 38, 0.34);
}

.hero-poster {
  position: relative;
  min-height: 540px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
  box-shadow: 0 30px 70px rgba(127, 29, 29, 0.24);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.64));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: #ffffff;
  font-weight: 850;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-dots {
  position: absolute;
  left: 36px;
  bottom: 6px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.25);
  cursor: pointer;
}

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

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

.section.surface-soft {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head h2,
.page-hero h1,
.rank-hero h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.rank-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  border: 1px solid rgba(229, 231, 235, 0.78);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.14);
  border-color: rgba(220, 38, 38, 0.26);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
  font-size: 12px;
  font-weight: 850;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.86);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
}

.movie-info strong {
  min-height: 2.7em;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover .movie-info strong {
  color: var(--red);
}

.movie-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.movie-info span {
  color: #4b5563;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact .movie-info {
  padding: 13px;
}

.movie-card.compact .movie-info strong {
  font-size: 15px;
}

.center-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.gradient-band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.section-head.light h2,
.section-head.light p,
.section-head.light span {
  color: #ffffff;
}

.category-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-tile {
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.22);
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  margin: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.category-tile em {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-style: normal;
}

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

.page-hero,
.rank-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 56px;
}

.page-hero.small,
.category-hero {
  text-align: center;
}

.category-hero {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 42px 42px;
  background:
    radial-gradient(circle at 25% 20%, rgba(248, 113, 113, 0.24), transparent 32%),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

.category-index {
  display: grid;
  gap: 42px;
}

.category-block {
  padding: 28px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

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

.category-block-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 900;
}

.category-block-head p {
  margin: 0;
  color: var(--muted);
}

.filter-panel {
  margin-bottom: 32px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.82);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  background: #f9fafb;
  padding: 0 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rank-hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 48px;
  min-height: 520px;
}

.rank-feature {
  padding: 16px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.rank-feature img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.rank-feature strong,
.rank-feature em {
  display: block;
  margin-top: 12px;
}

.rank-feature strong {
  font-size: 22px;
  font-weight: 900;
}

.rank-feature em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 70px 86px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(229, 231, 235, 0.78);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
}

.rank-no {
  color: var(--red);
  font-size: 28px;
  font-weight: 950;
  text-align: center;
}

.rank-card img {
  width: 86px;
  height: 116px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.rank-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-body strong {
  font-size: 18px;
  font-weight: 900;
}

.rank-body em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-body span {
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 44px;
  padding: 28px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 0%, rgba(248, 113, 113, 0.2), transparent 36%),
    linear-gradient(135deg, #fff7ed, #ffffff 72%);
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
  box-shadow: 0 22px 52px rgba(127, 29, 29, 0.18);
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-copy p {
  margin: 0;
  color: #374151;
  font-size: 18px;
}

.detail-chips,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-chips span,
.tag-list em {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--red-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.tag-list em {
  background: #fff7ed;
  color: #9a3412;
}

.player-section,
.detail-content,
.related-section {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.video-shell {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #0f172a;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.5));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 36px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

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

.detail-content {
  padding: 44px 0 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-content article {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(229, 231, 235, 0.82);
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.detail-content p {
  margin: 0;
  color: #374151;
}

.site-footer {
  margin-top: 60px;
  color: #ffffff;
  background: linear-gradient(135deg, #064e3b, #14532d 55%, #052e16);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 42px;
}

.footer-logo .brand-text strong {
  color: #f87171;
  background: none;
}

.footer-logo .brand-text small,
.footer-brand p,
.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand p {
  max-width: 420px;
}

.site-footer h3 {
  margin: 0 0 15px;
  color: #fb7185;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

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

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

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

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

  .hero-slider {
    min-height: 980px;
  }

  .hero-poster {
    min-height: 440px;
    transform: none;
  }

  .hero-poster img {
    min-height: 440px;
  }

  .rank-feature {
    max-width: 360px;
    transform: none;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 68px;
  }

  .brand-text small {
    display: none;
  }

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

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .hero-shell {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-slider {
    min-height: 850px;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 360px;
  }

  .hero-dots {
    left: 24px;
  }

  .section,
  .section.surface-soft,
  .gradient-band {
    padding-top: 56px;
    padding-bottom: 56px;
  }

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

  .filter-panel,
  .filter-row,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-hero {
    padding: 18px;
    gap: 24px;
  }

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

  .rank-card {
    grid-template-columns: 52px 74px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-card img {
    width: 74px;
    height: 98px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid,
  .all-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 1fr;
  }

  .rank-no {
    text-align: left;
  }
}
