:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #d1fae5;
  --blue-soft: #dbeafe;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, 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 {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--emerald);
  background: var(--emerald-soft);
  border-radius: 12px;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand-mark svg path + path {
  fill: white;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--emerald);
  background: #ecfdf5;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: #f3f4f6;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

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

.page-main {
  padding: 42px 0 70px;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: white;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.2)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 28%, rgba(16, 185, 129, 0.35), transparent 32%), linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  padding: 112px 0 132px;
}

.eyebrow,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow span:first-child,
.eyebrow-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: white;
  background: var(--emerald);
  font-size: 14px;
  font-weight: 750;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-tags,
.tag-cloud,
.side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-cloud span,
.side-tags a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 14px;
  font-weight: 650;
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 780;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: white;
  background: var(--emerald);
  box-shadow: 0 16px 32px rgba(5, 150, 105, 0.32);
}

.primary-button:hover {
  background: var(--emerald-dark);
  transform: translateY(-2px);
}

.ghost-button {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.ghost-button.light {
  color: white;
}

.primary-button.full {
  width: 100%;
}

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

.hero-controls > button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-quick-links {
  position: absolute;
  right: max(16px, calc((100% - 1180px) / 2));
  bottom: 34px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 420px;
  gap: 10px;
}

.hero-quick-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.section-block {
  padding: 74px 0 0;
}

.no-top-space {
  padding-top: 28px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading h2::after {
  content: "";
  display: inline-block;
  width: 86px;
  height: 4px;
  margin-left: 18px;
  vertical-align: middle;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), rgba(5, 150, 105, 0));
}

.section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald);
  font-weight: 760;
}

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

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

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

.movie-card {
  display: block;
  min-width: 0;
}

.movie-card article {
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfdf5, #dbeafe);
}

.movie-card.wide .movie-cover {
  aspect-ratio: 16 / 10;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.movie-type,
.movie-year {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(5, 150, 105, 0.9);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-type {
  left: 12px;
}

.movie-year {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--emerald);
}

.movie-info p {
  min-height: 46px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-mini-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 13px;
}

.glow-block {
  position: relative;
  margin-top: 70px;
  padding: 52px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

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

.category-tile,
.category-overview-card {
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile {
  padding: 16px;
}

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

.tile-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.tile-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-num {
  color: var(--emerald);
  font-size: 22px;
  font-weight: 900;
}

.rank-row img {
  width: 66px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-meta {
  color: var(--muted);
  font-size: 14px;
}

.side-panel,
.text-card,
.player-card,
.poster-panel,
.tag-panel {
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.side-panel {
  position: sticky;
  top: 94px;
  padding: 28px;
}

.side-panel h2,
.text-card h2,
.tag-panel h2,
.poster-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.side-panel p {
  color: var(--muted);
}

.side-tags {
  margin-top: 18px;
}

.side-tags a {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 260px;
  padding: 44px;
  border-radius: 32px;
  color: white;
  background: linear-gradient(135deg, #064e3b, #0f766e 44%, #1d4ed8);
  box-shadow: var(--shadow);
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  top: -130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero > * {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-overview-head a {
  color: var(--emerald);
  font-weight: 800;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.compact-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

.compact-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.compact-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card:hover img {
  transform: scale(1.06);
  opacity: 0.92;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px;
  gap: 14px;
  margin: 28px 0 0;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.empty-state {
  margin: 28px 0 0;
  padding: 24px;
  border-radius: 20px;
  color: var(--muted);
  background: white;
  text-align: center;
}

.ranking-card {
  display: grid;
  grid-template-columns: 78px 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.ranking-number {
  color: var(--emerald);
  font-size: 30px;
  font-weight: 950;
}

.ranking-card img {
  width: 112px;
  height: 148px;
  object-fit: cover;
  border-radius: 18px;
  background: #e5e7eb;
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.ranking-card p {
  margin: 0;
  color: var(--muted);
}

.detail-main {
  background: #f8fafc;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  color: white;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.24)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.34), transparent 32%), linear-gradient(0deg, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0) 32%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 46px 0 120px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

.detail-title-block {
  max-width: 780px;
  margin-top: 76px;
}

.detail-title-block h1 {
  margin: 16px 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-title-block p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: -84px;
  align-items: start;
  position: relative;
  z-index: 3;
}

.detail-primary {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #020617;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.44));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 20px 42px rgba(5, 150, 105, 0.38);
  font-size: 26px;
}

.player-cover span:last-child {
  font-size: 18px;
  font-weight: 850;
}

.text-card {
  padding: 28px;
}

.text-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.detail-aside {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 94px;
}

.poster-panel {
  overflow: hidden;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e5e7eb;
}

.poster-panel div,
.tag-panel {
  padding: 22px;
}

.poster-panel p {
  margin: 0;
  color: var(--muted);
}

.tag-cloud span {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

.related-section {
  padding-bottom: 78px;
}

.site-footer {
  margin-top: auto;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 42px;
}

.footer-logo {
  color: white;
}

.footer-brand p {
  max-width: 420px;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 17px;
}

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

.site-footer a {
  color: #9ca3af;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

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

  .split-section,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .detail-aside {
    position: static;
  }

  .hero-quick-links {
    display: none;
  }

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

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

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

  .brand {
    font-size: 20px;
  }

  .hero-slider,
  .hero-content {
    min-height: 620px;
  }

  .hero-copy {
    padding: 96px 0 132px;
  }

  .hero-copy h1,
  .detail-title-block h1 {
    letter-spacing: -0.04em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-controls {
    bottom: 24px;
  }

  .content-wrap,
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .section-block {
    padding-top: 54px;
  }

  .glow-block,
  .page-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .poster-grid,
  .wide-grid,
  .category-grid,
  .category-overview-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-info {
    padding: 13px;
  }

  .movie-info h3 {
    font-size: 16px;
  }

  .movie-info p {
    min-height: 42px;
    font-size: 13px;
  }

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

  .rank-meta {
    display: none;
  }

  .ranking-card {
    grid-template-columns: 54px 88px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-card img {
    width: 88px;
    height: 116px;
  }

  .ranking-number {
    font-size: 24px;
  }

  .ranking-card h2 {
    font-size: 18px;
  }

  .ranking-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
  }

  .detail-hero-inner {
    padding-bottom: 96px;
  }

  .detail-title-block {
    margin-top: 50px;
  }

  .detail-title-block p {
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .poster-grid,
  .wide-grid,
  .category-grid,
  .category-overview-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: auto;
    display: block;
  }

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

  .section-heading h2::after {
    display: block;
    margin: 12px 0 0;
  }

  .movie-cover {
    aspect-ratio: 16 / 11;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-controls > button {
    width: 40px;
    height: 40px;
  }
}
