:root {
  --site-bg: #f7f8fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --soft: #e5e7eb;
  --line: #edf0f5;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--site-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ef4444);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.28);
}

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

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

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

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

.header-search {
  display: flex;
  align-items: center;
  width: 300px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.header-search button,
.large-search button,
.search-page-form button {
  border: 0;
  color: #fff;
  background: var(--red);
  padding: 10px 16px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.large-search button:hover,
.search-page-form button:hover {
  background: var(--red-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 2px;
}

.hero-slider {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #050505;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(660px, 100%);
  color: #fff;
  padding-top: 42px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.section-kicker {
  color: var(--red);
  background: #fee2e2;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.hero-meta span {
  padding: 6px 11px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

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

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

.primary-btn {
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 26px rgba(220, 38, 38, 0.32);
}

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

.primary-btn:hover {
  background: var(--red-dark);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  font-size: 40px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(220, 38, 38, 0.88);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

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

.page-section {
  padding: 56px 0;
}

.intro-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.intro-section h2,
.section-heading h2,
.rank-panel h2,
.detail-main h1,
.detail-main h2,
.related-panel h2,
.sub-hero h1,
.category-hero h1 {
  margin: 0;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.intro-section h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.intro-section p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.large-search,
.search-page-form {
  display: flex;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.large-search input,
.search-page-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 17px 20px;
  background: transparent;
}

.large-search button,
.search-page-form button {
  padding: 0 26px;
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-more {
  color: var(--red);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  opacity: 0.58;
  transform: scale(1.08);
}

.category-tile span {
  position: absolute;
  inset: auto 18px 18px 18px;
  color: #fff;
}

.category-tile strong {
  display: block;
  font-size: 21px;
}

.category-tile small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

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

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

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

.movie-card-link {
  display: block;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  background: #111827;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.movie-card.compact .poster-wrap {
  aspect-ratio: 16 / 22;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.78) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.movie-card:hover .poster-wrap::after,
.movie-card:hover .poster-play {
  opacity: 1;
}

.quality-badge,
.rating-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  padding: 4px 8px;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.quality-badge {
  left: 10px;
  background: var(--red);
}

.rating-badge {
  right: 10px;
  background: rgba(0, 0, 0, 0.62);
}

.poster-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: rgba(220, 38, 38, 0.88);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card-body {
  padding: 12px 2px 0;
}

.movie-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

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

.movie-meta-row {
  justify-content: space-between;
  color: #9ca3af;
  font-size: 13px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

.rank-panel,
.related-panel,
.detail-main,
.detail-side,
.filter-panel,
.category-overview-card,
.ranking-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

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

.rank-panel h2,
.related-panel h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 36px 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.rank-item:hover {
  background: #f9fafb;
}

.rank-number {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 999px;
  font-weight: 800;
}

.rank-number.top {
  color: #fff;
  background: var(--red);
}

.rank-item img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.related-item strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info small,
.related-item small {
  color: var(--muted);
}

.feature-band {
  background: linear-gradient(135deg, #fff1f2, #eff6ff);
}

.sub-hero {
  padding: 72px 0;
  color: #fff;
}

.sub-hero.red {
  background: linear-gradient(135deg, #991b1b, #ef4444);
}

.sub-hero.blue {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.sub-hero .section-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.sub-hero h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
}

.sub-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.category-overview-card {
  overflow: hidden;
}

.category-overview-card a {
  display: block;
  height: 100%;
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 130px;
  overflow: hidden;
  background: #111827;
}

.category-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-body {
  padding: 20px;
}

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

.category-overview-body p {
  margin: 0 0 12px;
  color: var(--muted);
}

.category-overview-body small {
  display: block;
  overflow: hidden;
  color: var(--red);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.category-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.category-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.16));
}

.category-hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 0;
}

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

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

.category-hero h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 58px);
}

.category-hero p {
  max-width: 680px;
  margin: 14px 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.5fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--soft);
  border-radius: 12px;
  outline: 0;
  padding: 12px 14px;
  background: #fff;
}

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

.empty-state {
  margin: 26px 0 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

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

.ranking-card {
  overflow: hidden;
}

.ranking-card a {
  display: grid;
  grid-template-columns: 70px 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px;
}

.ranking-large-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #f97316);
  border-radius: 18px;
  font-size: 24px;
  font-weight: 900;
}

.ranking-card img {
  width: 180px;
  height: 108px;
  object-fit: cover;
  border-radius: 14px;
}

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

.ranking-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-page-form {
  width: min(760px, 100%);
  margin-top: 24px;
}

.player-section {
  padding: 30px 0 42px;
  background: #050505;
}

.player-section .breadcrumb {
  color: rgba(255, 255, 255, 0.64);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
  font-size: 19px;
  font-weight: 800;
  pointer-events: auto;
}

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

.play-button-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 6px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.36);
  font-size: 38px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding: 48px 0;
}

.detail-main {
  padding: 30px;
}

.detail-main h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 52px);
}

.detail-lead {
  margin: 0 0 24px;
  color: #374151;
  font-size: 19px;
  font-weight: 600;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.detail-meta-grid div {
  padding: 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.detail-meta-grid strong {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.detail-meta-grid span {
  display: block;
  margin-top: 4px;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 28px;
}

.tag-list span {
  padding: 7px 12px;
  color: var(--red);
  background: #fee2e2;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.detail-main h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-main p {
  color: #374151;
}

.detail-side {
  align-self: start;
  padding: 18px;
  position: sticky;
  top: 96px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 20px;
}

.related-panel {
  padding: 18px;
  box-shadow: none;
}

.related-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.related-item:last-child {
  border-bottom: 0;
}

.related-item img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

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

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

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
}

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

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

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-links a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

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

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

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

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

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

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

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

  .nav-link {
    border-radius: 12px;
  }

  .header-search {
    order: 5;
    width: 100%;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.78));
  }

  .hero-arrow {
    display: none;
  }

  .intro-section,
  .filter-panel,
  .footer-grid,
  .ranking-card a {
    grid-template-columns: 1fr;
  }

  .three-col,
  .category-grid,
  .four-col,
  .five-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ranking-card img {
    width: 100%;
    height: 180px;
  }
}

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

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

  .hero-slider {
    height: 520px;
  }

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

  .hero-actions,
  .large-search,
  .search-page-form {
    flex-direction: column;
    border-radius: 18px;
  }

  .large-search button,
  .search-page-form button {
    min-height: 48px;
  }

  .page-section {
    padding: 38px 0;
  }

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

  .three-col,
  .category-grid,
  .four-col,
  .five-col,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.compact .poster-wrap,
  .poster-wrap {
    aspect-ratio: 16 / 22;
  }

  .detail-main,
  .detail-side {
    padding: 20px;
  }

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

  .player-shell {
    border-radius: 16px;
  }
}
