:root {
  --bg: #f8fbff;
  --panel: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #e6edf5;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --indigo: #4f46e5;
  --gold: #f59e0b;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.65), #ffffff 28%, #f8fbff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(226, 232, 240, 0.86);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.site-logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

.site-logo-text,
.footer-logo span:last-child,
.mobile-logo {
  font-size: 22px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

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

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.08);
  padding: 10px;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #1e293b;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
}

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

.mobile-nav-link:hover {
  background: #eff6ff;
  color: var(--blue);
}

.hero {
  position: relative;
  height: 84vh;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 15, 32, 0.92), rgba(7, 15, 32, 0.54) 48%, rgba(7, 15, 32, 0.08)), linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  max-width: 1180px;
}

.hero-kicker,
.detail-kicker,
.page-hero p,
.section-heading span {
  color: #60a5fa;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 690px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.75;
}

.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: 5px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 750;
}

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

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

.primary-button,
.glass-button,
.filter-reset,
.home-search button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.home-search button {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
}

.primary-button:hover,
.home-search button:hover,
.filter-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.38);
}

.glass-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: white;
  background: transparent;
}

.hero-prev,
.hero-next {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
  width: 28px;
  background: #ffffff;
}

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

.search-strip {
  position: relative;
  z-index: 3;
  margin-top: -48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-strip h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.text-panel h2 {
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.035em;
}

.search-strip h2,
.section-heading h2 {
  font-size: clamp(26px, 3.2vw, 40px);
}

.search-strip p,
.category-tile p,
.movie-card-body p,
.horizontal-card p,
.page-hero span,
.text-panel p,
.footer-grid p,
.detail-one-line {
  color: var(--muted);
  line-height: 1.75;
}

.home-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
}

.home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 12px;
}

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

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

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

.section-heading a,
.text-link {
  color: var(--blue);
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 22px;
  background: white;
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.14);
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e2e8f0;
}

.movie-poster img,
.category-tile img,
.category-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.movie-poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), transparent 44%);
}

.movie-type,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(37, 99, 235, 0.9);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(245, 158, 11, 0.95);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%) scale(0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.movie-meta-line span {
  display: inline-flex;
  align-items: center;
}

.movie-meta-line span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.movie-card-body h3 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  min-height: 50px;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.compact-card .movie-card-body p {
  min-height: 0;
  font-size: 14px;
}

.gradient-section {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.75), rgba(207, 250, 254, 0.72));
}

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

.category-tile {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
  border-radius: 24px;
  color: white;
  box-shadow: var(--soft-shadow);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.22));
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 850;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
}

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

.horizontal-list {
  display: grid;
  gap: 16px;
}

.horizontal-card a {
  display: grid;
  grid-template-columns: auto 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 142px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: white;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.13);
}

.horizontal-card img {
  width: 118px;
  height: 112px;
  object-fit: cover;
  border-radius: 16px;
}

.horizontal-card h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.horizontal-card p {
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.horizontal-rank {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--gold), #ef4444);
  font-weight: 900;
}

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

.page-main {
  padding-top: 76px;
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 68px 16px;
  color: white;
  text-align: center;
  background: radial-gradient(circle at 24% 18%, rgba(125, 211, 252, 0.45), transparent 32%), linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.page-hero div {
  width: min(820px, 100%);
}

.page-hero h1 {
  margin: 10px 0 14px;
  color: white;
  font-size: clamp(36px, 6vw, 64px);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 0.75fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  outline: 0;
  padding: 0 12px;
  color: #0f172a;
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-reset {
  color: white;
  background: #0f172a;
}

.filter-empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: 18px;
  background: #f8fafc;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 28px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.category-cover {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 22px;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 55%);
}

.category-cover span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-overview-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.category-samples a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 750;
}

.ranking-layout .ranking-grid {
  margin-top: 28px;
}

.detail-main {
  padding-top: 0;
}

.detail-hero-section {
  position: relative;
  overflow: hidden;
  padding: 116px 0 72px;
  color: white;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  filter: blur(3px);
}

.detail-hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.72)), linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 55%);
}

.detail-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

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

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  color: white;
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 62px);
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 20px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 0 22px;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 4px 0 0;
  color: white;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 26px;
}

.watch-section {
  padding-bottom: 36px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28), rgba(2, 6, 23, 0.64));
  cursor: pointer;
}

.video-shell.is-playing .player-overlay {
  display: none;
}

.overlay-play {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

.detail-text-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 36px;
}

.text-panel {
  padding: 30px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 26px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.text-panel h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.text-panel p {
  margin: 0;
  font-size: 17px;
}

.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

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

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

.footer-grid p {
  margin: 14px 0 0;
  font-size: 14px;
}

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

.footer-grid a {
  color: #475569;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  color: #64748b;
}

.back-to-top {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

[hidden] {
  display: none !important;
}

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

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

  .split-section,
  .detail-text-section,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-block;
  }

  .mobile-menu.open {
    display: block;
  }

  .hero {
    height: auto;
    min-height: 650px;
  }

  .hero-content {
    padding-top: 92px;
    padding-bottom: 110px;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .search-strip,
  .split-section,
  .detail-grid,
  .detail-meta,
  .detail-text-section,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .search-strip {
    margin-top: -28px;
  }

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

  .horizontal-card a {
    grid-template-columns: auto 92px minmax(0, 1fr);
  }

  .horizontal-card img {
    width: 92px;
    height: 108px;
  }

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

@media (max-width: 560px) {
  .site-logo-text,
  .mobile-logo {
    font-size: 18px;
  }

  .site-logo-mark {
    width: 36px;
    height: 36px;
  }

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

  .movie-grid,
  .mini-grid,
  .category-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .content-section,
  .inner-section {
    padding: 52px 0;
  }

  .movie-card-body p {
    min-height: 0;
  }

  .horizontal-card a {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .horizontal-rank {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .horizontal-card img {
    display: none;
  }

  .detail-hero-section {
    padding-top: 96px;
  }

  .page-hero {
    min-height: 280px;
  }
}
