:root {
  --orange: #f97316;
  --coral: #ff6b47;
  --amber: #f59e0b;
  --gold: #facc15;
  --text: #1f2937;
  --muted: #6b7280;
  --light: #f8fafc;
  --line: #e5e7eb;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  --radius: 20px;
}

* {
  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(--text);
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--orange), var(--coral), var(--amber));
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28);
}

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

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

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link,
.mobile-link {
  color: #fff;
  font-weight: 700;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  opacity: 1;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  padding: 9px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--dark);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(255, 107, 71, 0.42), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.52), rgba(17, 24, 39, 0.84)),
    linear-gradient(0deg, rgba(249, 250, 251, 1) 0%, rgba(249, 250, 251, 0) 22%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 48px;
  padding: 72px 0 150px;
}

.hero-copy {
  color: #fff;
  max-width: 760px;
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.detail-hero h1,
.page-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.hero p,
.detail-hero p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(17px, 2vw, 23px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.tag-row,
.detail-tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tag-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  background: #fff7ed;
  color: #c2410c;
}

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

.primary-button,
.ghost-button,
.small-button,
.search-box-large button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-box-large button,
.hero-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.3);
}

.primary-button,
.ghost-button {
  min-height: 48px;
  padding: 0 24px;
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover,
.search-box-large button:hover,
.hero-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  border: 8px solid rgba(255, 255, 255, 0.16);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
  width: 36px;
  background: #fff;
}

.hero-search {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-search input,
.search-box-large input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.hero-search input {
  border: 0;
  padding: 0 18px;
  background: transparent;
}

.hero-search button {
  min-height: 44px;
  padding: 0 24px;
}

.hero-category-pills {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 148px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-category-pills a {
  color: #fff;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

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

.alt-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.65), rgba(255, 255, 255, 0));
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.panel-heading h2,
.detail-card h2,
.info-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  color: var(--text);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more,
.panel-heading a {
  color: var(--orange);
  font-weight: 850;
}

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

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

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

.movie-card {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover .poster img,
.movie-card:hover .row-cover img,
.ranking-row:hover .ranking-cover img {
  transform: scale(1.08);
}

.duration {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  color: #fff;
  background: rgba(249, 115, 22, 0.9);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.poster-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 18px;
  color: #fff;
  font-weight: 850;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
  transition: opacity 0.25s ease;
}

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

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

.movie-title,
.row-title {
  display: -webkit-box;
  min-height: 46px;
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-title:hover,
.row-title:hover,
.ranking-body h2 a:hover {
  color: var(--orange);
}

.movie-card-body p,
.row-body p,
.ranking-body p,
.category-card p,
.category-overview-card p,
.detail-card p,
.info-card dd {
  color: var(--muted);
}

.movie-card-body p,
.row-body p,
.ranking-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-meta span {
  border-radius: 999px;
  background: #f3f4f6;
  padding: 4px 8px;
}

.tag-row {
  margin: 10px 0 12px;
}

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

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

.movie-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 132px;
}

.row-cover {
  display: block;
  height: 100%;
  overflow: hidden;
}

.row-body {
  padding: 16px;
}

.rank-panel,
.info-card,
.detail-card,
.poster-card,
.category-overview-card {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.rank-panel {
  align-self: start;
  position: sticky;
  top: 86px;
  padding: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.rank-number,
.ranking-index {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 12px;
  padding: 6px 8px;
  text-align: center;
  font-weight: 900;
}

.rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-score {
  color: var(--orange);
  font-weight: 900;
}

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

.category-card,
.category-overview-card {
  display: block;
  padding: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-cover-strip,
.category-overview-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.category-overview-covers {
  grid-template-columns: repeat(4, 1fr);
}

.category-cover-strip img,
.category-overview-covers img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
}

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

.category-card p,
.category-overview-card p {
  margin: 0;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-links a {
  color: var(--orange);
  background: #fff7ed;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 750;
}

.page-hero,
.detail-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, var(--orange), var(--coral), var(--amber));
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -36% auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.small-hero > div,
.category-hero > div,
.search-hero > div {
  padding: 70px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb em {
  font-style: normal;
  opacity: 0.7;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select,
.search-box-large input {
  min-height: 48px;
  padding: 0 16px;
}

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

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 116px 62px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px;
}

.ranking-cover {
  display: block;
  width: 116px;
  height: 76px;
  overflow: hidden;
  border-radius: 14px;
}

.ranking-body h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.small-button {
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.search-box-large {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(680px, 100%);
  gap: 10px;
  margin-top: 26px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-box-large button {
  min-height: 48px;
  padding: 0 26px;
}

.detail-hero {
  min-height: 440px;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.78)),
    linear-gradient(0deg, rgba(249, 250, 251, 1) 0%, rgba(249, 250, 251, 0) 25%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 108px;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: -54px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.player-section,
.player-shell {
  width: 100%;
}

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

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

.play-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.35);
  font-size: 34px;
  padding-left: 4px;
}

.play-title {
  max-width: 86%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.detail-card {
  margin-top: 22px;
  padding: 24px;
}

.detail-card p {
  margin: 14px 0 0;
  font-size: 16px;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.poster-card {
  overflow: hidden;
}

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

.info-card {
  padding: 22px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px 12px;
  margin: 16px 0 18px;
}

.info-card dt {
  color: var(--text);
  font-weight: 850;
}

.info-card dd {
  margin: 0;
}

.site-footer {
  margin-top: 60px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.footer-logo {
  color: #fff;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 14px 0 0;
  color: #9ca3af;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #9ca3af;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .rank-panel {
    position: static;
  }

  .detail-sidebar {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 760px) {
  .header-container {
    min-height: 58px;
  }

  .logo {
    font-size: 19px;
  }

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

  .hero-content {
    padding: 54px 0 190px;
  }

  .hero h1,
  .detail-hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero p,
  .detail-hero p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-category-pills {
    bottom: 120px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .hero-search,
  .search-box-large,
  .filter-bar {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 44px;
  }

  .content-section {
    padding: 42px 0;
  }

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

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

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

  .movie-title {
    font-size: 15px;
  }

  .movie-row,
  .category-overview-card,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .row-cover,
  .ranking-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ranking-index {
    width: 64px;
  }

  .detail-hero-content {
    padding: 64px 0 96px;
  }

  .detail-layout {
    margin-top: -36px;
  }

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

  .poster-card img {
    aspect-ratio: 16 / 10;
  }

  .info-card dl {
    grid-template-columns: 64px 1fr;
  }
}

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

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
