:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #111827;
  --bg-card: #0b1120;
  --bg-card-strong: #151f33;
  --text: #f9fafb;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.09);
  --red: #dc2626;
  --red-dark: #991b1b;
  --orange: #f97316;
  --gold: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(220, 38, 38, 0.2), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(249, 115, 22, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: rgba(3, 7, 18, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--container), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.36);
  color: #fff;
  font-weight: 900;
}

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

.brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #ef4444, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #d1d5db;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.24);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-wrap {
  position: relative;
}

.compact-search {
  width: 240px;
}

.site-search,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.86);
  color: var(--text);
  outline: none;
  padding: 12px 14px;
  transition: 0.2s ease;
}

.site-search:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 90vw);
  max-height: 430px;
  overflow: auto;
  display: none;
  padding: 8px;
  background: rgba(11, 17, 32, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.search-results.visible {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  color: #e5e7eb;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-result-item img {
  width: 48px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-card-strong);
}

.search-result-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.search-result-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text);
}

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 14px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: #fff;
  background: rgba(220, 38, 38, 0.86);
}

.home-hero {
  position: relative;
  min-height: 720px;
  height: 78vh;
  overflow: hidden;
  background: linear-gradient(180deg, #111827, #030712);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.94), rgba(3, 7, 18, 0.72) 46%, rgba(3, 7, 18, 0.22)),
    linear-gradient(0deg, #030712 0%, transparent 30%, rgba(3, 7, 18, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding-top: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fecaca;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #fff;
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(40px, 7vw, 76px);
  max-width: 980px;
}

.hero-subtitle,
.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 23px);
}

.hero-tags,
.detail-tags,
.ranking-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #f3f4f6;
  font-size: 12px;
  font-weight: 700;
}

.hero-actions,
.detail-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.ranking-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-button,
.ranking-play {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 16px 36px rgba(220, 38, 38, 0.28);
}

.primary-button:hover,
.ranking-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(220, 38, 38, 0.38);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
}

.ghost-button:hover {
  border-color: rgba(248, 113, 113, 0.8);
  background: rgba(220, 38, 38, 0.2);
}

.full-button {
  width: 100%;
}

.hero-search {
  width: min(560px, 100%);
  margin-top: 26px;
}

.hero-search .site-search {
  min-height: 58px;
  border-radius: 18px;
  background: rgba(3, 7, 18, 0.68);
}

.hero-search .search-results {
  right: auto;
  left: 0;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--bg-card-strong);
}

.hero-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(3, 7, 18, 0.78);
  color: #fff;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: calc((100% - min(var(--container), calc(100% - 32px))) / 2);
  bottom: 44px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: 0.22s ease;
}

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

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

.first-section {
  padding-top: 34px;
}

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

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading a {
  color: #fca5a5;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 17, 32, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.18), rgba(249, 115, 22, 0.08)),
    var(--bg-card-strong);
}

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

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

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

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  right: 10px;
  background: rgba(220, 38, 38, 0.92);
}

.rank-badge {
  left: 10px;
  background: rgba(245, 158, 11, 0.95);
}

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

.movie-card h3 {
  margin: 0;
  min-height: 44px;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.movie-card h3 a:hover {
  color: #fca5a5;
}

.movie-meta,
.movie-desc {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  background: var(--bg-card-strong);
  transition: transform 0.35s ease;
}

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

.category-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.05), rgba(3, 7, 18, 0.92));
}

.category-card strong,
.category-card small {
  position: absolute;
  right: 18px;
  left: 18px;
  z-index: 2;
}

.category-card strong {
  bottom: 62px;
  color: #fff;
  font-size: 24px;
}

.category-card small {
  bottom: 20px;
  color: #d1d5db;
  font-size: 13px;
}

.page-shell {
  padding-top: 100px;
}

.page-hero {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(30px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(249, 115, 22, 0.08)),
    rgba(11, 17, 32, 0.9);
  box-shadow: var(--shadow);
}

.page-hero h1,
.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.slim-hero,
.category-hero,
.ranking-hero {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  color: #d1d5db;
  font-size: 14px;
}

.breadcrumb a {
  color: #fca5a5;
  font-weight: 800;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(11, 17, 32, 0.86);
}

.category-overview-cover {
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg-card-strong);
}

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

.category-overview-card h2 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: 24px;
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fecaca;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.filter-panel {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: rgba(11, 17, 32, 0.82);
}

.filter-line {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1.4fr;
  gap: 14px;
}

.filter-line label {
  display: grid;
  gap: 7px;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 800;
}

.ranking-highlight {
  margin-bottom: 10px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 70px 56px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  background: rgba(11, 17, 32, 0.88);
}

.ranking-cover {
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-card-strong);
}

.ranking-cover img {
  width: 70px;
  height: 96px;
  object-fit: cover;
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.ranking-info h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.ranking-info p {
  margin: 6px 0 0;
  color: var(--muted);
}

.ranking-tags {
  margin-top: 10px;
}

.detail-shell {
  padding-top: 96px;
}

.detail-layout {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.video-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-player,
.video-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-player {
  background: #000;
}

.video-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
}

.video-cover.hidden {
  display: none;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
}

.video-cover-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(220, 38, 38, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.88));
}

.big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-size: 38px;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 22px 46px rgba(220, 38, 38, 0.36);
}

.video-message {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 3;
  display: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(3, 7, 18, 0.82);
  color: #fecaca;
  font-weight: 800;
}

.video-message.visible {
  display: block;
}

.detail-aside {
  display: grid;
  gap: 18px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-card-strong);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

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

.detail-quick {
  margin-top: 0;
  display: grid;
}

.detail-info {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 44px);
  background: rgba(11, 17, 32, 0.76);
}

.detail-info h1 {
  margin-top: 18px;
}

.detail-info h2 {
  margin: 28px 0 10px;
  color: #fff;
  font-size: 24px;
}

.detail-info p {
  margin: 0;
  color: #d1d5db;
  font-size: 17px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.07);
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.72);
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.3fr;
  gap: 34px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

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

.footer-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #d1d5db;
}

.footer-links a:hover {
  color: #fff;
  border-color: rgba(248, 113, 113, 0.7);
}

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: #6b7280;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .compact-search {
    display: none;
  }

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

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

  .hero-content {
    grid-template-columns: 1fr 260px;
    gap: 32px;
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-subtitle {
    display: none;
  }

  .home-hero {
    min-height: 780px;
    height: auto;
  }

  .hero-slide {
    min-height: 780px;
  }

  .hero-content {
    min-height: 780px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding-top: 90px;
    padding-bottom: 100px;
  }

  .hero-poster {
    max-width: 220px;
    transform: none;
  }

  .hero-dots {
    right: auto;
    left: 16px;
    bottom: 34px;
  }

  .category-grid,
  .category-overview-grid,
  .footer-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    grid-template-columns: 180px 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 58px 42px 1fr;
  }

  .ranking-play {
    grid-column: 2 / 4;
    width: 100%;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .section-wrap,
  .page-hero,
  .detail-layout,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, var(--container));
  }

  .brand-name {
    font-size: 19px;
  }

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

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

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

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

  .category-overview-cover {
    aspect-ratio: 16 / 9;
  }

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

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

  .detail-info p {
    font-size: 16px;
  }

  .big-play {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
