:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --ink: #1f2937;
  --muted: #6b7280;
  --paper: #ffffff;
  --line: rgba(146, 64, 14, 0.14);
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-600), var(--amber-400));
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.22);
}

.nav-shell {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 205px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--amber-600);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(120, 53, 15, 0.18);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08);
}

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

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

.brand-text em {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
}

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

.nav-links a,
.nav-dropdown button {
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active,
.nav-dropdown button:hover {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 180px;
  padding: 10px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--amber-900);
}

.nav-dropdown-menu a:hover {
  background: var(--amber-100);
}

.nav-search {
  position: relative;
  width: 248px;
}

.nav-search input,
.mobile-search input,
.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
}

.nav-search input {
  height: 42px;
  padding: 0 78px 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.nav-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--amber-700);
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  padding: 10px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 16px 18px;
}

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

.mobile-nav a {
  padding: 10px 0;
  color: #ffffff;
  font-weight: 700;
}

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

.mobile-search input {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--amber-700);
  background: #ffffff;
  font-weight: 800;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--amber-100);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 45%, rgba(255, 255, 255, 0.24), transparent 36%), linear-gradient(90deg, rgba(254, 243, 199, 0.96), rgba(251, 191, 36, 0.45));
}

.hero-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: 56px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.12);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0;
  color: var(--amber-900);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 24px 0 0;
  color: #7c2d12;
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.text-link,
.tile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 28px;
  color: #ffffff;
  background: var(--amber-600);
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--amber-700);
  box-shadow: 0 18px 32px rgba(217, 119, 6, 0.34);
}

.primary-btn.small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

.ghost-btn {
  min-height: 48px;
  padding: 0 26px;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(217, 119, 6, 0.38);
}

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

.hero-poster {
  position: relative;
  display: block;
  height: 450px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 65px rgba(120, 53, 15, 0.34);
  transform: rotate(2deg);
  transition: transform 0.45s ease;
}

.hero-poster:hover {
  transform: rotate(0) scale(1.03);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

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

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

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

.section-heading {
  margin-bottom: 34px;
}

.section-heading.center {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.section-heading span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  margin: 0;
  color: var(--amber-900);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--amber-700);
  font-size: 17px;
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(120, 53, 15, 0.2);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--amber-100);
}

.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-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

.poster-type {
  right: 12px;
  top: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  color: #ffffff;
  background: var(--amber-600);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  gap: 8px;
  overflow: hidden;
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.card-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card h2 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
}

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

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

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 900;
}

.stars {
  color: var(--amber-400);
  letter-spacing: 1px;
}

.hot-panel {
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(90deg, var(--amber-100), #fff7ed);
}

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 270px;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.movie-row::-webkit-scrollbar {
  display: none;
}

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

.movie-card.compact h2 {
  font-size: 17px;
}

.scroll-actions {
  display: flex;
  gap: 10px;
}

.scroll-actions button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--amber-900);
  background: #ffffff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 25px;
}

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

.category-tile,
.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 28px;
  border-radius: 30px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.tone-amber {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.tone-orange {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.tone-gold {
  background: linear-gradient(135deg, #d97706, #facc15);
}

.tone-rose {
  background: linear-gradient(135deg, #f97316, #fb7185);
}

.tone-brown {
  background: linear-gradient(135deg, #78350f, #d97706);
}

.tone-yellow {
  background: linear-gradient(135deg, #ca8a04, #fde047);
}

.tone-cream {
  background: linear-gradient(135deg, #b45309, #fef3c7);
}

.tone-copper {
  background: linear-gradient(135deg, #92400e, #fb923c);
}

.category-tile h2,
.overview-card h2 {
  margin: 0;
  font-size: 30px;
}

.category-tile p,
.overview-card p {
  margin: 10px 0 22px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  color: #111827;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 0.25s ease, background 0.25s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.mini-card img {
  width: 62px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-card span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-link {
  margin-top: 22px;
  min-height: 42px;
  padding: 0 20px;
  color: var(--amber-900);
  background: #ffffff;
}

.video-band {
  padding: 74px 0;
  background: linear-gradient(180deg, var(--amber-900), #451a03);
}

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

.video-teaser {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

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

.video-teaser:hover img {
  transform: scale(1.08);
}

.video-teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 55%);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  font-size: 28px;
}

.video-teaser strong,
.video-teaser em {
  position: absolute;
  left: 24px;
  right: 24px;
  z-index: 2;
  color: #ffffff;
}

.video-teaser strong {
  bottom: 52px;
  font-size: 22px;
}

.video-teaser em {
  bottom: 26px;
  color: var(--amber-100);
  font-style: normal;
}

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

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

.text-link:hover {
  transform: translateX(4px);
}

.page-shell {
  min-height: 60vh;
}

.page-hero {
  padding: 78px 0;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-100), #fff7ed);
}

.compact-hero {
  min-height: 290px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #7c2d12;
  font-size: 19px;
  line-height: 1.8;
}

.category-hero {
  color: #ffffff;
}

.category-hero h1,
.category-hero p {
  color: #ffffff;
}

.hero-search {
  display: flex;
  max-width: 680px;
  margin-top: 26px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
}

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

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-weight: 800;
}

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

.empty-state {
  margin-top: 28px;
  padding: 42px;
  border-radius: 24px;
  text-align: center;
  color: var(--amber-800);
  background: var(--amber-100);
  font-weight: 900;
}

.detail-hero {
  padding: 58px 0;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.26);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-100);
  font-weight: 800;
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.1;
}

.detail-line {
  margin: 18px 0 0;
  max-width: 820px;
  color: var(--amber-50);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 900;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 64px 0 10px;
}

.detail-main,
.detail-side,
.player-card,
.detail-section {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-card,
.detail-section,
.detail-side {
  padding: 26px;
}

.player-card h2,
.detail-section h2,
.detail-side h2 {
  margin: 0 0 18px;
  color: var(--amber-900);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.player-overlay strong {
  max-width: 86%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 22px;
}

.detail-section {
  margin-top: 28px;
}

.detail-section p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.side-list {
  display: grid;
  gap: 12px;
}

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

.site-footer {
  color: var(--amber-50);
  background: linear-gradient(180deg, var(--amber-800), #451a03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 52px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 22px;
}

.site-footer p {
  margin: 0;
  color: var(--amber-100);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.74);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber-600);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

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

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

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

  .hero-inner {
    grid-template-columns: 1fr 320px;
  }

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

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

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

@media (max-width: 780px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-shell {
    height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

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

  .hero-carousel {
    height: auto;
    min-height: 680px;
  }

  .hero-slide {
    position: relative;
    display: none;
    min-height: 680px;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
    padding: 52px 0 82px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-poster {
    width: min(78vw, 310px);
    height: 390px;
    margin: 0 auto;
  }

  .hero-control {
    display: none;
  }

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

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

  .movie-grid,
  .library-grid,
  .ranking-grid,
  .related-grid,
  .category-grid,
  .overview-grid,
  .video-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hot-panel {
    padding: 28px 16px;
  }

  .movie-row {
    grid-auto-columns: 78vw;
  }

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

  .detail-poster {
    width: min(78vw, 300px);
    margin: 0 auto;
  }

  .detail-copy {
    text-align: center;
  }

  .breadcrumb,
  .detail-meta,
  .tag-list {
    justify-content: center;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search input {
    min-height: 46px;
  }
}
