:root {
  --amber-50: #fff8eb;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-300: #fbbf24;
  --amber-400: #f59e0b;
  --amber-500: #f97316;
  --amber-600: #ea580c;
  --amber-700: #c2410c;
  --amber-900: #78350f;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: rgba(194, 65, 12, 0.14);
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.15);
  --shadow-strong: 0 28px 70px rgba(120, 53, 15, 0.28);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-50), #fff7ed 45%, #ffffff);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 248, 235, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.35);
}

.brand-name {
  font-size: 25px;
  background: linear-gradient(90deg, #b45309, var(--amber-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  padding: 8px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 0;
  height: 3px;
  background: var(--amber-500);
  border-radius: 999px;
  transition: width 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 260px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 2px solid var(--amber-200);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 10px 46px 10px 18px;
}

.header-search button {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(254, 215, 170, 0.5);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 16px;
  background: #fff;
  border-top: 1px solid var(--line);
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-search input {
  padding: 10px 16px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-nav-link:hover {
  background: var(--amber-50);
  color: var(--amber-600);
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #1c1917;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 46%, rgba(0, 0, 0, 0.08));
}

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

.hero-content h1,
.detail-copy h1 {
  max-width: 720px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-content p,
.detail-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 23px);
  margin: 0 0 26px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.3);
}

.section-kicker {
  color: var(--amber-700);
  background: var(--amber-100);
  box-shadow: none;
}

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

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

.hero-tags span,
.tag-row span,
.info-card dd span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 237, 213, 0.94);
  font-size: 12px;
  font-weight: 800;
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.34);
}

.primary-button:hover,
.light-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

.light-button {
  color: var(--amber-700);
  background: #fff;
}

.text-button {
  min-height: auto;
  padding: 10px 0;
  color: var(--amber-600);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.section-block,
.carousel-section,
.filter-panel,
.detail-body,
.overview-list {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-block,
.carousel-section {
  padding: 70px 0;
}

.intro-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 30px;
}

.intro-copy h2,
.section-heading h2,
.story-card h2,
.info-card h2,
.category-overview-text h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.intro-copy p,
.section-heading p,
.category-overview-text p,
.story-card p,
.info-card p {
  color: var(--muted);
  margin: 12px 0 0;
}

.wide-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.wide-search input {
  padding: 14px 18px;
  border-color: transparent;
  background: var(--soft);
}

.wide-search button {
  border: 0;
  padding: 14px 24px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  cursor: pointer;
}

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

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

.section-heading.light h2,
.section-heading.light p {
  color: #fff;
}

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

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

.movie-list {
  display: grid;
  gap: 16px;
}

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

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1c1917;
}

.movie-card-horizontal .movie-card-link {
  flex-direction: row;
}

.movie-card-horizontal .movie-poster {
  width: 220px;
  min-width: 220px;
  aspect-ratio: 16 / 10;
}

.movie-card-large .movie-poster {
  aspect-ratio: 16 / 9;
}

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.5));
}

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

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

.movie-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(0, 0, 0, 0.62);
}

.movie-info {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.movie-info h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #78716c;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d6d3d1;
}

.carousel-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, #ffedd5, #fff7ed);
}

.carousel-buttons {
  display: flex;
  gap: 10px;
}

.carousel-buttons button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #374151;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 6px 20px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 280px;
}

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

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.category-tile span {
  font-size: 24px;
  font-weight: 950;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.category-tile.gold {
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.category-tile.orange {
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.category-tile.rose {
  background: linear-gradient(135deg, #f97316, #db2777);
}

.category-tile.amber {
  background: linear-gradient(135deg, #facc15, #d97706);
}

.category-tile.coral {
  background: linear-gradient(135deg, #fb7185, #f97316);
}

.category-tile.sunset {
  background: linear-gradient(135deg, #ea580c, #7c2d12);
}

.dark-feature {
  padding: 76px max(16px, calc((100% - 1180px) / 2));
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 35%), linear-gradient(135deg, #78350f, #431407);
}

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

.dark-feature .movie-card-link {
  background: rgba(255, 255, 255, 0.95);
}

.center-action {
  justify-content: center;
  margin-top: 34px;
}

.cta-band {
  padding: 78px 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-400), var(--amber-600));
}

.cta-band h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 950;
}

.cta-band p {
  max-width: 680px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 72px max(16px, calc((100% - 1180px) / 2));
  color: #fff;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 32%), linear-gradient(120deg, var(--amber-400), var(--amber-600));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

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

.crumbs,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.crumbs a:hover,
.breadcrumb:hover {
  color: #fff;
}

.filter-panel {
  margin-top: 34px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.filter-title {
  color: #111827;
  font-size: 20px;
  font-weight: 950;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  padding: 12px 16px;
}

.overview-list {
  padding: 60px 0;
  display: grid;
  gap: 28px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

.mini-card-grid .movie-info p,
.mini-card-grid .tag-row,
.mini-card-grid .movie-meta {
  display: none;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #1c1917;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  filter: blur(1px);
  transform: scale(1.03);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58) 52%, rgba(0, 0, 0, 0.2));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 38px;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.watch-section {
  width: min(1180px, calc(100% - 32px));
  margin: -72px auto 0;
  position: relative;
  z-index: 4;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 22px 48px rgba(249, 115, 22, 0.42);
}

.player-layer strong {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.2;
}

.detail-body {
  padding: 58px 0 10px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
}

.story-card,
.info-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.story-card {
  grid-column: 1;
}

.info-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
}

.story-card p {
  color: #374151;
  font-size: 17px;
}

.info-card dl {
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-card dt {
  color: #92400e;
  font-weight: 900;
}

.info-card dd {
  margin: 0;
  color: #374151;
  font-weight: 700;
}

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

.site-footer {
  color: #fffbeb;
  background: linear-gradient(180deg, #78350f, #451a03);
  padding: 54px max(16px, calc((100% - 1180px) / 2)) 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 38px;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fcd34d;
  font-size: 19px;
}

.site-footer p {
  color: #fde68a;
  margin: 12px 0 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 24px;
}

.footer-links a {
  color: #fed7aa;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(253, 186, 116, 0.24);
  color: #fcd34d;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: translateY(-3px);
}

[data-movie-card].is-hidden {
  display: none;
}

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

  .header-search {
    margin-left: auto;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

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

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 64px;
  }

  .header-search {
    display: none;
  }

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

  .hero {
    height: 560px;
  }

  .hero-content h1,
  .detail-copy h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .intro-block,
  .category-overview-card,
  .detail-hero-grid,
  .detail-body {
    grid-template-columns: 1fr;
  }

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

  .info-card,
  .story-card {
    grid-column: auto;
    grid-row: auto;
  }

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

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

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

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

@media (max-width: 620px) {
  .hero {
    height: 520px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.88));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 86px;
  }

  .hero-content p,
  .detail-copy p {
    font-size: 16px;
  }

  .section-block,
  .carousel-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .section-heading {
    display: block;
  }

  .movie-grid,
  .rank-grid,
  .related-grid,
  .mini-card-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-horizontal .movie-card-link {
    flex-direction: column;
  }

  .movie-card-horizontal .movie-poster {
    width: 100%;
    min-width: 0;
    aspect-ratio: 2 / 3;
  }

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

  .wide-search button {
    width: 100%;
  }

  .detail-hero-inner {
    padding: 44px 0 92px;
  }

  .watch-section {
    margin-top: -58px;
  }

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