:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-cyan: #06b6d4;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f8fafc;
  --color-line: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.1);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(
    180deg,
    rgba(239, 246, 255, 0.62) 0%,
    #ffffff 22%,
    #f8fafc 100%
  );
  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;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

.logo-text {
  font-size: 22px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
}

.header-search input,
.mobile-search input {
  width: 160px;
  border: 0;
  outline: 0;
  padding: 10px 4px 10px 16px;
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  padding: 10px 16px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: #eff6ff;
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #1f2937;
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding-top: 8px;
  border-top: 1px solid var(--color-line);
}

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

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--color-primary);
  background: #eff6ff;
}

main {
  min-height: 65vh;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  padding-top: 108px;
  gap: 28px;
}

.hero-stage {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.88) 0%,
      rgba(15, 23, 42, 0.55) 42%,
      rgba(15, 23, 42, 0.18) 100%
    ),
    linear-gradient(0deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.06) 58%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 74px);
  bottom: clamp(34px, 8vw, 92px);
  width: min(620px, calc(100% - 48px));
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero-content p {
  max-width: 56ch;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.3);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.inline-button {
  margin-top: 18px;
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

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

.hero-side {
  align-self: stretch;
  padding: 26px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

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

.side-link {
  display: block;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  text-align: center;
  font-weight: 800;
}

.section-wrap,
.content-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-band {
  background: linear-gradient(
    135deg,
    rgba(239, 246, 255, 0.95),
    rgba(236, 254, 255, 0.95)
  );
}

.white-band {
  background: #ffffff;
}

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

.section-heading h2,
.page-hero h1,
.content-card h2,
.ranking-column h2,
.detail-intro h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--color-muted);
}

.section-heading a {
  color: var(--color-primary);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}

.movie-poster {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.movie-card-horizontal .movie-poster {
  height: 100%;
  min-height: 210px;
}

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

.movie-card:hover .movie-poster img,
.category-tile:hover img,
.category-panel-cover:hover img {
  transform: scale(1.08);
}

.poster-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.poster-badge {
  top: 12px;
  right: 12px;
  min-width: 52px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.movie-info h2 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 18px;
  line-height: 1.45;
}

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

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

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

.category-tile::after,
.category-panel-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    0deg,
    rgba(15, 23, 42, 0.8),
    rgba(15, 23, 42, 0.08)
  );
}

.category-tile span,
.category-panel-cover span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 850;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 44px;
}

.split-layout p {
  color: var(--color-muted);
  font-size: 18px;
}

.side-card-list,
.ranking-list,
.category-panel-list,
.hero-mini-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: auto 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.mini-card.is-plain {
  grid-template-columns: 62px minmax(0, 1fr);
}

.mini-card:hover {
  transform: translateX(3px);
  border-color: rgba(37, 99, 235, 0.22);
}

.mini-card img {
  width: 62px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
  line-height: 1.35;
}

.mini-card span:not(.rank-number) {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.page-main {
  padding-top: var(--header-height);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: clamp(38px, 6vw, 76px);
  gap: 34px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(34, 211, 238, 0.32),
      transparent 32%
    ),
    linear-gradient(135deg, #1d4ed8, #0891b2);
  box-shadow: var(--shadow-soft);
}

.small-hero {
  display: block;
  max-width: 1180px;
}

.page-hero h1,
.page-hero p,
.page-hero .section-kicker {
  color: #ffffff;
}

.page-hero p {
  margin-left: 0;
  color: rgba(255, 255, 255, 0.86);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 180px auto;
  align-items: center;
  margin-bottom: 26px;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select,
.search-box-large input {
  width: 100%;
  border: 1px solid var(--color-line);
  outline: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-box-large input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.filter-count,
.search-summary {
  color: var(--color-muted);
  font-weight: 700;
}

.category-panels {
  display: grid;
  gap: 24px;
}

.category-panel {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-panel-cover {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

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

.category-panel-body {
  padding: 24px 24px 24px 0;
}

.category-panel-body h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.category-panel-body p {
  margin: 0 0 18px;
  color: var(--color-muted);
}

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

.ranking-column {
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-column h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

.search-box-large {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  margin-bottom: 18px;
}

.search-box-large button {
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  font-weight: 850;
  cursor: pointer;
}

.search-summary {
  min-height: 24px;
  margin-bottom: 22px;
}

.content-wrap {
  display: grid;
  gap: 26px;
}

.content-card,
.feature-grid article {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.content-card p,
.feature-grid p {
  color: #4b5563;
  font-size: 17px;
}

.content-card h3 {
  margin: 24px 0 8px;
  font-size: 20px;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 26px 0 16px;
  color: var(--color-muted);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding: 28px;
  border-radius: 32px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(34, 211, 238, 0.25),
      transparent 28%
    ),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #0891b2 100%);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.detail-intro h1 {
  color: #ffffff;
  font-size: clamp(32px, 5vw, 58px);
}

.detail-intro p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.player-section {
  padding: 32px 0;
}

.player-card {
  overflow: hidden;
  border-radius: 30px;
  background: #050816;
  box-shadow: var(--shadow-soft);
}

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

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

.player-cover-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.3),
    rgba(15, 23, 42, 0.72)
  );
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.player-cover-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  padding-left: 7px;
  border-radius: 999px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  font-size: 38px;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
  padding: 8px 0 48px;
}

.movie-detail-copy h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.movie-detail-copy h2:first-child {
  margin-top: 0;
}

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

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.info-list dt {
  color: var(--color-muted);
  font-size: 13px;
}

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

.prev-next {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.prev-next a {
  color: var(--color-primary);
  font-weight: 800;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-side h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.related-section {
  padding-top: 20px;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

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

.footer-grid p {
  max-width: 360px;
  color: var(--color-muted);
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-grid a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #4b5563;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
}

.back-to-top {
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-primary);
  cursor: pointer;
}

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

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

  .menu-toggle {
    display: block;
  }

  .home-hero,
  .page-hero,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

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

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

@media (max-width: 840px) {
  :root {
    --header-height: 68px;
  }

  .home-hero {
    min-height: auto;
    padding-top: 88px;
  }

  .hero-stage {
    min-height: 560px;
    border-radius: 26px;
  }

  .movie-grid-four,
  .movie-grid-three,
  .category-grid,
  .split-layout,
  .feature-grid,
  .footer-grid,
  .ranking-grid,
  .detail-hero,
  .category-panel,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .category-panel-body {
    padding: 0 22px 22px;
  }

  .filter-panel {
    align-items: stretch;
  }

  .detail-poster {
    max-width: 330px;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .mobile-nav,
  .section-wrap,
  .content-wrap,
  .home-hero,
  .page-hero,
  .detail-main,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .logo-text {
    font-size: 18px;
  }

  .hero-stage {
    min-height: 520px;
  }

  .hero-content {
    left: 20px;
    bottom: 42px;
    width: calc(100% - 40px);
  }

  .hero-actions,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-poster {
    height: 250px;
  }

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

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