:root {
  --bg: #fffaf0;
  --bg-soft: #fffbeb;
  --surface: #ffffff;
  --surface-strong: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --muted-strong: #4b5563;
  --line: #fde68a;
  --accent: #d97706;
  --accent-strong: #b45309;
  --accent-soft: #fef3c7;
  --shadow: 0 20px 50px rgba(146, 64, 14, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 40%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.32);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 320px;
  padding: 6px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 8px 12px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.primary-button,
.wide-search button,
.listing-tools button {
  border: 0;
  color: #ffffff;
  font-weight: 750;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.header-search button:hover,
.primary-button:hover,
.wide-search button:hover,
.listing-tools button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.32);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--accent-soft);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--accent-strong);
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  padding: 54px 0 42px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.28), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(251, 191, 36, 0.24), transparent 30%),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #ffffff 100%);
}

.hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: stretch;
}

.hero-main {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.hero-slide {
  display: none;
  height: 100%;
  min-height: 520px;
  grid-template-columns: 48% minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding: 36px;
  animation: fadeIn 0.45s ease both;
}

.hero-slide.active {
  display: grid;
}

.hero-art {
  position: relative;
  min-height: 440px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.26);
}

.hero-art::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.42));
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-eyebrow,
.panel-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-info-card h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #111827;
}

.hero-copy p,
.page-hero p,
.detail-info-card p {
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.section-more,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.secondary-button,
.section-more,
.panel-link {
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: var(--accent-strong);
  font-weight: 750;
  border-radius: 999px;
  padding: 10px 18px;
  background: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.secondary-button:hover,
.section-more:hover,
.panel-link:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.hero-controls {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 26px rgba(146, 64, 14, 0.14);
  cursor: pointer;
  pointer-events: auto;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0 !important;
  background: rgba(217, 119, 6, 0.28) !important;
}

.hero-dot.active {
  width: 26px !important;
  background: var(--accent) !important;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--radius-lg);
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.14);
}

.hero-mini-card img {
  width: 86px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}

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

.hero-mini-card strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.hero-mini-card em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.panel-link {
  margin-top: auto;
}

.search-band {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  transform: translateY(-10px);
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.search-band h2,
.section-heading h2,
.detail-content h2,
.side-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  color: #111827;
  letter-spacing: -0.03em;
}

.search-band p,
.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.wide-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.wide-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 14px;
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 54px auto;
}

.alt-section {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.94), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(245, 158, 11, 0.18);
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 16px 40px rgba(146, 64, 14, 0.14);
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.category-card::after {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.72));
}

.category-card span,
.category-card em {
  position: absolute;
  left: 18px;
  right: 18px;
  color: #ffffff;
}

.category-card span {
  bottom: 44px;
  font-size: 22px;
  font-weight: 850;
}

.category-card em {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 13px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 12px 32px rgba(146, 64, 14, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(146, 64, 14, 0.16);
}

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

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

.movie-card:hover .poster-box img {
  transform: scale(1.05);
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(10px);
}

.year-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.movie-card h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--accent-strong);
}

.movie-card p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
}

.movie-card.compact .poster-box {
  aspect-ratio: 3 / 4;
  height: 100%;
}

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

.movie-card.compact h3 {
  font-size: 16px;
}

.movie-card.compact p {
  -webkit-line-clamp: 2;
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
  border-radius: var(--radius-lg);
  padding: 54px;
  background:
    radial-gradient(circle at 90% 0%, rgba(245, 158, 11, 0.22), transparent 36%),
    linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: var(--shadow);
}

.small-hero {
  min-height: 250px;
}

.category-hero,
.ranking-hero {
  min-height: 280px;
}

.listing-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(130px, 180px)) auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
}

.listing-tools input,
.listing-tools select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(245, 158, 11, 0.18);
  outline: 0;
  border-radius: 999px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--bg-soft);
}

.listing-tools .ghost-button {
  color: var(--accent-strong);
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: none;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.empty-state.show {
  display: block;
}

.stacked-sections {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 14px 40px rgba(146, 64, 14, 0.1);
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 28px;
}

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

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

.breadcrumb {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 24px;
  align-items: stretch;
}

.detail-player,
.detail-info-card,
.detail-content,
.side-panel {
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--shadow);
}

.detail-player {
  padding: 18px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #111827;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.14), rgba(17, 24, 39, 0.72));
  cursor: pointer;
  z-index: 4;
}

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

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.35);
  font-size: 30px;
}

.detail-info-card {
  overflow: hidden;
}

.detail-info-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-info-card div {
  padding: 22px;
}

.detail-info-card h1 {
  font-size: clamp(28px, 4vw, 42px);
}

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

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

.detail-content h2 {
  margin-top: 8px;
  margin-bottom: 14px;
}

.detail-content h2:not(:first-child) {
  margin-top: 28px;
}

.detail-content p {
  margin: 0 0 16px;
  color: var(--muted-strong);
  line-height: 1.95;
  font-size: 16px;
}

.detail-meta-box {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.detail-meta-box dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.detail-meta-box div {
  min-width: 0;
}

.detail-meta-box dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-meta-box dd {
  margin: 4px 0 0;
  color: #111827;
  font-weight: 760;
}

.side-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.side-list a:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.side-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.related-section {
  margin-top: 32px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  color: var(--muted);
}

.footer-inner strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .panel-label,
  .panel-link {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.22);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-shell {
    padding-top: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .hero-art,
  .hero-art img {
    min-height: 320px;
  }

  .hero-controls {
    left: 20px;
    right: 20px;
  }

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

  .search-band-inner,
  .listing-tools,
  .detail-meta-box dl {
    grid-template-columns: 1fr;
  }

  .wide-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .content-section,
  .page-hero,
  .search-band,
  .breadcrumb,
  .detail-hero,
  .detail-layout,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

  .page-hero {
    padding: 32px 22px;
  }

  .movie-grid,
  .ranking-grid,
  .category-grid,
  .mini-movie-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card.compact {
    grid-template-columns: 92px minmax(0, 1fr);
  }

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

@media (max-width: 540px) {
  .site-logo span:last-child {
    font-size: 17px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .movie-grid,
  .ranking-grid,
  .category-grid,
  .mini-movie-row {
    grid-template-columns: 1fr;
  }

  .hero-mini-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .hero-mini-card img {
    width: 76px;
  }

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