:root {
  --color-amber-50: #fffbeb;
  --color-amber-100: #fef3c7;
  --color-amber-200: #fde68a;
  --color-amber-300: #fcd34d;
  --color-amber-500: #f59e0b;
  --color-amber-600: #d97706;
  --color-amber-700: #b45309;
  --color-amber-800: #92400e;
  --color-amber-900: #78350f;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-500: #64748b;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 32px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-slate-900);
  background: linear-gradient(180deg, var(--color-amber-50), #ffffff 420px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--color-amber-900), var(--color-amber-800), var(--color-amber-900));
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.25);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  min-width: max-content;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-amber-500), var(--color-amber-700));
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease;
}

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

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.brand-text em {
  color: var(--color-amber-200);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

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

.main-nav a {
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.header-search input {
  width: 160px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 8px 10px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--color-amber-900);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  height: 610px;
  overflow: hidden;
  background: var(--color-amber-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 20%, rgba(245, 158, 11, 0.42), transparent 30%),
    linear-gradient(90deg, rgba(120, 53, 15, 0.95), rgba(146, 64, 14, 0.80) 48%, rgba(15, 23, 42, 0.56));
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 100%;
  color: #ffffff;
}

.hero-copy {
  max-width: 720px;
  padding: 48px 0;
  animation: fadeIn 0.8s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--color-amber-200);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--color-amber-100);
  font-size: clamp(18px, 2vw, 24px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-light {
  color: var(--color-amber-900);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.18);
}

.btn-outline-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-amber-500), var(--color-amber-700));
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.22);
}

.hero-search {
  display: flex;
  max-width: 580px;
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 12px 18px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--color-amber-900);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.page-hero {
  padding: 72px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 76% 20%, rgba(245, 158, 11, 0.48), transparent 28%),
    linear-gradient(135deg, var(--color-amber-900), var(--color-amber-700));
}

.page-hero h1 {
  max-width: 820px;
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--color-amber-100);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--color-slate-500);
  font-size: 14px;
  font-weight: 700;
}

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

.breadcrumb-light {
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumb-light a:hover {
  color: #ffffff;
}

.section-block {
  padding: 64px 0;
}

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

.section-heading h2 {
  margin: 8px 0 6px;
  color: var(--color-slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--color-slate-500);
  font-size: 17px;
}

.section-link {
  color: var(--color-amber-700);
  font-weight: 900;
}

.centered-heading {
  justify-content: center;
  text-align: center;
}

.compact-heading {
  align-items: start;
  margin-bottom: 20px;
}

.warm-section {
  background: linear-gradient(90deg, var(--color-amber-100), #fff7ed);
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.poster-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at top left, rgba(252, 211, 77, 0.68), transparent 40%),
    linear-gradient(135deg, var(--color-amber-800), var(--color-slate-900));
}

.poster-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-image.is-hidden {
  display: none;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.card-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.card-badge-left {
  left: 12px;
}

.card-badge-right {
  right: 12px;
  background: var(--color-amber-500);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--color-slate-900);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--color-amber-700);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-slate-500);
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--color-amber-800);
  background: var(--color-amber-100);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-compact .card-body {
  padding: 13px;
}

.movie-card-compact .card-body h3 {
  min-height: 42px;
  font-size: 16px;
}

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

.category-card,
.category-overview-card,
.content-card,
.filter-panel,
.search-panel {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.category-card {
  display: block;
  min-height: 210px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-count {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-amber-600);
  font-size: 12px;
  font-weight: 900;
}

.category-card h3,
.category-overview-card h2 {
  margin: 16px 0 8px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--color-slate-500);
  font-size: 14px;
}

.category-samples {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  color: var(--color-slate-700);
  font-size: 13px;
  font-weight: 700;
}

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

.category-overview-card {
  overflow: hidden;
}

.category-overview-main {
  display: block;
  padding: 26px 26px 18px;
  background: linear-gradient(135deg, #ffffff, var(--color-amber-50));
}

.category-overview-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 20px 26px 26px;
  list-style: none;
}

.category-overview-card li a {
  color: var(--color-slate-700);
  font-weight: 700;
}

.category-overview-card li a:hover {
  color: var(--color-amber-700);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 2fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
  padding: 24px;
}

.filter-panel h2 {
  margin: 6px 0 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.filter-fields,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 190px 160px auto;
  gap: 14px;
  align-items: end;
}

.filter-fields label,
.search-panel label {
  display: grid;
  gap: 6px;
  color: var(--color-slate-700);
  font-size: 13px;
  font-weight: 900;
}

.filter-fields input,
.filter-fields select,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--color-slate-200);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-fields input:focus,
.filter-fields select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--color-amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.filter-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-slate-500);
  font-weight: 700;
}

.search-panel {
  margin-bottom: 20px;
  padding: 24px;
  grid-template-columns: 1fr 220px auto;
}

.two-column-section,
.ranking-columns,
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

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

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

.rank-item a {
  display: grid;
  grid-template-columns: 54px 72px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber-500), var(--color-amber-800));
  font-weight: 900;
}

.rank-poster {
  position: relative;
  width: 72px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  margin: 0;
  background: var(--color-amber-800);
}

.rank-content h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.3;
}

.rank-content p {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--color-slate-500);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-amber-700);
  font-size: 12px;
  font-weight: 900;
}

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

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

.detail-backdrop {
  background-position: center;
  background-size: cover;
  filter: blur(6px);
  transform: scale(1.04);
  opacity: 0.55;
}

.detail-shade {
  background:
    radial-gradient(circle at 80% 18%, rgba(245, 158, 11, 0.38), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(120, 53, 15, 0.86));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 46px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 850px;
  margin: 0;
  color: var(--color-amber-100);
  font-size: 20px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  color: #ffffff;
  font-weight: 800;
}

.detail-meta-grid strong {
  color: var(--color-amber-200);
  font-size: 13px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-play-button {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.35), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.player-play-button.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: var(--color-amber-900);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.22);
}

.player-play-button strong {
  font-size: 24px;
}

.player-play-button em {
  color: var(--color-amber-200);
  font-style: normal;
  font-weight: 800;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  margin: 0;
  color: var(--color-amber-100);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

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

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

.detail-tags-card {
  grid-column: 1 / -1;
}

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

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

.info-list dt {
  color: var(--color-slate-500);
  font-size: 13px;
  font-weight: 900;
}

.info-list dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.detail-tags h3 {
  margin: 18px 0 8px;
}

.large-tags span {
  min-height: 30px;
  padding: 6px 12px;
  font-size: 13px;
}

.narrow-section {
  max-width: 900px;
}

.prose-card {
  display: grid;
  gap: 18px;
}

.prose-card h2 {
  margin-bottom: 0;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, var(--color-slate-900), #000000);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
  padding: 54px 0 38px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-grid p {
  margin: 0;
  color: #cbd5e1;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-badges span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--color-amber-200);
  font-weight: 900;
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
}

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

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

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

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

  .detail-meta-grid,
  .info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 68px;
    padding: 10px 0;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 4px 0 0;
    padding: 10px 0;
    animation: fadeIn 0.25s ease both;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 14px;
  }

  .hero-slider {
    height: 620px;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .movie-grid-small,
  .movie-grid-featured,
  .category-grid,
  .category-overview-grid,
  .two-column-section,
  .ranking-columns,
  .detail-info-grid,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    gap: 26px;
  }

  .detail-poster {
    width: min(100%, 280px);
  }

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

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, var(--container-width));
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

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

  .page-hero,
  .section-block {
    padding: 42px 0;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

  .detail-meta-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .rank-item a {
    grid-template-columns: 44px 60px 1fr;
    gap: 10px;
  }

  .rank-poster {
    width: 60px;
  }
}
