:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: rgba(30, 41, 59, 0.64);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(250, 204, 21, 0.46);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --yellow: #facc15;
  --yellow-strong: #eab308;
  --orange: #f97316;
  --blue: #38bdf8;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 46%, #0f172a 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 10%, rgba(250, 204, 21, 0.14), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.10), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
}

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

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

img.is-missing {
  opacity: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon,
.footer-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.32);
  transition: transform 0.5s ease;
}

.brand:hover .brand-icon {
  transform: rotate(180deg) scale(1.05);
}

.brand-text {
  font-size: clamp(18px, 2vw, 24px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: white;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(18px);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: white;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
}

.hero-section {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.star-field {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.30;
  background-image:
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 60px 70px, white, transparent),
    radial-gradient(1px 1px at 50px 50px, white, transparent),
    radial-gradient(1px 1px at 130px 80px, white, transparent),
    radial-gradient(2px 2px at 90px 10px, white, transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: starMove 200s linear infinite;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.50), #0f172a);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 132px 0 84px;
}

.floating-mark {
  width: 82px;
  height: 82px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--yellow);
  font-size: 46px;
  background: rgba(250, 204, 21, 0.10);
  border: 1px solid rgba(250, 204, 21, 0.32);
  animation: float 6s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.subpage-hero h1 {
  max-width: 980px;
  margin: 0 auto 24px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.08;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

.hero-lead,
.subpage-hero p {
  max-width: 760px;
  margin: 0 auto 32px;
  color: var(--muted-2);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.75;
}

.hero-search {
  display: flex;
  align-items: center;
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  color: white;
  border: 0;
  outline: 0;
  background: transparent;
}

.hero-search button,
.btn-primary,
.btn-secondary,
.btn-ghost,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-search button,
.btn-primary {
  color: white;
  background: linear-gradient(90deg, var(--yellow-strong), var(--orange));
  box-shadow: 0 18px 36px rgba(234, 179, 8, 0.24);
}

.btn-primary.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.btn-ghost,
.section-link {
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.10);
  border-color: rgba(250, 204, 21, 0.30);
}

.hero-search button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.section-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 48px rgba(234, 179, 8, 0.20);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-hot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.hero-hot-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-hot-links a:hover {
  color: var(--yellow);
  border-color: rgba(250, 204, 21, 0.38);
}

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

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 46px);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

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

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

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

.movie-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--line-strong);
  box-shadow: 0 24px 52px rgba(234, 179, 8, 0.14);
}

.movie-card.compact {
  border-radius: 16px;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  margin: 0;
  background:
    radial-gradient(circle at 35% 20%, rgba(250, 204, 21, 0.22), transparent 30%),
    linear-gradient(135deg, #1e293b, #020617);
}

.featured-grid .poster-frame {
  aspect-ratio: 4 / 5;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12), transparent);
  opacity: 0.80;
  transition: opacity 0.35s ease;
}

.movie-card:hover .poster-frame::after {
  opacity: 0.92;
}

.poster-frame img {
  position: absolute;
  inset: 0;
  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.10);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 10px;
  color: white;
  background: rgba(234, 179, 8, 0.88);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.rank-badge {
  right: auto;
  left: 10px;
  background: rgba(14, 165, 233, 0.88);
}

.play-badge {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(234, 179, 8, 0.90);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  position: relative;
  z-index: 2;
  padding: 16px;
}

.featured-grid .card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: white;
  padding: 24px;
}

.card-body h3 {
  margin: 0 0 8px;
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  color: white;
  font-size: 17px;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

.featured-grid .card-body h3 {
  font-size: 25px;
}

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

.card-meta,
.card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.card-summary {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.stat-card {
  padding: 28px 18px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.10));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-size: clamp(30px, 4vw, 46px);
}

.stat-card span {
  color: var(--muted);
}

.category-strip + .category-strip {
  margin-top: 56px;
}

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

.mini-row {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-row:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.mini-row img {
  width: 58px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: #1e293b;
}

.mini-row strong,
.mini-row em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-row strong {
  margin-bottom: 6px;
  color: white;
}

.mini-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mini-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--yellow-strong), var(--orange));
  font-weight: 900;
}

.subpage-main,
.detail-main {
  padding-top: 76px;
}

.subpage-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 56px;
  background:
    radial-gradient(circle at 20% 15%, rgba(250, 204, 21, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.58), rgba(15, 23, 42, 0.96));
}

.compact-hero {
  padding-bottom: 44px;
}

.subpage-hero h1 {
  margin-left: 0;
  font-size: clamp(36px, 5vw, 60px);
}

.subpage-hero p {
  margin-left: 0;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.category-overview-card,
.text-panel,
.detail-panel,
.side-panel,
.filter-panel {
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(14px);
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  gap: 14px;
  align-items: start;
}

.category-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.12);
}

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

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

.category-count {
  margin: 18px 0;
  color: var(--yellow);
  font-weight: 800;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mini-card-grid .movie-card .card-body {
  display: none;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.54);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}

.filter-count {
  min-width: 96px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
}

.filter-count strong {
  color: white;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.88fr);
  gap: 32px;
  align-items: start;
}

.detail-content {
  display: grid;
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: black;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

.player-loading,
.player-error,
.player-start {
  position: absolute;
  z-index: 4;
  left: 50%;
  transform: translateX(-50%);
}

.player-loading {
  top: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  color: white;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
}

.player-error {
  top: 50%;
  width: min(90%, 460px);
  padding: 18px;
  border-radius: 16px;
  color: #fecaca;
  text-align: center;
  background: rgba(127, 29, 29, 0.92);
  transform: translate(-50%, -50%);
}

.player-start {
  bottom: 24px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(90deg, var(--yellow-strong), var(--orange));
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30);
}

.player-start.is-hidden,
.player-loading.is-hidden {
  display: none;
}

.detail-panel,
.side-panel,
.text-panel {
  padding: 28px;
}

.detail-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
}

.detail-lead {
  margin: 0 0 22px;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1.8;
}

.detail-panel h2,
.side-panel h2,
.text-panel h2 {
  margin: 26px 0 12px;
  color: white;
  font-size: 22px;
}

.side-panel h2:first-child,
.text-panel h2:first-child {
  margin-top: 0;
}

.detail-panel p,
.text-panel p {
  margin: 0 0 16px;
  color: var(--muted-2);
  line-height: 1.9;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 14px;
}

.detail-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.08);
}

.top-tags span:first-child {
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.12);
}

.detail-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  border-radius: 18px;
  border: 1px solid var(--line);
}

.meta-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.meta-list dt {
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
  color: white;
}

.meta-list a {
  color: var(--yellow);
}

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

.side-panel .mini-row {
  grid-template-columns: 48px 1fr;
}

.side-panel .mini-rank {
  display: none;
}

.site-footer {
  margin-top: 40px;
  padding: 56px 0 24px;
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 36px;
}

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

.site-footer p,
.site-footer li,
.footer-bottom {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes starMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-200px);
  }
}

@media (max-width: 1100px) {
  .six-cols,
  .five-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .detail-sidebar {
    position: static;
    grid-template-columns: minmax(220px, 320px) 1fr;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .hero-search button {
    width: 100%;
  }

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

  .six-cols,
  .five-cols,
  .four-cols,
  .featured-grid,
  .rank-list,
  .category-overview-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .nav-wrap {
    min-height: 66px;
  }

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

  .hero-content {
    padding-top: 112px;
  }

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

  .hero-actions a {
    width: 100%;
  }

  .six-cols,
  .five-cols,
  .four-cols,
  .featured-grid,
  .rank-list,
  .category-overview-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid.six-cols,
  .movie-grid.five-cols,
  .movie-grid.four-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 14px;
  }

  .card-summary {
    display: none;
  }

  .meta-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
