:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #111827;
  --muted: #64748b;
  --muted-strong: #475569;
  --line: #e5e7eb;
  --dark: #0f172a;
  --dark-soft: #1f2937;
  --accent: #111827;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  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.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #374151);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.25);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon,
.footer-logo:hover .brand-icon {
  transform: scale(1.08) rotate(-2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-title {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  position: relative;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  transition: width 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #111827;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #f1f5f9;
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.34), transparent 36%), linear-gradient(135deg, #0f172a 0%, #111827 48%, #334155 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.72));
  z-index: 1;
}

.hero-slider {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 430px);
  align-items: center;
  gap: 42px;
  padding: 74px 0 96px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(22px) saturate(1.15);
  transform: scale(1.06);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  width: min(660px, 100%);
  margin: 0;
  color: rgba(241, 245, 249, 0.88);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.small-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #111827;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.small-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.ghost-btn.dark {
  color: #111827;
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.hero-poster {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(420px, 100%);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 74px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 11px !important;
  height: 11px !important;
  padding: 0;
  opacity: 0.55;
}

.hero-dot.is-active {
  width: 28px !important;
  opacity: 1;
}

.hero-category-strip {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.hero-category-strip a {
  white-space: nowrap;
  padding: 9px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.quick-search-section,
.page-shell {
  padding: 64px 0 0;
}

.search-intro {
  margin-bottom: 22px;
}

.search-intro span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-intro h2,
.section-head h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.search-intro p,
.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 160px 160px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18);
}

.section-block {
  margin-top: 72px;
}

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

.section-kicker {
  margin-bottom: 8px;
  color: #64748b;
}

.section-more,
.small-btn {
  color: #111827;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

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

.featured-grid {
  margin-bottom: 10px;
}

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: 0 26px 62px rgba(15, 23, 42, 0.16);
  transform: translateY(-6px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.02);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 45%);
  opacity: 0.85;
}

.poster-year,
.poster-type,
.rank-num {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-year {
  left: 12px;
  top: 12px;
}

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

.rank-num {
  left: 12px;
  bottom: 12px;
  color: #111827;
  background: #ffffff;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.movie-card-body {
  padding: 16px;
}

.movie-card-body h3 {
  min-height: 52px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.movie-card-body h3 a:hover,
.rank-main h2 a:hover,
.detail-side a:hover,
.inline-links a:hover {
  color: #475569;
}

.movie-card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card .tag-row {
  margin-top: 12px;
}

.movie-card .tag-row span {
  height: 26px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}

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

.category-card,
.category-overview-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.category-card-main {
  display: grid;
  gap: 10px;
}

.category-card-main span,
.category-overview-card h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-card-main strong,
.category-overview-card p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.category-card-links,
.category-preview-links,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.category-card-links a,
.category-preview-links a,
.inline-links a {
  padding: 8px 10px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  align-self: start;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.15);
}

.page-hero {
  padding: 84px 0 64px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.28), transparent 36%), linear-gradient(135deg, #0f172a, #1f2937 52%, #334155);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(241, 245, 249, 0.82);
  font-size: 18px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 84px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
}

.rank-cover img {
  width: 84px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #111827;
  border-radius: 14px;
  font-weight: 900;
}

.rank-main h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.32;
}

.rank-main p {
  margin: 0 0 8px;
  color: var(--muted);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.rank-meta span {
  padding: 4px 8px;
  background: #f1f5f9;
  border-radius: 999px;
}

.detail-page {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  filter: blur(24px) saturate(1.15);
  transform: scale(1.1);
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 42px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
  font-weight: 700;
}

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

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

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  height: 46px;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  font-weight: 900;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0;
  color: rgba(241, 245, 249, 0.86);
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.detail-meta-grid span {
  padding: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.detail-meta-grid strong {
  display: block;
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
}

.player-section {
  margin-top: 50px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: contain;
}

.play-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.62));
  border: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.play-mask.is-hidden {
  display: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  color: #111827;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.25);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  margin-top: 34px;
}

.detail-article,
.detail-side {
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.detail-article p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 16px;
}

.detail-side {
  align-self: start;
  display: grid;
  gap: 12px;
}

.detail-side a {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #334155;
  font-weight: 800;
}

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

.related-grid .movie-card-body h3 {
  font-size: 15px;
  min-height: 42px;
}

.related-grid .movie-card-body p,
.related-grid .tag-row {
  display: none;
}

.site-footer {
  margin-top: 86px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1f2937 48%, #111827);
}

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

.footer-logo {
  color: #ffffff;
  font-size: 21px;
}

.footer-brand p {
  max-width: 440px;
  margin: 16px 0 0;
  color: #94a3b8;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
}

.footer-column ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a,
.footer-column li {
  color: #cbd5e1;
  font-size: 14px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 14px;
}

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

@media (max-width: 1050px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

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

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

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: #f8fafc;
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slider {
    min-height: 705px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: 42px;
    gap: 24px;
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 70vw);
  }

  .hero-controls {
    bottom: 104px;
  }

  .hero-category-strip {
    bottom: 22px;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .detail-content-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 80vw);
  }

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

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

  .rank-index {
    position: absolute;
    margin-left: 44px;
    margin-top: -76px;
  }

  .rank-row .small-btn {
    grid-column: 1 / -1;
  }

  .rank-cover img {
    width: 70px;
  }

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

@media (max-width: 560px) {
  .container,
  .site-header-inner,
  .footer-inner,
  .footer-bottom,
  .hero-slider,
  .hero-category-strip {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: 800px;
  }

  .hero h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero p,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

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

  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-card-body h3 {
    min-height: 45px;
    font-size: 15px;
  }

  .movie-card-body p,
  .movie-card-meta,
  .tag-row {
    display: none;
  }

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

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