:root {
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --page: #f8fafc;
  --card: #ffffff;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.brand-title {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--teal-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  padding: 10px 14px;
  color: #334155;
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--teal-dark);
  background: #ecfeff;
}

.header-search,
.mobile-search,
.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search {
  margin-left: auto;
  width: min(360px, 34vw);
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-main input,
.filter-main select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input,
.hero-search input {
  height: 44px;
  padding: 0 18px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-main input:focus,
.filter-main select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.header-search button,
.mobile-search button,
.hero-search button {
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 750;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  max-height: 360px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 10px;
  z-index: 80;
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
}

.search-result-item:hover {
  background: #f0fdfa;
}

.search-result-title {
  font-weight: 800;
  color: #0f172a;
}

.search-result-meta {
  color: var(--muted);
  font-size: 13px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: #334155;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 14px;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #334155;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: #ecfeff;
  color: var(--teal-dark);
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #0f172a;
}

.hero-track,
.hero-slide,
.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12);
  transform: scale(1.04);
}

.hero-overlay {
  background:
    radial-gradient(circle at 75% 30%, rgba(20, 184, 166, 0.38), transparent 28%),
    linear-gradient(120deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 38%, rgba(37, 99, 235, 0.24) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 68px;
  padding: 116px 0 138px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 850;
}

.eyebrow {
  padding: 8px 14px;
  color: #dffcff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  color: #ffffff;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
  width: min(720px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 22px);
}

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

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 0 26px;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover,
.movie-card:hover,
.category-panel:hover,
.ranking-row:hover {
  transform: translateY(-3px);
}

.ghost-button {
  padding: 0 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 34px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.32), rgba(37, 99, 235, 0.32));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

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

.hero-poster span,
.play-dot {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
}

.hero-poster span {
  left: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  font-size: 22px;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: #ffffff;
}

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 24px;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(18px);
}

.hero-search input {
  border-color: transparent;
}

.hero-search-results {
  bottom: calc(100% + 10px);
  top: auto;
}

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

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--teal-dark);
  background: #ccfbf1;
  padding: 6px 10px;
  font-size: 12px;
}

.section-heading h2,
.page-hero h1,
.detail-card h1,
.detail-card h2,
.side-related h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  background: linear-gradient(90deg, var(--teal-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.split-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.text-link {
  padding: 0 20px;
  color: var(--teal-dark);
  background: #ecfeff;
}

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

.category-chip {
  display: grid;
  gap: 4px;
  min-height: 102px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.13);
}

.category-chip span {
  color: #0f172a;
  font-size: 20px;
  font-weight: 850;
}

.category-chip small {
  color: var(--muted);
}

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
}

.poster-shell {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

.featured-card .poster-shell {
  aspect-ratio: 4 / 3;
}

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

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.26);
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: scale(1);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card-title {
  color: #0f172a;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #475569;
  font-size: 13px;
}

.movie-card-meta span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-card-meta .rating {
  color: #b45309;
  background: #fef3c7;
}

.tag-row span {
  padding: 3px 8px;
  color: var(--teal-dark);
  background: #ccfbf1;
  font-size: 12px;
}

.two-column-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 36px;
  align-items: start;
}

.compact-heading {
  margin-bottom: 18px;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 44px 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-number {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.ranking-cover {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d1fae5, #dbeafe);
}

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

.ranking-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ranking-title {
  font-weight: 850;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-desc,
.ranking-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-score {
  color: #b45309;
  font-size: 18px;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1 0%, #dbeafe 50%, #ffffff 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -90px;
  top: -120px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.22);
}

.page-hero > div {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
  display: grid;
  gap: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

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

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

.category-panel {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

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

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.68));
}

.category-cover span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
}

.category-panel-body {
  padding: 24px;
  display: grid;
  gap: 14px;
}

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

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

.category-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-preview-links a {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #ecfeff;
  font-size: 13px;
  font-weight: 700;
}

.filter-card {
  display: grid;
  gap: 24px;
}

.filter-main {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, 180px);
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

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

.filter-main input,
.filter-main select {
  height: 48px;
  padding: 0 16px;
}

.filter-empty {
  display: none;
  padding: 28px;
  text-align: center;
  border-radius: 20px;
  color: var(--muted);
  background: #ffffff;
}

.filter-empty.is-visible {
  display: block;
}

.detail-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 76px;
}

.detail-breadcrumb {
  margin-bottom: 22px;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18), rgba(2, 6, 23, 0.54));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  font-size: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.player-play-text {
  font-size: 18px;
  font-weight: 850;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.detail-card,
.side-poster-card,
.side-related {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
}

.detail-card h2,
.side-related h2 {
  font-size: 26px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-weight: 700;
}

.detail-meta .rating {
  color: #b45309;
  background: #fef3c7;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
}

.detail-tags span {
  padding: 7px 12px;
  color: var(--teal-dark);
  background: #ccfbf1;
}

.prose-card p {
  margin: 18px 0 0;
  color: #334155;
  font-size: 17px;
}

.side-poster-card {
  position: sticky;
  top: 100px;
  overflow: hidden;
  padding: 14px;
}

.side-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

.wide-button {
  width: 100%;
  margin-top: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.side-related {
  padding: 18px;
}

.side-related-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.side-related-grid .movie-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border-radius: 18px;
  box-shadow: none;
  background: #f8fafc;
}

.side-related-grid .poster-shell {
  aspect-ratio: 4 / 3;
}

.side-related-grid .movie-card-line,
.side-related-grid .tag-row {
  display: none;
}

.side-related-grid .movie-card-body {
  padding: 12px;
  align-content: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer-brand {
  color: var(--teal-dark);
  font-weight: 900;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--teal-dark);
}

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

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

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

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

  .two-column-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .side-poster-card {
    position: static;
  }
}

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

  .menu-button {
    display: flex;
    margin-left: auto;
  }

  .brand-title {
    font-size: 17px;
  }

  .hero-slider,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 88px;
    padding-bottom: 170px;
  }

  .hero-poster {
    width: min(280px, 70vw);
  }

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

  .hero-search button,
  .mobile-search button {
    width: 100%;
  }

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

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

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

  .category-cover {
    aspect-ratio: 16 / 9;
  }

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

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

  .brand-subtitle {
    display: none;
  }

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

  .featured-grid,
  .movie-grid,
  .category-movie-grid,
  .update-grid,
  .category-chip-grid,
  .category-panel-grid {
    grid-template-columns: 1fr;
  }

  .split-heading {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 34px 70px minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 3;
  }

  .detail-card,
  .side-related {
    padding: 18px;
  }

  .footer-inner {
    display: grid;
  }
}
