:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.72);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --amber: #f59e0b;
  --orange: #f97316;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32rem), linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
}

.brand-text {
  font-size: 25px;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: white;
  background: rgba(51, 65, 85, 0.72);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: rgba(51, 65, 85, 0.88);
  cursor: pointer;
}

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

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  display: block;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide > img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.74) 46%, rgba(2, 6, 23, 0.15) 100%), linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

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

.hero-tags,
.meta-row,
.minor-meta,
.detail-meta,
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.pill,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  color: white;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 15px;
}

.hero-tags strong,
.rating,
.cover-meta {
  color: #fde68a;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 660px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta {
  color: var(--muted);
  margin: 20px 0 26px;
}

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

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

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

.btn.primary {
  color: white;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

.btn.ghost {
  color: white;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 38px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: var(--amber);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

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

.hero-dots button.active {
  width: 34px;
  background: var(--amber);
}

.home-search {
  margin-top: -46px;
  position: relative;
  z-index: 10;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search h2,
.home-search p {
  margin: 0;
}

.home-search p {
  color: var(--muted);
  margin-top: 8px;
}

.block-space {
  padding: 58px 0;
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

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

.section-title i {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.35), transparent);
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #ef4444, var(--orange));
  color: white;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
}

.filter-panel {
  margin: 24px 0 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.search-box span {
  color: #fbbf24;
  font-size: 24px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-box input::placeholder {
  color: #64748b;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip-row button {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.82);
  cursor: pointer;
}

.chip-row button.active,
.chip-row button:hover {
  color: white;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 24px 48px rgba(245, 158, 11, 0.12);
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

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

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

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: var(--amber);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.cover-meta {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.58);
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 16px;
}

.movie-info h3,
.movie-card.minimal h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card.minimal h3 {
  margin: 10px 0 0;
  font-size: 15px;
}

.movie-info h3 a,
.movie-card.minimal h3 a,
.ranking-info h2 a,
.category-overview-card h2 a {
  transition: color 0.2s ease;
}

.movie-info h3 a:hover,
.movie-card.minimal h3 a:hover,
.ranking-info h2 a:hover,
.category-overview-card h2 a:hover {
  color: #fbbf24;
}

.movie-info p {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.pill {
  padding: 5px 10px;
  font-size: 12px;
}

.meta-row,
.minor-meta {
  color: var(--muted);
  font-size: 13px;
  justify-content: space-between;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.movie-card.horizontal .movie-cover {
  aspect-ratio: auto;
  min-height: 180px;
}

.movie-card.minimal {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.movie-card.minimal .movie-cover {
  border-radius: 16px;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 22px;
  background: #0f172a;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.15));
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.rank-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(51, 65, 85, 0.86);
  transform: translateX(4px);
}

.rank-item b,
.ranking-rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.rank-item em {
  color: #fde68a;
  font-style: normal;
}

.rank-feature {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  border-radius: 24px;
  background: #0f172a;
}

.rank-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.rank-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent);
}

.rank-feature div {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.rank-feature span {
  color: #fbbf24;
  font-weight: 900;
}

.rank-feature h2 {
  margin: 10px 0;
  font-size: 36px;
}

.rank-feature p {
  color: #cbd5e1;
  line-height: 1.8;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem), linear-gradient(135deg, #020617, #0f172a 58%, #020617);
}

.page-hero .container {
  padding: 86px 0 58px;
}

.page-hero span {
  color: #fbbf24;
  font-weight: 900;
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.62);
  border: 1px solid var(--line);
}

.category-overview-cover {
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.category-overview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.preview-links a {
  padding: 7px 10px;
  border-radius: 10px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.78);
  font-size: 13px;
}

.text-link {
  color: #fbbf24;
  font-weight: 900;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 50px 116px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.62);
  border: 1px solid var(--line);
}

.ranking-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
}

.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

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

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(2px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.78) 100%);
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 58px 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fbbf24;
}

.breadcrumbs em {
  color: #cbd5e1;
  font-style: normal;
}

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-one-line {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin: 20px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 11px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  padding: 7px 11px;
  font-size: 13px;
}

.player-section {
  margin-top: -58px;
  position: relative;
  z-index: 4;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 42px;
  box-shadow: 0 16px 42px rgba(245, 158, 11, 0.34);
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 56px 0;
}

.prose-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.64);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.prose-card {
  padding: 30px;
}

.prose-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.prose-card h2:not(:first-child) {
  margin-top: 30px;
}

.prose-card p {
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 16px;
}

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

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
}

.info-list dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.info-list a {
  color: #fbbf24;
}

.side-card {
  padding: 20px;
  align-self: start;
}

.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
  color: white;
}

.site-footer h3 {
  font-size: 24px;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.site-footer p,
.site-footer a {
  color: #94a3b8;
  line-height: 1.8;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

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

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

  .rank-section,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-card {
    align-self: auto;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

  .movie-card.horizontal .movie-cover {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .detail-layout {
    padding-top: 34px;
  }

  .detail-cover {
    max-width: 320px;
  }

  .ranking-row {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 21px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 76vh;
  }

  .hero-copy {
    padding: 46px 0 78px;
  }

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

  .btn,
  .chip-row button {
    width: 100%;
  }

  .home-search {
    margin-top: -26px;
    padding: 20px;
  }

  .movie-grid,
  .movie-grid.two-col,
  .movie-grid.compact,
  .category-grid,
  .category-overview-grid,
  .related-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .page-hero .container {
    padding: 58px 0 38px;
  }

  .detail-copy h1 {
    font-size: 32px;
  }

  .detail-meta span {
    width: 100%;
  }

  .player-section {
    margin-top: -26px;
  }
}
