* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-900: #7c2d12;
  --brown-950: #2a1205;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(124, 45, 18, 0.12);
  --shadow-strong: 0 24px 60px rgba(17, 24, 39, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.16), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 44%, #fffaf0 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.94));
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1200px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--amber-600);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  padding: 9px 14px;
  color: var(--gray-700);
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--amber-600);
  background: rgba(245, 158, 11, 0.12);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--gray-700);
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

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

.mobile-link {
  display: flex;
  margin-top: 8px;
}

.mobile-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mobile-category-row a {
  padding: 7px 10px;
  color: var(--amber-600);
  background: var(--amber-100);
  border-radius: 999px;
  font-size: 13px;
}

main {
  padding-top: 68px;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--brown-950);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(245, 158, 11, 0.48), transparent 28rem),
    linear-gradient(90deg, rgba(42, 18, 5, 0.92), rgba(42, 18, 5, 0.62) 48%, rgba(42, 18, 5, 0.78));
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 58px;
  align-items: center;
  color: var(--white);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 16px 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--amber-600);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero .eyebrow,
.page-hero .eyebrow,
.detail-info .eyebrow {
  color: var(--amber-300);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: var(--amber-700, #b45309);
  background: var(--amber-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero .chip,
.detail-info .chip {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.28);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.text-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--amber-600);
  background: var(--amber-100);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.hero-poster span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 58px;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-poster:hover span {
  opacity: 1;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-controls button {
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-size: 24px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
  width: 28px;
  background: var(--amber-300);
}

.home-search-section,
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px;
}

.home-search-section {
  text-align: center;
}

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

.center-heading {
  display: block;
  max-width: 760px;
  margin: 0 auto 26px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.center-heading p {
  margin: 10px 0 0;
  color: var(--gray-500);
}

.section-link {
  color: var(--amber-600);
  font-weight: 800;
}

.home-search {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--gray-900);
  background: var(--white);
}

.home-search input {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
}

.home-search button {
  border: 0;
  min-width: 130px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

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

.category-card {
  min-height: 220px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.category-card span {
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  color: var(--gray-500);
  margin: 10px 0 18px;
}

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

.category-preview img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.warm-section {
  max-width: none;
  margin: 0;
  padding-left: max(20px, calc((100vw - 1200px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1200px) / 2 + 20px));
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.82), rgba(254, 243, 199, 0.74));
}

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

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72));
}

.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 38px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  right: 12px;
  background: rgba(245, 158, 11, 0.92);
}

.rank-badge {
  left: 12px;
  background: rgba(17, 24, 39, 0.78);
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.card-body h2 a:hover,
.rank-content h2 a:hover {
  color: var(--amber-600);
}

.card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-500);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.meta-row span,
.rank-meta span,
.detail-meta span {
  padding: 4px 8px;
  background: var(--amber-100);
  border-radius: 999px;
}

.genre-line {
  margin-top: 10px;
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 700;
}

.compact-card .card-body h2 {
  font-size: 16px;
}

.compact-card .card-body p,
.compact-card .genre-line {
  display: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 110px max(20px, calc((100vw - 1200px) / 2 + 20px)) 82px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 12%, rgba(252, 211, 77, 0.45), transparent 32rem),
    linear-gradient(135deg, var(--brown-950), var(--orange-900));
}

.slim-hero {
  padding-bottom: 68px;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.small-actions {
  margin-top: 22px;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(140px, 0.5fr));
  gap: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
}

.empty-state {
  margin: 30px 0 0;
  padding: 22px;
  text-align: center;
  color: var(--gray-500);
  background: var(--white);
  border-radius: var(--radius-lg);
}

.category-overview-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-media {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-overview-media img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.category-overview-card p {
  max-width: 640px;
  color: var(--gray-500);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 62px 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 15px;
  font-weight: 900;
}

.rank-poster img {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.rank-content h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.rank-content p {
  margin: 0 0 10px;
  color: var(--gray-500);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--brown-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.24;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.15);
  transform: scale(1.03);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.36), transparent 32rem),
    linear-gradient(90deg, rgba(42, 18, 5, 0.96), rgba(42, 18, 5, 0.72));
}

.detail-layout {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  min-height: 600px;
  margin: 0 auto;
  padding: 70px 20px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.74);
}

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

.detail-info h1 {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 72px);
}

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

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

.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  max-width: 1120px;
  margin: -44px auto 0;
  padding: 0 20px 42px;
  position: relative;
  z-index: 4;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

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

.movie-video {
  object-fit: contain;
  background: #050505;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.74));
  border: 0;
  cursor: pointer;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.34);
  font-size: 34px;
}

.player-cover strong {
  padding: 0 20px;
  text-align: center;
  font-size: clamp(20px, 4vw, 34px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 26px;
}

.story-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

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

.info-list div {
  padding: 14px;
  background: var(--amber-50);
  border-radius: 16px;
}

.info-list dt {
  color: var(--gray-500);
  font-weight: 800;
}

.info-list dd {
  margin: 5px 0 0;
  color: var(--gray-900);
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--brown-950), var(--orange-900));
}

.footer-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -150px;
  top: -120px;
  background: rgba(245, 158, 11, 0.25);
  filter: blur(10px);
  border-radius: 999px;
}

.footer-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 20px 34px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-logo {
  color: var(--amber-300);
  font-size: 24px;
}

.footer-group {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-group h2 {
  margin: 0 0 8px;
  color: var(--amber-300);
  font-size: 18px;
}

.footer-group a {
  color: rgba(255, 255, 255, 0.74);
}

.footer-group a:hover {
  color: var(--white);
}

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

.footer-cats h2 {
  grid-column: 1 / -1;
}

.footer-bottom {
  position: relative;
  padding: 18px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .movie-grid,
  .compact-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 280px;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 44px;
  }

  .hero-poster {
    min-height: 320px;
    max-width: 240px;
    transform: none;
  }

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

  .section-heading {
    display: block;
  }

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

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

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

  .detail-layout {
    min-height: auto;
  }

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

  .ranking-row {
    grid-template-columns: 44px 78px 1fr;
  }

  .ranking-row .text-button {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

@media (max-width: 560px) {
  .header-inner {
    padding: 0 14px;
  }

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

  .hero {
    min-height: 720px;
  }

  .hero-copy h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .home-search {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .home-search button {
    min-height: 46px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .filter-panel,
  .info-list {
    grid-template-columns: 1fr;
  }

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

  .rank-poster {
    display: none;
  }

  .player-section {
    margin-top: -18px;
  }

  .player-frame {
    border-radius: 18px;
  }
}
