:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-50: #fff7ed;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 16px 38px rgba(17, 24, 39, 0.12);
  --shadow-xl: 0 26px 70px rgba(17, 24, 39, 0.22);
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50) 48%, var(--amber-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.94);
  border-bottom: 1px solid rgba(253, 230, 138, 0.9);
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(10deg) scale(1.04);
}

.brand-text {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

.header-search,
.mobile-search,
.wide-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--amber-200);
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 15px;
  border-radius: 999px;
}

.header-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--white);
  font-weight: 700;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.24);
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-400);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(254, 243, 199, 0.75);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--amber-200);
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.mobile-link.subtle {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  height: min(72vh, 760px);
  min-height: 540px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-image,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(251, 191, 36, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.12));
}

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

.hero-content h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-100);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.eyebrow.dark {
  color: var(--amber-600);
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--amber-700);
  background: rgba(255, 251, 235, 0.92);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.primary-btn {
  min-height: 46px;
  padding: 12px 26px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 44px rgba(245, 158, 11, 0.4);
}

.ghost-btn {
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
  font-size: 2.2rem;
  line-height: 1;
}

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

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  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.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--amber-400);
}

.content-section {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 56px 0;
}

.intro-search,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.intro-card,
.rank-panel,
.side-card,
.detail-article,
.category-overview-card {
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.intro-card {
  padding: clamp(26px, 5vw, 48px);
}

.intro-card h2,
.section-heading h2,
.rank-panel h2,
.side-card h2,
.detail-article h2,
.category-overview-card h2 {
  margin: 0;
  color: var(--gray-800);
  line-height: 1.18;
}

.intro-card h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
}

.intro-card p {
  max-width: 760px;
  color: var(--gray-600);
  font-size: 1.1rem;
}

.wide-search {
  max-width: 700px;
  margin-top: 28px;
}

.wide-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
}

.wide-search button {
  padding: 14px 24px;
}

.rank-panel {
  padding: 24px;
}

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

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.section-more,
.text-link {
  color: var(--amber-600);
}

.section-more:hover,
.text-link:hover {
  color: var(--orange-600);
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: var(--radius-xl);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.category-tile img,
.category-tint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  z-index: -2;
  transition: transform 0.35s ease;
}

.category-tint {
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72));
}

.category-tile:hover img {
  transform: scale(1.1);
}

.category-tile strong {
  font-size: 1.2rem;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 0.88rem;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.68));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.movie-badge,
.movie-type {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 9px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-badge {
  top: 10px;
  right: 10px;
  background: rgba(245, 158, 11, 0.92);
}

.movie-type {
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.68);
}

.movie-info {
  padding: 15px;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 0.78rem;
}

.movie-meta span:last-child {
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-info h3 {
  min-height: 3rem;
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--amber-600);
}

.movie-info p {
  min-height: 3.2rem;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list span {
  min-height: 24px;
  padding: 2px 8px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-size: 0.76rem;
}

.stack-list,
.side-list {
  display: grid;
  gap: 14px;
}

.mini-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.rank-index {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  font-size: 0.8rem;
  font-weight: 900;
}

.mini-cover {
  width: 86px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mini-info strong {
  color: var(--gray-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-info em,
.mini-info small {
  color: var(--gray-500);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-info small {
  color: var(--gray-600);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 74% 25%, rgba(251, 191, 36, 0.28), transparent 32%), linear-gradient(135deg, #18181b, #7c2d12);
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
}

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

.page-hero-content {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 62px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 14px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.2fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(253, 230, 138, 0.85);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
  align-items: center;
}

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

.overview-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: var(--amber-100);
}

.category-overview-card h2 {
  font-size: 1.6rem;
}

.category-overview-card p {
  color: var(--gray-600);
}

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

.detail-hero {
  min-height: 600px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop span {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62) 46%, rgba(0, 0, 0, 0.25)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(255, 251, 235, 1));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 54px 0 80px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  background: var(--amber-100);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.lead-text {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

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

.detail-main {
  padding-top: 46px;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  background: #050505;
}

.player-cover {
  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);
  background: radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.28), rgba(0, 0, 0, 0.64) 48%, rgba(0, 0, 0, 0.82));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 22px 44px rgba(245, 158, 11, 0.42);
  font-size: 2rem;
  text-indent: 4px;
}

.player-cover strong {
  font-size: 1.25rem;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  margin-top: 30px;
  align-items: start;
}

.detail-article {
  padding: clamp(24px, 4vw, 38px);
}

.detail-article section + section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.detail-article h2,
.side-card h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.detail-article p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1.05rem;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--gray-500);
}

.side-card dd {
  margin: 0;
  color: var(--gray-800);
  font-weight: 700;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid rgba(253, 230, 138, 0.95);
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.5fr) minmax(160px, 0.5fr);
  gap: 32px;
}

.footer-brand p {
  max-width: 560px;
  color: var(--gray-600);
}

.footer-logo .brand-mark {
  width: 38px;
  height: 38px;
}

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links strong {
  color: var(--gray-800);
}

.footer-links a {
  color: var(--gray-600);
}

.footer-links a:hover {
  color: var(--amber-600);
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
  }

  .header-search input {
    width: 170px;
  }

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

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

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

  .menu-toggle {
    display: inline-block;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    padding: 70px 0 80px;
    justify-content: flex-end;
  }

  .hero-arrow {
    display: none;
  }

  .intro-search,
  .split-section,
  .detail-content-grid,
  .footer-inner,
  .detail-layout,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

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

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

  .rank-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .content-section,
  .page-hero-content,
  .detail-hero-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 24px, var(--container));
  }

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

  .hero-carousel {
    min-height: 580px;
  }

  .hero-content h1,
  .detail-copy h1 {
    letter-spacing: -0.03em;
  }

  .hero-tags span,
  .tag-list span {
    font-size: 0.76rem;
  }

  .hero-actions,
  .wide-search,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn,
  .wide-search button,
  .mobile-search button {
    width: 100%;
  }

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

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

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

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

  .detail-hero-inner {
    padding-bottom: 46px;
  }

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

  .play-icon {
    width: 68px;
    height: 68px;
  }
}
