:root {
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f1f5f9;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 48%, #0891b2 100%);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.25);
}

.nav-shell {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #2563eb;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 2px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.top-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.top-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input {
  width: 230px;
  padding: 10px 44px 10px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

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

.top-search input:focus,
.mobile-search input:focus {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.top-search button {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #fff;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-panel {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

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

.mobile-search {
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  padding: 10px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-search button,
.small-button,
.primary-button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.mobile-search button {
  padding: 10px 18px;
}

.mobile-links,
.mobile-sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-sub-link,
.mobile-panel .nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-wrap {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #172554, #1e40af 48%, #164e63);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.36), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.6), rgba(15, 23, 42, 0.18));
}

.hero-shell {
  position: relative;
  max-width: 1180px;
  min-height: 660px;
  margin: 0 auto;
  padding: 76px 20px 36px;
}

.hero-slide {
  display: none;
  min-height: 495px;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 54px;
  align-items: center;
}

.hero-slide.active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.42)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #38bdf8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #0f172a;
  background: #e0f2fe;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags .tag-pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

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

.primary-button:hover,
.ghost-button:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
  transform: rotate(1.2deg);
}

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

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

.hero-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-dots,
.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-dot {
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.active {
  background: #ffffff;
}

.hero-quick a {
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.12);
}

.section-block {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  max-width: none;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.soft-section > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-head h2,
.center-title h2,
.inner-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head > a {
  color: #2563eb;
  font-weight: 800;
}

.inverted h2,
.inverted > a {
  color: #fff;
}

.center-title {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}

.center-title p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.movie-grid,
.featured-grid,
.compact-grid,
.category-grid,
.rank-preview-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.06);
  opacity: 0.88;
}

.card-region,
.card-year {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}

.card-region {
  top: 10px;
  left: 10px;
  background: rgba(37, 99, 235, 0.86);
}

.card-year {
  right: 10px;
  bottom: 10px;
}

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 44px;
  opacity: 0;
  background: rgba(2, 6, 23, 0.34);
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 850;
}

.card-body h3 a:hover {
  color: var(--blue);
}

.card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-meta,
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span,
.detail-badges span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

.category-card {
  min-height: 150px;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.28);
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.category-card strong {
  display: inline-block;
  margin-top: 20px;
}

.category-rose { background: linear-gradient(135deg, #e11d48, #fb7185); }
.category-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.category-orange { background: linear-gradient(135deg, #f97316, #f59e0b); }
.category-cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.category-indigo { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.category-gray { background: linear-gradient(135deg, #111827, #475569); }
.category-amber { background: linear-gradient(135deg, #d97706, #facc15); }
.category-green { background: linear-gradient(135deg, #059669, #34d399); }
.category-teal { background: linear-gradient(135deg, #0f766e, #2dd4bf); }

.rank-preview {
  max-width: none;
  color: #fff;
  background: linear-gradient(120deg, #111827, #1e3a8a 52%, #164e63);
}

.rank-preview > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

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

.rank-card {
  position: relative;
  display: grid;
  min-height: 220px;
  overflow: hidden;
  border-radius: 20px;
  background: #0f172a;
}

.rank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.rank-card:hover img {
  transform: scale(1.08);
  opacity: 0.82;
}

.rank-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.rank-card strong,
.rank-card em {
  position: absolute;
  left: 14px;
  right: 14px;
  z-index: 2;
}

.rank-card strong {
  bottom: 40px;
  font-size: 17px;
  line-height: 1.35;
}

.rank-card em {
  bottom: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-style: normal;
}

.compact-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.compact-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.compact-card-title,
.compact-card-meta {
  display: block;
  padding: 0 12px;
}

.compact-card-title {
  margin-top: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.compact-card-meta {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.inner-hero {
  color: #fff;
  background: linear-gradient(120deg, #172554, #2563eb 54%, #0891b2);
}

.inner-hero-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 20px;
}

.inner-hero h1 {
  color: #fff;
}

.inner-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  color: #64748b;
  font-size: 14px;
}

.inner-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.78);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 16px;
  color: #0f172a;
  border-color: var(--line);
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
  background: #fff;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 72px 154px minmax(0, 1fr) 100px;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.ranking-row .ranking-num {
  position: static;
  color: #2563eb;
  font-size: 32px;
  text-align: center;
}

.ranking-cover img {
  width: 154px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.ranking-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.player-section {
  background: #030712;
}

.player-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px;
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.24));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  color: #2563eb;
  background: #fff;
  font-size: 38px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.25;
  text-align: center;
}

.detail-section {
  max-width: 1180px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
}

.detail-article,
.related-panel {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.detail-article {
  padding: 28px;
}

.detail-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.detail-poster {
  width: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.detail-head h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0 0 14px;
  color: #334155;
  font-size: 18px;
  line-height: 1.75;
}

.detail-genre {
  margin-bottom: 14px;
  color: var(--muted);
}

.content-card {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.content-card h2,
.related-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
}

.accent-card {
  padding: 24px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.related-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 20px;
}

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

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

.related-item:hover {
  background: #f8fafc;
}

.related-item img {
  grid-row: span 2;
  width: 96px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item span {
  font-weight: 800;
  line-height: 1.35;
}

.related-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
}

.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-logo .logo-mark {
  color: #0f172a;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.site-footer p,
.site-footer li {
  margin: 0 0 8px;
  line-height: 1.7;
}

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

.footer-bottom {
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #94a3b8;
}

.no-results {
  display: none;
  margin: 26px 0;
  padding: 24px;
  border-radius: 20px;
  color: #475569;
  background: #f8fafc;
  text-align: center;
}

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

@media (max-width: 1040px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

  .hero-poster {
    max-width: 420px;
    margin: 0 auto;
  }

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

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

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

  .related-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    height: 62px;
  }

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

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

  .hero-shell {
    padding-top: 46px;
  }

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

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

  .hero-control-row,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-block,
  .inner-hero-content {
    padding: 42px 16px;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .category-grid.large,
  .rank-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .ranking-row .small-button {
    grid-column: 2 / -1;
  }

  .ranking-cover img {
    width: 96px;
    height: 68px;
  }

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

  .detail-poster {
    width: 100%;
    max-height: 420px;
  }

  .detail-article {
    padding: 20px;
  }
}

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

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

  .card-body h3,
  .card-body p {
    min-height: auto;
  }
}
