:root {
  --cream-50: #fefdfb;
  --tea-50: #fdf8f3;
  --tea-100: #f8eadc;
  --tea-400: #e3a06f;
  --tea-500: #dd854f;
  --tea-600: #d9703c;
  --tea-700: #b45833;
  --warm-50: #faf5f0;
  --warm-100: #f5ebe0;
  --warm-200: #e8d4be;
  --warm-300: #d9b896;
  --warm-500: #be8350;
  --warm-700: #8a583a;
  --warm-800: #714834;
  --warm-900: #5d3d2d;
  --ink: #231914;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 20px 45px rgba(93, 61, 45, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--warm-900);
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--white) 42%, var(--tea-50) 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(245, 235, 224, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--tea-600), var(--warm-700));
  box-shadow: 0 12px 26px rgba(217, 112, 60, 0.24);
}

.brand-name {
  font-family: Georgia, Cambria, "Times New Roman", "Songti SC", serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--warm-800);
  letter-spacing: 0.02em;
}

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

.nav-link,
.mobile-link {
  color: var(--warm-700);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--tea-600);
}

.global-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-search-form input,
.page-search-input {
  width: min(260px, 28vw);
  height: 42px;
  border: 1px solid var(--warm-100);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  color: var(--warm-900);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.global-search-form input:focus,
.page-search-input:focus {
  border-color: var(--tea-500);
  box-shadow: 0 0 0 4px rgba(217, 112, 60, 0.12);
}

.global-search-form button,
.primary-button,
.ghost-button,
.text-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.global-search-form button,
.primary-button {
  min-height: 42px;
  padding: 0 20px;
  color: var(--white);
  background: var(--tea-600);
  box-shadow: 0 14px 28px rgba(217, 112, 60, 0.22);
}

.global-search-form button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background: var(--tea-700);
}

.ghost-button {
  min-height: 42px;
  padding: 0 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--warm-50);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--warm-800);
}

.mobile-nav {
  padding: 10px 24px 20px;
  border-top: 1px solid var(--warm-100);
  background: var(--white);
}

.mobile-link {
  display: block;
  padding: 12px 0;
}

.mobile-search {
  margin-top: 10px;
}

.mobile-search input {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--warm-900);
}

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

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

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

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

.hero-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 120px 24px 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 12px;
  color: var(--tea-400);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", "Songti SC", serif;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.tag-row,
.card-meta,
.compact-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.48);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--tea-400);
}

.quick-search-panel,
.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.quick-search-panel {
  margin-top: -36px;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.quick-search-panel h2,
.section-heading h2,
.ranking-title h2,
.detail-article h2,
.category-overview-card h2 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", "Songti SC", serif;
  color: var(--warm-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.search-panel-form input {
  width: 100%;
  min-width: 0;
}

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

.section-heading p,
.page-hero p,
.category-overview-card p,
.detail-article p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--warm-700);
  line-height: 1.8;
}

.section-more,
.text-button {
  min-height: 40px;
  padding: 0 18px;
  color: var(--tea-700);
  background: var(--tea-100);
}

.section-more:hover,
.text-button:hover {
  color: var(--white);
  background: var(--tea-600);
}

.section-more.full {
  width: 100%;
  margin-top: 18px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 235, 224, 0.95);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 112, 60, 0.24);
  box-shadow: var(--shadow-card);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--warm-100), var(--tea-50));
}

.poster-link img,
.compact-poster img,
.ranking-thumb img,
.detail-poster img,
.category-cover-row img,
.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .poster-link img,
.compact-card:hover .compact-poster img,
.ranking-row:hover .ranking-thumb img {
  transform: scale(1.05);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-meta,
.compact-meta {
  color: var(--warm-500);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3,
.compact-card h3,
.ranking-info h2 {
  margin: 8px 0 0;
  color: var(--warm-900);
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.compact-card h3 a:hover,
.ranking-info h2 a:hover,
.category-overview-card h2 a:hover {
  color: var(--tea-600);
}

.card-body p,
.compact-card p,
.ranking-info p {
  margin: 10px 0 0;
  color: var(--warm-700);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  color: var(--warm-700);
  background: var(--warm-50);
}

.warm-section {
  max-width: none;
  background: linear-gradient(180deg, rgba(253, 248, 243, 0.8), rgba(255, 255, 255, 0));
}

.warm-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.category-tile {
  padding: 18px;
  border: 1px solid var(--warm-100);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.category-thumbs {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 82px 82px;
  gap: 8px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--warm-100);
}

.category-thumbs img:first-child {
  grid-row: span 2;
}

.category-tile span {
  display: block;
  margin-top: 16px;
  color: var(--warm-900);
  font-size: 19px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: var(--warm-700);
  line-height: 1.7;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--warm-900);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.ranking-panel .ranking-title h2 {
  color: var(--white);
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.compact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.compact-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: var(--warm-100);
}

.rank-number {
  position: absolute;
  left: 6px;
  top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  background: var(--tea-600);
}

.ranking-panel .compact-card h3,
.ranking-panel .compact-card p,
.ranking-panel .compact-meta {
  color: var(--white);
}

.ranking-panel .compact-card p,
.ranking-panel .compact-meta {
  opacity: 0.74;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 24px;
  background: radial-gradient(circle at 18% 20%, rgba(217, 112, 60, 0.22), transparent 32%), linear-gradient(135deg, var(--warm-900), #2b1b14);
  color: var(--white);
}

.page-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.small-hero {
  padding-top: 82px;
  padding-bottom: 82px;
}

.category-hero {
  padding-top: 74px;
  padding-bottom: 74px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--warm-700);
  font-size: 14px;
  font-weight: 800;
}

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

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumb.light a:hover {
  color: var(--tea-400);
}

.filter-section {
  padding-top: 42px;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--warm-100);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.filter-toolbar.single {
  justify-content: flex-start;
}

.filter-toolbar .page-search-input {
  width: min(420px, 100%);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 36px;
  border: 1px solid var(--warm-100);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--warm-700);
  cursor: pointer;
  background: var(--white);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: var(--white);
  border-color: var(--tea-600);
  background: var(--tea-600);
}

.empty-state {
  margin-top: 28px;
  padding: 26px;
  border-radius: var(--radius-md);
  color: var(--warm-700);
  text-align: center;
  background: var(--warm-50);
}

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

.category-overview-card {
  padding: 20px;
  border: 1px solid var(--warm-100);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 128px;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--warm-100);
}

.category-overview-card .text-button {
  margin-top: 18px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--warm-100);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--tea-600), var(--warm-700));
}

.ranking-thumb {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: var(--warm-100);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--warm-900);
}

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-bg {
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.12);
  transform: scale(1.04);
}

.detail-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.28) 100%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 72px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.detail-copy h1 {
  color: var(--white);
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  margin-top: 20px;
}

.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.detail-tags span {
  color: var(--white);
  background: rgba(217, 112, 60, 0.72);
}

.detail-copy .primary-button {
  margin-top: 28px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: var(--shadow-card);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(217, 112, 60, 0.32), rgba(0, 0, 0, 0.66));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: var(--tea-700);
  font-size: 34px;
  background: var(--white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.detail-article {
  padding: 28px;
  border: 1px solid var(--warm-100);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.detail-article h2 + p {
  margin-bottom: 26px;
}

.related-grid .small-card .poster-link {
  aspect-ratio: 16 / 11;
}

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

.site-footer {
  margin-top: 48px;
  color: var(--warm-200);
  background: var(--warm-900);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr) auto;
  gap: 28px;
  align-items: center;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-inner p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--tea-400);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid,
  .search-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .two-column-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .desktop-nav,
  .header-inner > .global-search-form {
    display: none;
  }

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

  .header-inner {
    height: 66px;
    padding: 0 18px;
  }

  .hero,
  .hero-content {
    min-height: 74vh;
  }

  .hero-content {
    padding: 100px 18px 84px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-panel {
    grid-template-columns: 1fr;
    margin-left: 18px;
    margin-right: 18px;
    padding: 26px 18px;
  }

  .quick-search-panel,
  .content-section {
    padding-left: 18px;
    padding-right: 18px;
  }

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

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

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

  .ranking-row {
    grid-template-columns: 46px 74px minmax(0, 1fr);
  }

  .ranking-row .text-button {
    grid-column: 2 / -1;
    width: max-content;
  }

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

  .detail-inner {
    padding: 38px 18px 52px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .brand-name {
    font-size: 19px;
  }

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

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

  .hero-tags span,
  .detail-meta span,
  .tag-row span {
    font-size: 12px;
  }

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

  .detail-poster {
    max-width: 220px;
  }

  .detail-one-line {
    font-size: 17px;
  }
}
