* {
  box-sizing: border-box;
}

:root {
  --bg: #0f172a;
  --bg-2: #111827;
  --purple: #581c87;
  --purple-2: #9333ea;
  --pink: #db2777;
  --yellow: #eab308;
  --yellow-2: #facc15;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(147, 51, 234, 0.3), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(219, 39, 119, 0.2), transparent 24rem),
    linear-gradient(180deg, #0f172a 0%, #1d1230 42%, #0f172a 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: white;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(88, 28, 135, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon,
.footer-brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--yellow-2), #fef08a);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(234, 179, 8, 0.4);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: rotate(10deg) scale(1.06);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--yellow-2);
}

.brand-subtitle {
  color: #d1d5db;
  font-size: 0.78rem;
}

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

.nav-link,
.mobile-link {
  color: #e5e7eb;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: var(--yellow-2);
}

.mini-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mini-search input {
  width: 190px;
  padding: 9px 14px;
}

.mini-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--yellow-2);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
  background: rgba(255, 255, 255, 0.14);
}

.mini-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.filter-bar button,
.player-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
}

.mini-search button,
.mobile-search button,
.primary-button,
.player-button {
  color: #111827;
  background: linear-gradient(135deg, var(--yellow-2), var(--yellow));
  box-shadow: 0 16px 36px rgba(234, 179, 8, 0.25);
}

.mini-search button {
  padding: 9px 14px;
}

.menu-button {
  display: none;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-panel-inner {
  display: grid;
  gap: 14px;
  padding: 18px 0 22px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 14px;
}

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

.home-hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 1.1s ease;
}

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

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

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide::before {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.36) 56%, rgba(15, 23, 42, 0.78));
}

.hero-slide::after {
  background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.7) 22%, transparent 62%);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow-2);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.hero-copy p {
  max-width: 660px;
  color: #e5e7eb;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  margin: 0 0 26px;
}

.hero-meta,
.detail-meta,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.page-meta span,
.tag-pill,
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-meta .strong,
.detail-meta .strong {
  color: #111827;
  background: var(--yellow-2);
  border-color: var(--yellow-2);
  font-weight: 900;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button:hover,
.player-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 45px rgba(234, 179, 8, 0.36);
}

.secondary-button {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.secondary-button:hover {
  color: #111827;
  background: white;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--yellow-2);
}

main {
  min-height: 70vh;
}

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

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--yellow-2);
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 12px;
}

.section-title h2,
.section-title h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.15;
}

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

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: thin;
}

.scroll-row > .movie-card {
  width: 330px;
  flex: 0 0 auto;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(250, 204, 21, 0.32);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.movie-card.large .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.rank-poster:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 58%);
}

.duration-chip,
.category-chip,
.rank-mark {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.duration-chip {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: white;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.category-chip {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #111827;
  background: rgba(250, 204, 21, 0.94);
}

.rank-mark {
  left: 12px;
  bottom: 12px;
  min-width: 34px;
  padding: 6px 10px;
  text-align: center;
  color: #111827;
  background: var(--yellow-2);
}

.play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(12px);
}

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

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  line-height: 1.32;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.detail-title-link:hover {
  color: var(--yellow-2);
}

.movie-card p {
  min-height: 3.1em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #d1d5db;
  font-size: 0.84rem;
}

.card-meta span,
.rank-meta span {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.065);
  border-radius: 999px;
}

.card-tags {
  margin-top: 10px;
  color: #fef08a;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.82), rgba(219, 39, 119, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

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

.category-card:hover img {
  opacity: 0.38;
}

.category-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.84), rgba(219, 39, 119, 0.64));
}

.category-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
}

.category-card strong {
  font-size: 1.45rem;
  line-height: 1.1;
}

.category-card em {
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  font-size: 0.94rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud a {
  padding: 11px 17px;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tag-cloud a:hover {
  color: #111827;
  background: var(--yellow-2);
  transform: translateY(-2px);
}

.cta-panel,
.page-hero,
.detail-panel,
.filter-bar,
.player-shell {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.cta-panel {
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.14), transparent 21rem),
    linear-gradient(135deg, rgba(88, 28, 135, 0.52), rgba(219, 39, 119, 0.28));
}

.cta-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.cta-panel p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: #e5e7eb;
  font-size: 1.08rem;
}

.cta-actions {
  justify-content: center;
}

.page-hero {
  margin-top: 36px;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.16), transparent 20rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(88, 28, 135, 0.52));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #d1d5db;
  margin-bottom: 16px;
  font-size: 0.94rem;
}

.breadcrumb a {
  color: var(--yellow-2);
}

.page-hero h1,
.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  line-height: 1.06;
}

.page-hero p,
.detail-copy p {
  max-width: 860px;
  color: #e5e7eb;
  font-size: 1.08rem;
  margin: 0;
}

.filter-bar {
  position: sticky;
  top: 86px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 12px;
  align-items: center;
  margin: 30px 0;
  padding: 14px;
  border-radius: 18px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 14px;
}

.filter-bar option {
  color: #111827;
}

.filter-bar button {
  padding: 12px 18px;
  color: #111827;
  background: var(--yellow-2);
}

.filter-empty {
  display: none;
  padding: 30px;
  color: #e5e7eb;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 18px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 170px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(250, 204, 21, 0.28);
}

.list-rank {
  width: 54px;
  text-align: center;
  color: var(--yellow-2);
  font-size: 2rem;
  font-weight: 950;
}

.rank-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

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

.rank-poster span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rank-poster:hover span {
  opacity: 1;
}

.rank-content h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.rank-content p {
  margin: 0 0 12px;
  color: var(--muted);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
  background: #0f172a;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: blur(2px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), #0f172a 100%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  min-height: 620px;
  padding: 62px 0;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.detail-copy .breadcrumb {
  margin-bottom: 20px;
}

.detail-copy .summary-lead {
  margin-bottom: 24px;
  font-size: 1.18rem;
}

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

.player-shell {
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 26px;
  font-size: 1.06rem;
}

.detail-panel {
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.detail-panel h2 {
  margin: 0 0 14px;
  font-size: 1.6rem;
}

.detail-panel p {
  margin: 0 0 16px;
  color: #e5e7eb;
}

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

.info-pill {
  justify-content: center;
}

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

.site-footer {
  margin-top: 86px;
  color: #d1d5db;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), #020617 38%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
}

.footer-brand span {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: var(--yellow-2);
}

.site-footer p {
  margin: 0;
}

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

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

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

  .detail-hero-inner {
    grid-template-columns: 280px 1fr;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

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

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

  .filter-bar {
    position: static;
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px 120px 1fr;
    gap: 12px;
  }

  .list-rank {
    width: 42px;
    font-size: 1.35rem;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

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

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

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    display: none;
  }

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

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

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

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

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

  .movie-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .scroll-row > .movie-card {
    width: 78vw;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

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

  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
