:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 22px 60px rgba(244, 63, 94, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 46%, var(--gray-50) 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(6deg);
}

.brand-name {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1;
  background: linear-gradient(90deg, var(--rose-600), var(--orange-500));
  background-clip: text;
  color: transparent;
}

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

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

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero-section {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  background: linear-gradient(100deg, var(--rose-100) 0%, var(--orange-50) 48%, var(--amber-100) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(rgba(244, 63, 94, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 63, 94, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-slider {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 580px;
  padding: 64px 20px 86px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 54px;
  min-height: 430px;
  animation: fadeUp 0.6s ease both;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 12px 0 10px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.15;
  color: var(--gray-900);
}

.hero-copy h2 a {
  background: linear-gradient(90deg, var(--rose-600), var(--orange-500));
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-tags,
.detail-meta,
.tag-row,
.filter-pills,
.hero-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.filter-pills button,
.hero-category-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--gray-700);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.secondary-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.primary-button {
  padding: 0 26px;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 14px 32px rgba(244, 63, 94, 0.32);
}

.secondary-button {
  padding: 0 24px;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--gray-200);
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-poster-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: var(--white);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.24);
  aspect-ratio: 3 / 4;
  transform: rotate(2deg);
}

.hero-poster-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.42));
}

.hero-poster-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-play,
.play-mark {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.hero-play {
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.hero-dots {
  position: absolute;
  left: 20px;
  bottom: 38px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.25);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
}

.hero-category-row {
  position: relative;
  max-width: var(--max-width);
  margin: -34px auto 0;
  padding: 0 20px 34px;
}

.hero-category-row a {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.12);
}

.section-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 20px;
}

.compact-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 8px 0 8px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--gray-600);
  max-width: 760px;
}

.text-link {
  min-height: auto;
  color: var(--rose-600);
  font-size: 15px;
}

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

.featured-card a {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 430px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card a:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card a:hover img {
  transform: scale(1.08);
}

.featured-shade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, 0.78) 100%);
}

.featured-shade span {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--rose-500);
  font-size: 12px;
  font-weight: 800;
}

.featured-shade h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.18;
}

.featured-shade p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.warm-band {
  background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

.dark-band {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.light-heading h2,
.light-heading p {
  color: var(--white);
}

.light-heading p {
  opacity: 0.72;
}

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.25);
  box-shadow: var(--shadow-hover);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.78);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.play-mark {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card-link:hover .play-mark {
  opacity: 1;
  transform: translateY(0);
}

.movie-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.movie-meta-line {
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-small .movie-card-body p {
  -webkit-line-clamp: 2;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
  background: var(--gray-100);
}

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

.ranking-item a {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.ranking-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
}

.ranking-item img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-copy h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.ranking-copy p,
.ranking-copy div {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-copy div {
  margin-top: 6px;
  color: var(--gray-500);
  font-size: 13px;
}

.ranking-arrow {
  color: var(--rose-600);
  font-size: 32px;
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  overflow: hidden;
  min-height: 150px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile img {
  width: 140px;
  height: 118px;
  object-fit: cover;
  border-radius: 16px;
}

.category-tile h2,
.category-overview-copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-tile p,
.category-overview-copy p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.category-overview-card a {
  display: block;
  padding: 0;
}

.category-preview-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 170px;
  overflow: hidden;
}

.category-preview-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-copy {
  padding: 22px;
}

.category-overview-copy span {
  display: inline-flex;
  margin-top: 14px;
  color: var(--rose-600);
  font-weight: 900;
}

.compact-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 170px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.compact-card {
  color: var(--white);
}

.compact-card img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

.compact-card:hover img {
  transform: scale(1.04);
}

.compact-card span {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 20px;
  background: linear-gradient(100deg, var(--rose-100), var(--orange-50), var(--amber-100));
}

.page-hero > div {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero-soft::before,
.library-hero::before,
.ranking-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.28), transparent 25%), radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.24), transparent 28%);
}

.tool-bar {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.sticky-tool-bar {
  position: sticky;
  top: 92px;
  z-index: 12;
  backdrop-filter: blur(14px);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.filter-pills button {
  cursor: pointer;
  border: 1px solid var(--gray-200);
}

.filter-pills button.is-active,
.filter-pills button:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  color: var(--gray-600);
  text-align: center;
  font-weight: 800;
}

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

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

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: blur(8px) scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.42));
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 74px 20px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
  aspect-ratio: 3 / 4;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--amber-400);
}

.detail-copy .section-kicker {
  color: var(--amber-400);
}

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(34px, 6vw, 66px);
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.24), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
  font-size: 34px;
}

.player-overlay strong {
  font-size: 20px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding-top: 0;
}

.content-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-panel p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .hero-poster-panel {
    max-width: 360px;
    margin: 0 auto;
  }

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

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

  .detail-inner {
    padding-top: 48px;
  }

  .detail-poster {
    width: min(300px, 80vw);
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-section,
  .hero-slider {
    min-height: auto;
  }

  .hero-slider {
    padding: 40px 16px 82px;
  }

  .hero-slide {
    gap: 28px;
  }

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

  .hero-copy h2 {
    font-size: 28px;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
  }

  .hero-dots {
    left: 16px;
    bottom: 34px;
  }

  .section-wrap,
  .compact-section {
    padding: 48px 16px;
  }

  .featured-grid,
  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .related-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .category-tile {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .category-tile img {
    width: 108px;
    height: 104px;
  }

  .ranking-item a {
    grid-template-columns: 46px 68px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-arrow {
    display: none;
  }

  .ranking-number {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .ranking-item img {
    width: 68px;
    height: 68px;
  }

  .ranking-copy h2 {
    font-size: 17px;
  }

  .page-hero {
    padding: 58px 16px;
  }

  .detail-inner {
    padding: 42px 16px;
    gap: 28px;
  }

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

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

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
