:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --shadow-card: 0 18px 50px rgba(28, 25, 23, 0.14);
  --shadow-soft: 0 10px 30px rgba(28, 25, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-800);
  background: linear-gradient(180deg, #fffaf2 0%, var(--stone-50) 36%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(120, 113, 108, 0.18);
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--stone-900);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--green-700));
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}

.brand-text {
  font-size: 1.2rem;
  background: linear-gradient(90deg, #92400e, var(--green-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav > a,
.nav-category-strip a,
.mobile-nav a,
.header-search-button {
  border-radius: 12px;
  color: var(--stone-700);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav > a {
  padding: 10px 14px;
  font-weight: 700;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-category-strip a:hover,
.mobile-nav a:hover {
  color: var(--green-700);
  background: #ecfdf5;
}

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

.nav-category-strip a {
  padding: 8px 10px;
  font-size: 0.92rem;
}

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

.header-search-button,
.mobile-menu-button {
  border: 0;
  cursor: pointer;
}

.header-search-button {
  padding: 10px 16px;
  color: #ffffff;
  background: var(--green-600);
  font-weight: 800;
}

.header-search-button:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--stone-800);
  background: var(--stone-100);
  font-size: 1.4rem;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  background: var(--stone-50);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--stone-950);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(12, 10, 9, 0.88) 0%, rgba(12, 10, 9, 0.58) 44%, rgba(12, 10, 9, 0.18) 100%),
    linear-gradient(0deg, rgba(28, 25, 23, 0.84) 0%, transparent 42%);
}

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

.hero-content > * {
  max-width: 720px;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.hero p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-genre-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-genre-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.text-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--green-600);
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.24);
}

.primary-button:hover {
  background: var(--green-700);
  transform: translateY(-2px);
}

.ghost-button {
  min-height: 46px;
  padding: 0 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--green-500);
}

.home-search-band {
  width: min(1160px, calc(100% - 32px));
  margin: -48px auto 36px;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.home-search-band h2,
.home-search-band p {
  margin: 0;
}

.home-search-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.home-search-band p {
  margin-top: 8px;
  color: var(--stone-600);
  line-height: 1.8;
}

.content-section,
.page-main,
.detail-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

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

.compact-section {
  padding-top: 28px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.detail-side h2,
.search-dialog h2 {
  margin: 0;
  color: var(--stone-900);
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.section-kicker {
  margin-bottom: 8px;
  color: #ffffff;
}

.section-more,
.text-button {
  color: var(--green-700);
  background: #dcfce7;
}

.section-more {
  padding: 10px 16px;
  white-space: nowrap;
}

.text-button {
  padding: 10px 14px;
}

.section-more:hover,
.text-button:hover {
  transform: translateY(-1px);
  background: #bbf7d0;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.18);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-200), #dcfce7);
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.play-chip {
  right: 10px;
  bottom: 10px;
  min-height: 28px;
  padding: 0 10px;
  background: rgba(22, 163, 74, 0.94);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
}

.card-body {
  padding: 14px;
}

.card-meta,
.detail-meta,
.horizontal-rank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0 6px;
  color: var(--stone-900);
  font-size: 1rem;
  line-height: 1.35;
}

.card-body h3 a:hover,
.horizontal-card h3 a:hover,
.side-links a:hover,
.category-samples a:hover {
  color: var(--green-700);
}

.card-body p,
.horizontal-card p,
.category-overview-card p,
.page-hero p,
.detail-info p,
.detail-article p,
.site-footer p {
  color: var(--stone-600);
  line-height: 1.75;
}

.card-body p {
  min-height: 4.9em;
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.tag-row span {
  padding: 5px 8px;
  color: var(--green-700);
  background: #ecfdf5;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid rgba(120, 113, 108, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile {
  display: block;
  padding: 20px;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 163, 74, 0.28);
  box-shadow: 0 22px 50px rgba(28, 25, 23, 0.14);
}

.category-tile span,
.category-overview-title {
  display: block;
  color: var(--stone-900);
  font-size: 1.12rem;
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 0;
  color: var(--stone-600);
  line-height: 1.7;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 144px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(28, 25, 23, 0.1);
}

.horizontal-cover {
  height: 120px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--stone-100);
}

.horizontal-card h3 {
  margin: 8px 0 6px;
  color: var(--stone-900);
  font-size: 1.05rem;
}

.horizontal-card p {
  margin: 0;
  font-size: 0.9rem;
}

.horizontal-rank strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--green-700));
}

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

.page-main {
  padding: 34px 0 20px;
}

.page-hero {
  padding: 56px;
  border-radius: 34px;
  color: var(--stone-900);
  background:
    radial-gradient(circle at 84% 10%, rgba(34, 197, 94, 0.2), transparent 26%),
    linear-gradient(135deg, #ffffff, #fff7ed 54%, #ecfdf5);
  box-shadow: var(--shadow-card);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 1.08rem;
}

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

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

.category-samples,
.side-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-samples {
  margin: 16px 0;
}

.category-samples a,
.side-links a,
.footer-links a {
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--stone-100);
}

.category-samples a {
  padding: 8px 10px;
  font-size: 0.9rem;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-input,
.filter-select,
.global-search-input {
  width: 100%;
  border: 1px solid rgba(120, 113, 108, 0.24);
  border-radius: 14px;
  color: var(--stone-800);
  background: var(--stone-50);
  outline: none;
}

.filter-input,
.filter-select {
  height: 48px;
  padding: 0 14px;
}

.filter-input:focus,
.filter-select:focus,
.global-search-input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.detail-main {
  padding: 28px 0 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--stone-500);
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 18%, rgba(22, 163, 74, 0.2), transparent 28%),
    linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow-card);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 2 / 3;
  background: var(--stone-100);
  box-shadow: 0 20px 50px rgba(28, 25, 23, 0.16);
}

.detail-info h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #ffffff;
}

.detail-info p {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: 1.08rem;
}

.player-section {
  padding: 34px 0 6px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--stone-950);
  box-shadow: 0 30px 80px rgba(12, 10, 9, 0.28);
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(34, 197, 94, 0.28), transparent 28%),
    rgba(12, 10, 9, 0.42);
  cursor: pointer;
}

.play-cover.is-hidden {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 18px 44px rgba(22, 163, 74, 0.34);
  font-size: 2rem;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 34px 0 8px;
}

.detail-article,
.detail-side {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-article {
  padding: 30px;
}

.detail-side {
  padding: 24px;
  align-self: start;
}

.detail-article h2,
.detail-side h2 {
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.detail-article p {
  margin: 0 0 24px;
  font-size: 1.02rem;
}

.detail-genre-row span {
  padding: 8px 11px;
  color: var(--stone-700);
  background: var(--stone-100);
}

.side-links {
  flex-direction: column;
}

.side-links a {
  padding: 10px 12px;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 16px 24px;
  background: rgba(12, 10, 9, 0.66);
  backdrop-filter: blur(10px);
}

.search-panel.is-open {
  display: flex;
}

.search-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 130px);
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.search-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--stone-100);
  color: var(--stone-700);
  cursor: pointer;
  font-size: 1.5rem;
}

.global-search-input {
  height: 54px;
  margin: 18px 0;
  padding: 0 16px;
  font-size: 1rem;
}

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

.search-result-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: var(--stone-50);
}

.search-result-item img {
  width: 64px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--stone-100);
}

.search-result-item h3 {
  margin: 0 0 5px;
  color: var(--stone-900);
  font-size: 1rem;
}

.search-result-item p {
  margin: 0;
  color: var(--stone-600);
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer {
  margin-top: 56px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--stone-950);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.25rem;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links a {
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(34, 197, 94, 0.28);
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
}

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

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

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

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

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

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    height: 74vh;
    min-height: 560px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 90px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-band {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .category-grid,
  .category-overview-grid,
  .horizontal-grid,
  .ranking-list,
  .detail-content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

  .page-hero {
    padding: 34px 24px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .content-section,
  .page-main,
  .detail-main,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1240px);
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero-content {
    width: min(100% - 24px, 1240px);
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .home-search-band {
    width: min(100% - 24px, 1160px);
    padding: 22px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body p {
    display: none;
  }

  .detail-hero,
  .detail-article,
  .detail-side {
    padding: 20px;
    border-radius: 24px;
  }

  .movie-player {
    border-radius: 20px;
  }

  .search-dialog {
    padding: 22px;
  }
}
