:root {
  --cream-50: #fffaf0;
  --cream-100: #fff9f0;
  --cream-200: #f5f1e8;
  --cream-300: #e8dcc8;
  --warm-300: #f8c27a;
  --warm-400: #f4a460;
  --warm-500: #e89452;
  --soft-500: #c8bfb4;
  --soft-600: #b8ada0;
  --soft-700: #a8a29e;
  --soft-800: #988c84;
  --soft-900: #887e7a;
  --ink: #2c2521;
  --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-soft-lg: 0 10px 40px -5px rgba(0, 0, 0, 0.10), 0 20px 25px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream-50), var(--white) 36%, var(--cream-50));
}

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

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

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.95), rgba(255, 250, 240, 0.08));
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.site-nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--soft-900);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cream-300), var(--warm-400));
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.1);
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  color: var(--soft-800);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--warm-400);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--cream-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--soft-900);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  background: rgba(255, 255, 255, 0.94);
}

.mobile-link {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
  color: var(--soft-800);
  font-weight: 600;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--warm-400);
  background: var(--cream-100);
}

.hero {
  position: relative;
  height: 650px;
  overflow: hidden;
  background: var(--ink);
}

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 72px;
}

.hero-copy {
  max-width: 680px;
  color: var(--white);
  animation: fadeIn 0.5s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--warm-400);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
}

.hero-line {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.5vw, 22px);
  line-height: 1.7;
}

.hero-tags,
.tag-row,
.detail-meta,
.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin: 24px 0 32px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.rank-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1;
}

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

.hero-actions,
.category-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-button,
.glass-button,
.glass-dark-button,
.line-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.primary-button {
  color: var(--white);
  background: var(--warm-400);
  box-shadow: var(--shadow-soft);
}

.hero .primary-button {
  color: var(--warm-400);
  background: var(--white);
}

.primary-button:hover,
.line-button:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--warm-500);
  color: var(--white);
  box-shadow: var(--shadow-soft-lg);
}

.hero .primary-button:hover {
  color: var(--warm-500);
  background: var(--cream-100);
}

.glass-button,
.glass-dark-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}

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

.glass-dark-button {
  color: var(--soft-900);
  background: rgba(255, 255, 255, 0.72);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.06);
}

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

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

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

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

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

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  transform: translateX(-50%);
}

.hero-thumb {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 8px;
  border-radius: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  overflow: hidden;
  opacity: 0.74;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.hero-thumb.active,
.hero-thumb:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.26);
}

.hero-thumb img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.hero-thumb span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.quick-search-panel,
.content-section {
  padding: 64px 0 0;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 28px;
  align-items: center;
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.detail-side h2 {
  color: var(--soft-900);
}

.quick-search-panel h2,
.section-heading h2 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.quick-search-panel p,
.section-heading p,
.page-hero p,
.category-overview-card p,
.detail-article p,
.detail-side,
.rank-content p {
  color: var(--soft-600);
  line-height: 1.75;
}

.search-box,
.filter-panel {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.search-box input,
.filter-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--soft-900);
  background: var(--cream-100);
  border-radius: 16px;
  padding: 0 16px;
}

.search-box button {
  border: 0;
  border-radius: 16px;
  padding: 0 24px;
  color: var(--white);
  background: var(--warm-400);
  font-weight: 700;
  cursor: pointer;
}

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

.section-heading .eyebrow,
.quick-search-panel .eyebrow,
.page-hero .eyebrow {
  color: var(--warm-500);
  background: var(--cream-200);
}

.section-more,
.line-button {
  color: var(--warm-500);
  background: var(--cream-100);
}

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

.category-card {
  position: relative;
  min-height: 190px;
  border-radius: 24px;
  overflow: hidden;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
}

.category-card img,
.category-card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.74));
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-card strong {
  bottom: 70px;
  font-size: 22px;
}

.category-card em {
  bottom: 18px;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.80);
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft-lg);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--cream-200);
}

.movie-card.rail .poster-link,
.movie-card.large .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  transition: opacity 0.3s ease;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--warm-400);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .play-dot {
  opacity: 1;
}

.movie-card:hover .play-dot {
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--warm-400);
  font-weight: 800;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--soft-900);
  font-weight: 800;
  line-height: 1.38;
  transition: color 0.3s ease;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--warm-400);
}

.movie-meta {
  margin: 8px 0;
  color: var(--soft-500);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--soft-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: var(--warm-500);
  background: var(--cream-100);
}

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x proximity;
}

.movie-rail .movie-card {
  scroll-snap-align: start;
}

.feature-band {
  margin-top: 72px;
  padding: 72px 0;
  background: linear-gradient(135deg, var(--cream-100), var(--cream-200));
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 42px;
  align-items: center;
}

.feature-grid h2 {
  margin: 16px 0;
  color: var(--soft-900);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
}

.feature-grid p {
  color: var(--soft-600);
  line-height: 1.85;
}

.feature-poster {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-soft-lg);
}

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

.rank-preview,
.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 76px 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft-lg);
}

.rank-cover img {
  width: 76px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-number {
  color: var(--warm-400);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-title {
  display: inline-block;
  color: var(--soft-900);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
}

.rank-title:hover {
  color: var(--warm-400);
}

.rank-content p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-tags span,
.detail-meta span {
  color: var(--soft-800);
  background: var(--cream-100);
}

.page-main {
  padding-top: 92px;
}

.page-hero {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 30px;
}

.page-hero.small {
  min-height: 260px;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.1;
}

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

.category-page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 72px 42px;
  background: linear-gradient(135deg, var(--cream-100), var(--cream-300));
  box-shadow: var(--shadow-soft);
}

.category-overview-grid {
  display: grid;
  gap: 20px;
  padding-bottom: 72px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-cover img {
  width: 220px;
  height: 150px;
  border-radius: 22px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  color: var(--soft-900);
}

.category-overview-card h2 a:hover {
  color: var(--warm-400);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.mini-links a {
  color: var(--warm-500);
  background: var(--cream-100);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

.filter-panel {
  align-items: center;
  margin-bottom: 28px;
}

.filter-panel.large {
  max-width: 760px;
}

.filter-panel label {
  color: var(--soft-900);
  font-weight: 800;
  white-space: nowrap;
}

.filter-panel input {
  min-height: 48px;
}

.empty-state {
  display: none;
  padding: 48px 0;
  color: var(--soft-600);
  text-align: center;
}

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

.detail-main {
  padding-top: 0;
}

.detail-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--ink);
}

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

.detail-bg-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.10));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 650px;
  padding-top: 88px;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-soft-lg);
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-copy h1 {
  max-width: 900px;
  margin: 18px 0 16px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.7;
}

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

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  margin-top: -72px;
  position: relative;
  z-index: 5;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111111;
  box-shadow: var(--shadow-soft-lg);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--warm-400);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.42));
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.player-cover span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--warm-400);
  background: rgba(255, 255, 255, 0.94);
  font-size: 38px;
  box-shadow: var(--shadow-soft-lg);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-top: 54px;
}

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

.detail-article {
  padding: 34px;
}

.detail-article h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 28px;
  font-size: 17px;
}

.detail-side {
  height: fit-content;
  padding: 28px;
}

.detail-side h2 {
  margin-top: 0;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 16px;
}

.detail-side dt {
  color: var(--soft-700);
}

.detail-side dd {
  margin: 0;
  color: var(--soft-900);
  font-weight: 700;
}

.side-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.side-links a {
  padding: 13px 14px;
  border-radius: 16px;
  color: var(--warm-500);
  background: var(--cream-100);
  font-weight: 700;
}

.site-footer {
  margin-top: 80px;
  padding: 54px 0 26px;
  background: linear-gradient(180deg, var(--cream-100), var(--cream-200));
  border-top: 1px solid var(--cream-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--soft-900);
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: var(--soft-600);
  line-height: 1.75;
  font-size: 14px;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--warm-400);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  color: var(--soft-600);
  border-top: 1px solid var(--cream-300);
  font-size: 14px;
}

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

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

  .hero-thumbs {
    grid-template-columns: repeat(3, 1fr);
    max-width: 720px;
  }

  .hero-thumb:nth-child(n + 4) {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .site-header.menu-open .mobile-panel {
    display: block;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    padding-top: 84px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 24px;
  }

  .hero-thumbs {
    display: none;
  }

  .quick-search-panel,
  .feature-grid,
  .detail-hero-inner,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .rank-number {
    position: absolute;
    left: 22px;
    top: 22px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--warm-400);
    font-size: 16px;
  }

  .rank-row {
    position: relative;
  }

  .rank-row .line-button {
    grid-column: 1 / -1;
  }

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

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

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

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

  .category-cover img {
    width: 100%;
    height: 230px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

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

  .hero {
    height: 590px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-actions,
  .category-actions,
  .search-box,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box input,
  .filter-panel input {
    min-height: 48px;
  }

  .category-grid,
  .movie-grid {
    gap: 12px;
  }

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

  .movie-title {
    font-size: 15px;
  }

  .movie-desc {
    font-size: 13px;
  }

  .detail-copy h1 {
    font-size: 32px;
  }

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

  .detail-article,
  .detail-side {
    padding: 22px;
  }

  .player-wrap {
    border-radius: 22px;
  }

  .player-cover span {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
