* {
  box-sizing: border-box;
}

:root {
  --bg: #030303;
  --bg-soft: #0b0f17;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --border: rgba(255, 255, 255, 0.09);
  --muted: #9ca3af;
  --text: #f9fafb;
  --text-soft: #d1d5db;
  --amber: #f59e0b;
  --orange: #ea580c;
  --red: #ef4444;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --container: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", 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(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(0, 0, 0, 0.96), rgba(17, 24, 39, 0.96));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.22);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  background-clip: text;
  -webkit-background-clip: text;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.76rem;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #d1d5db;
  padding: 10px 14px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.98);
}

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

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

.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,
.category-hero > img,
.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-hero-overlay,
.category-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.78) 38%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-side-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.56) 44%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: var(--container);
}

.hero-content h1,
.page-hero h1,
.category-hero h1,
.detail-hero h1 {
  max-width: 760px;
  margin: 18px 0;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.category-hero p,
.detail-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.2);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.hero-tags span,
.tag-list span {
  color: #f8fafc;
  font-size: 0.88rem;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 13px;
  color: #ffffff;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-search button {
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 18px 35px rgba(234, 88, 12, 0.28);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

.wide {
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: #fbbf24;
  font-weight: 700;
}

.hero-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-search {
  position: absolute;
  z-index: 6;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 28px;
  width: min(420px, calc(100% - 48px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(18px);
}

.hero-search input {
  width: 100%;
  min-width: 0;
  color: #ffffff;
  border: 0;
  outline: none;
  padding: 0 14px;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

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

.section-dark {
  background: linear-gradient(180deg, #111827, #030303);
}

.section-black {
  background: #030303;
}

.section-gradient {
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.12), transparent 26%), linear-gradient(180deg, #030303, #111827, #030303);
}

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

.section-heading h2 {
  margin: 14px 0 4px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
}

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

.section-action,
.text-link {
  color: #fbbf24;
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.48);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #111827 55%, #78350f);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 55%);
  transition: opacity 0.25s ease;
}

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

.duration-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  left: 10px;
  right: auto;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-card-body strong {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.35;
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover strong {
  color: #fbbf24;
}

.movie-desc {
  min-height: 3.2em;
  color: var(--muted);
  font-size: 0.91rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta-row,
.card-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

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

.movie-card-horizontal {
  min-height: 128px;
  display: grid;
  grid-template-columns: 190px 1fr;
}

.movie-card-horizontal .poster-frame {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card-horizontal .movie-desc {
  min-height: auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.side-panel,
.info-panel,
.detail-card,
.player-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.78));
  box-shadow: var(--shadow);
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 28px;
}

.side-panel h2 {
  margin: 16px 0 10px;
  font-size: 2rem;
  line-height: 1.12;
}

.side-panel p {
  color: var(--text-soft);
}

.mini-links {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.mini-links a {
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

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

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

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

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

.category-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.24));
}

.category-tile-content {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.category-tile-content strong {
  color: #ffffff;
  font-size: 1.4rem;
}

.category-tile-content span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.category-tile-content em {
  color: #fbbf24;
  font-style: normal;
  font-weight: 800;
}

.page-hero,
.category-hero,
.detail-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 25% 0%, rgba(245, 158, 11, 0.2), transparent 30%), linear-gradient(135deg, #030303, #111827 58%, #431407);
}

.page-hero .container,
.category-hero-content,
.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 82px 0;
}

.category-hero > img,
.detail-hero > img {
  position: absolute;
  inset: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #fbbf24;
}

.category-hero strong {
  color: #fbbf24;
  font-size: 1.1rem;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.9);
  box-shadow: var(--shadow);
}

.category-cover {
  position: relative;
  min-height: 240px;
  overflow: hidden;
}

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

.category-cover span {
  position: absolute;
  left: 14px;
  top: 14px;
  color: #ffffff;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.category-overview-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.category-overview-body h2 {
  margin: 0;
  font-size: 1.6rem;
}

.category-overview-body p {
  margin: 0;
  color: var(--text-soft);
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-links a {
  color: #d1d5db;
  font-size: 0.86rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px)) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.86);
  box-shadow: var(--shadow);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  outline: none;
  padding: 0 14px;
  background: #0b1220;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.72);
}

.filter-count {
  color: #fbbf24;
  font-weight: 900;
  white-space: nowrap;
  padding: 12px 0;
}

.empty-result {
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
}

.detail-section {
  padding-top: 48px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  padding: 12px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  font-weight: 800;
  background: radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.16), rgba(0, 0, 0, 0.74) 62%);
}

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

.player-play-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 24px 54px rgba(234, 88, 12, 0.32);
}

.player-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.detail-card {
  padding: 28px;
}

.detail-card h2,
.info-panel h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.detail-card p {
  margin: 0 0 22px;
  color: var(--text-soft);
}

.detail-card p:last-child {
  margin-bottom: 0;
}

.detail-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
}

.detail-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.info-panel {
  padding: 22px;
}

.info-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.info-panel dt {
  color: var(--muted);
}

.info-panel dd {
  margin: 0;
  color: #ffffff;
  text-align: right;
}

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

.compact-list .movie-card-horizontal {
  grid-template-columns: 110px 1fr;
  min-height: 90px;
}

.compact-list .movie-card-body {
  padding: 10px;
}

.compact-list .movie-desc,
.compact-list .card-info-row,
.compact-list .category-pill {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #030303;
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 10px;
  color: #fbbf24;
  font-size: 1.28rem;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 520px;
}

.footer-links a {
  color: var(--text-soft);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.image-missing::after {
  content: "亚洲热门电影";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #1f2937, #111827 45%, #78350f);
}

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

  .menu-toggle {
    display: flex;
  }

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

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

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

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

@media (max-width: 820px) {
  .hero-carousel {
    min-height: 760px;
  }

  .hero-content {
    justify-content: flex-start;
    padding-top: 86px;
  }

  .hero-control {
    display: none;
  }

  .hero-search {
    left: 16px;
    right: 16px;
    bottom: 72px;
    width: auto;
    flex-direction: column;
  }

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

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 220px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .brand-subtitle {
    display: none;
  }

  .hero-content h1,
  .page-hero h1,
  .category-hero h1,
  .detail-hero h1 {
    font-size: 2.3rem;
  }

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

  .movie-card-horizontal {
    grid-template-columns: 130px 1fr;
  }

  .movie-card-horizontal .movie-desc {
    display: none;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .category-hero,
  .detail-hero {
    min-height: 360px;
  }

  .detail-card,
  .info-panel {
    padding: 20px;
  }
}
