:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-900: #7c2d12;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 20px 55px rgba(15, 23, 42, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 45%, var(--amber-50));
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 4px 20px rgba(180, 83, 9, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon,
.footer-logo span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.brand-name {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: var(--gray-700);
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.25s ease;
}

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

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

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

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  border: 2px solid var(--amber-200);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search:focus-within {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.12);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 8px 10px 16px;
  background: transparent;
}

.header-search button {
  width: 46px;
  border: 0;
  color: var(--gray-500);
  background: transparent;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: var(--amber-100);
  color: var(--amber-700);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-panel {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--amber-200);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
}

.mobile-panel a:hover {
  background: var(--amber-50);
  color: var(--amber-700);
}

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

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 10px 14px;
}

.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

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

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  top: 50%;
  width: min(640px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #fff;
}

.hero-pill,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--amber-500);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
}

.hero-content h1 {
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 20px 35px rgba(249, 115, 22, 0.30);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 12px;
  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.25s ease, background 0.25s ease;
}

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

.section {
  padding: 64px 0;
}

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

.section-head h2,
.center-title,
.section h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head a {
  color: var(--amber-600);
  font-weight: 900;
}

.center-title {
  text-align: center;
  margin-bottom: 36px;
}

.light-title {
  color: #fff;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.45));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.card-body h3,
.large-overlay h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 19px;
  line-height: 1.42;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

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

.card-body p,
.large-overlay p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-500);
  font-size: 12px;
}

.meta-row.light {
  color: rgba(255, 255, 255, 0.82);
}

.movie-card.large {
  border-radius: var(--radius);
}

.poster-large {
  height: 360px;
}

.large-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 28px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.large-overlay h3,
.large-overlay p {
  color: #fff;
}

.movie-card.horizontal {
  display: flex;
  gap: 0;
}

.poster-wide {
  width: 220px;
  height: 140px;
  flex: 0 0 auto;
}

.movie-card.horizontal .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
}

.warm-band {
  background: linear-gradient(90deg, var(--amber-100), var(--orange-50));
}

.white-band {
  background: #fff;
}

.dark-recommend {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-900), var(--orange-900));
}

.movie-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 8px 20px;
  scrollbar-width: none;
}

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

.rail-item {
  width: 320px;
  flex: 0 0 auto;
}

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

.rail-actions button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--gray-700);
  box-shadow: var(--shadow);
  font-size: 28px;
  cursor: pointer;
}

.category-grid,
.recommend-grid,
.category-overview-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile,
.category-overview-card,
.recommend-grid article {
  display: block;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.recommend-grid article:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-strong);
}

.category-tile {
  min-height: 160px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

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

.tile-2 {
  background: linear-gradient(135deg, #facc15, #f59e0b);
}

.tile-3 {
  background: linear-gradient(135deg, #f87171, #ec4899);
}

.category-tile h3,
.recommend-grid h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 950;
}

.category-tile p,
.recommend-grid p {
  margin: 0;
  line-height: 1.7;
  opacity: 0.9;
}

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

.recommend-grid article {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
}

.recommend-icon {
  color: var(--amber-300);
  font-size: 42px;
  margin-bottom: 14px;
}

.recommend-grid a {
  display: inline-flex;
  margin-top: 20px;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: var(--amber-500);
  font-weight: 900;
}

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

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

.rank-home a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rank-home strong {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.rank-home span {
  overflow: hidden;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-home em {
  color: var(--gray-500);
  font-style: normal;
}

.final-cta {
  padding: 82px 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.final-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 950;
}

.final-cta p {
  margin: 0 auto 28px;
  max-width: 680px;
  font-size: 20px;
  line-height: 1.7;
  opacity: 0.9;
}

.page-hero {
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.page-hero.dark-page {
  background: linear-gradient(135deg, var(--gray-900), var(--amber-900));
}

.page-hero span,
.crumb {
  display: inline-flex;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 900;
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 20px;
  line-height: 1.8;
}

.filter-panel,
.big-search {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--amber-200);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select,
.big-search input {
  width: 100%;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 13px 18px;
  outline: 0;
  background: #fff;
}

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

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

.category-overview-card {
  background: #fff;
}

.category-overview-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.category-overview-card p {
  min-height: 78px;
  margin: 0 0 18px;
  color: var(--gray-600);
  line-height: 1.7;
}

.sample-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.sample-lines span {
  overflow: hidden;
  color: var(--gray-700);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-overview-card strong {
  color: var(--amber-600);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 92px 1fr 88px 90px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-row strong {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.rank-row img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-title {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-weight: 900;
}

.rank-title small {
  overflow: hidden;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  color: var(--amber-700);
  font-style: normal;
  font-weight: 900;
}

.search-status {
  margin: 18px 0 26px;
  color: var(--gray-600);
  font-weight: 800;
}

.detail-wrap {
  padding: 34px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-content-card,
.side-card,
.cover-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.player-card {
  background: #000;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.54));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: inline-flex;
  width: 88px;
  height: 88px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
  font-size: 34px;
  transform: translateX(3px);
}

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

.detail-content-card {
  margin-top: 24px;
  padding: 30px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-tags span {
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.detail-content-card h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--gray-600);
}

.detail-meta span {
  border-radius: 999px;
  background: var(--gray-100);
  padding: 8px 13px;
  font-size: 14px;
}

.detail-content-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-content-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.95;
}

.detail-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 22px;
}

.cover-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.cover-card div {
  padding: 18px;
}

.cover-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.cover-card span {
  color: var(--amber-700);
  font-weight: 900;
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 12px;
}

.mini-card img {
  width: 112px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.25s ease;
}

.mini-card span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-800);
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-footer {
  margin-top: 60px;
  color: var(--amber-50);
  background: linear-gradient(180deg, var(--amber-900), #431407);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.5fr;
  gap: 36px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 950;
}

.footer-brand p {
  max-width: 420px;
  margin: 0;
  color: var(--amber-200);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--amber-300);
  font-size: 18px;
}

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

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

.footer-links a {
  color: var(--amber-200);
  font-size: 14px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(253, 230, 138, 0.20);
  padding: 20px 0;
  color: var(--amber-300);
  text-align: center;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: var(--shadow-strong);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

@media (max-width: 1120px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

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

  .detail-side {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

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

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

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

  .hero-carousel {
    height: 560px;
  }

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

  .hero-content {
    top: auto;
    bottom: 82px;
    transform: none;
  }

  .hero-content p {
    font-size: 17px;
  }

  .section {
    padding: 46px 0;
  }

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

  .movie-grid.two,
  .movie-grid.three,
  .movie-grid.four,
  .category-grid,
  .recommend-grid,
  .category-overview-grid,
  .rank-home,
  .filter-panel,
  .big-search,
  .footer-inner,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    display: block;
  }

  .poster-wide {
    width: 100%;
    height: 210px;
  }

  .rank-row {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-row > span:not(.rank-title),
  .rank-row em {
    display: none;
  }

  .rank-row img {
    width: 72px;
    height: 52px;
  }

  .detail-content-card {
    padding: 22px;
  }

  .cover-card img {
    height: 240px;
  }
}
