:root {
  --color-bg: #f8fafc;
  --color-card: #ffffff;
  --color-ink: #0f172a;
  --color-muted: #64748b;
  --color-soft: #e2e8f0;
  --color-blue: #2563eb;
  --color-blue-dark: #1d4ed8;
  --color-blue-soft: #eff6ff;
  --color-emerald: #059669;
  --color-amber: #d97706;
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 22px 46px rgba(15, 23, 42, 0.16);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
  font-size: 15px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: -0.03em;
}

.brand-text em {
  margin-top: -4px;
  color: var(--color-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-weight: 650;
}

.desktop-nav > a,
.nav-dropdown > button {
  padding: 8px 0;
  border: 0;
  color: inherit;
  background: transparent;
  transition: color 0.18s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown:hover > button {
  color: var(--color-blue);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -18px;
  display: grid;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--color-soft);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__panel a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
}

.nav-dropdown__panel a:hover {
  color: var(--color-blue);
  background: var(--color-blue-soft);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-search input,
.mobile-panel input,
.search-hero-form input,
.local-filter,
.local-sort {
  min-height: 42px;
  border: 1px solid var(--color-soft);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--color-ink);
  outline: none;
  transition: 0.18s ease;
}

.header-search input {
  width: 220px;
  padding: 0 14px;
}

.header-search input:focus,
.mobile-panel input:focus,
.search-hero-form input:focus,
.local-filter:focus,
.local-sort:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.header-search button,
.search-hero-form button,
.mobile-panel button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--color-blue);
  font-weight: 700;
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #334155;
  border-radius: 999px;
}

.mobile-panel {
  padding: 0 16px 18px;
  border-top: 1px solid var(--color-soft);
  background: #ffffff;
}

.mobile-panel nav {
  display: grid;
  gap: 10px;
  padding: 14px 0;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
  background: #f8fafc;
}

.mobile-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mobile-panel input {
  width: 100%;
  padding: 0 14px;
}

.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

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

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

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

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

.hero-overlay {
  background:
    radial-gradient(circle at 18% 30%, rgba(37, 99, 235, 0.44), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 44%);
}

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

.hero-copy {
  max-width: 680px;
  padding-top: 30px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.hero-copy p {
  max-width: 600px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 19px;
}

.hero-tags,
.movie-card__tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: var(--color-blue-soft);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags .chip {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

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

.btn-primary,
.btn-ghost,
.section-link,
.category-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: 0.18s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--color-blue);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: var(--color-blue-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: #cbd5e1;
  font-size: 14px;
}

.hero-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

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

.hero-controls button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: 0.18s ease;
}

.hero-controls button.is-active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  background: #f8fafc;
}

.section-gradient {
  background: linear-gradient(135deg, #eff6ff, #f8fafc 46%, #ecfeff);
}

.section-dark {
  color: #ffffff;
  background: #0f172a;
}

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

.section-head h2,
.ranking-layout h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.ranking-layout p {
  max-width: 660px;
  margin: 10px 0 0;
  color: var(--color-muted);
}

.section-dark .section-kicker {
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.1);
}

.section-dark p {
  color: #cbd5e1;
}

.section-link,
.category-more {
  color: var(--color-blue);
  background: var(--color-blue-soft);
}

.section-link:hover,
.category-more:hover {
  color: #ffffff;
  background: var(--color-blue);
}

.card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x proximity;
}

.card-row::-webkit-scrollbar {
  height: 10px;
}

.card-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  background: #e2e8f0;
}

.movie-card--large .poster-link {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.52), transparent 48%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

.poster-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.poster-badge--type {
  right: 10px;
  bottom: 10px;
  background: rgba(2, 6, 23, 0.78);
}

.poster-badge--category {
  top: 10px;
  left: 10px;
  background: rgba(37, 99, 235, 0.92);
}

.movie-card__body {
  padding: 18px;
}

.movie-card__body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card__body h3 a:hover {
  color: var(--color-blue);
}

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

.movie-card__meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-card__meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 8px;
  background: #f1f5f9;
}

.movie-card__tags {
  margin-top: 12px;
}

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

.category-tile,
.category-overview-card,
.sidebar-panel,
.detail-content,
.rank-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-tile {
  padding: 22px;
}

.category-tile > a span,
.category-overview-card h2 {
  display: block;
  color: var(--color-blue);
  font-size: 22px;
  font-weight: 850;
}

.category-tile > a strong {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
}

.category-tile__list,
.mini-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mini-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  background: #f8fafc;
  transition: 0.18s ease;
}

.mini-card:hover {
  background: var(--color-blue-soft);
}

.mini-card img {
  width: 60px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: #e2e8f0;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-card em {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
  font-style: normal;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 48px;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.18s ease;
}

.ranking-list a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.rank-num {
  color: #bfdbfe;
  font-weight: 900;
}

.ranking-list em {
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  padding: 70px 0;
  color: #ffffff;
}

.page-hero--blue,
.page-hero--category {
  background:
    radial-gradient(circle at 15% 15%, rgba(191, 219, 254, 0.34), transparent 30%),
    linear-gradient(135deg, #2563eb, #0f172a);
}

.page-hero--dark {
  background:
    radial-gradient(circle at 70% 20%, rgba(37, 99, 235, 0.28), transparent 28%),
    linear-gradient(135deg, #020617, #1e293b);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

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

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

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

.category-overview-card {
  display: grid;
  gap: 20px;
  padding: 26px;
}

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

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

.filter-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--color-soft);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.local-filter {
  flex: 1;
  padding: 0 14px;
}

.local-sort {
  width: 180px;
  padding: 0 12px;
}

.search-hero-form {
  display: flex;
  max-width: 620px;
  gap: 10px;
  margin-top: 28px;
}

.search-hero-form input {
  flex: 1;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
}

.search-hero-form button {
  padding: 0 24px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  overflow: hidden;
}

.rank-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e2e8f0;
}

.rank-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-card__poster span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  font-weight: 900;
}

.rank-card__body {
  padding: 18px;
}

.rank-card__body h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-card__body h2 a:hover {
  color: var(--color-blue);
}

.rank-card__body p {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 14px;
}

.watch-stage {
  padding: 28px 0 38px;
  background: #020617;
}

.breadcrumb--light {
  color: #94a3b8;
}

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

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.26), rgba(2, 6, 23, 0.72));
  text-align: center;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: var(--color-blue);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-size: 30px;
  text-indent: 4px;
}

.play-layer strong {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.15;
}

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

.detail-content {
  padding: 26px;
}

.detail-heading {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.detail-heading > img {
  width: 210px;
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  border-radius: 18px;
  background: #e2e8f0;
  box-shadow: var(--shadow-card);
}

.detail-heading h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-heading p {
  margin: 14px 0 18px;
  color: #475569;
  font-size: 17px;
}

.story-block {
  padding-top: 26px;
  border-top: 1px solid var(--color-soft);
}

.story-block + .story-block {
  margin-top: 26px;
}

.story-block h2 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.story-block p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.85;
}

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

.sidebar-panel {
  padding: 20px;
}

.sidebar-panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.sidebar-panel .category-more {
  width: 100%;
  margin-top: 10px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 16px;
}

.site-footer p {
  margin: 10px 0 0;
  color: #94a3b8;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

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

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

.is-filtered-out {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

  .header-search {
    display: none;
  }

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

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

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

@media (max-width: 820px) {
  .hero-slider {
    height: 620px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .movie-grid--three,
  .movie-grid--four,
  .category-grid,
  .category-overview-grid,
  .rank-grid,
  .movie-grid--editor,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-heading {
    grid-template-columns: 150px 1fr;
  }

  .detail-heading > img {
    width: 150px;
  }

  .filter-panel {
    flex-direction: column;
  }

  .local-sort {
    width: 100%;
  }
}

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

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

  .brand-text em {
    display: none;
  }

  .hero-slider {
    height: 640px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

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

  .section {
    padding: 46px 0;
  }

  .section-head {
    display: grid;
  }

  .movie-grid--three,
  .movie-grid--four,
  .category-grid,
  .category-overview-grid,
  .rank-grid,
  .movie-grid--editor,
  .footer-grid,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .card-row {
    grid-auto-columns: 82%;
  }

  .rank-card {
    grid-template-columns: 96px 1fr;
  }

  .detail-content {
    padding: 18px;
  }

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

  .detail-heading > img {
    width: 100%;
    max-width: 240px;
  }

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

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 24px;
  }
}
