:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.18);
  --radius-xl: 22px;
  --radius-2xl: 30px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, #ffffff 0%, rgba(240, 249, 255, 0.6) 42%, rgba(255, 251, 235, 0.72) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(125, 211, 252, 0.45);
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.96), rgba(255, 251, 235, 0.96), rgba(240, 249, 255, 0.96));
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sky-500), var(--amber-400));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .brand-mark {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
}

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

.brand-text strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--sky-600), var(--amber-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text em {
  margin-top: 4px;
  color: var(--gray-500);
  font-style: normal;
  font-size: 12px;
}

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

.main-nav a,
.mobile-panel a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
  color: var(--sky-700, #0369a1);
  background: linear-gradient(90deg, var(--sky-100), var(--amber-100));
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.header-search input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 9px 8px 9px 14px;
  background: transparent;
  color: var(--gray-800);
}

.header-search button,
.btn,
.search-main-field button,
.guide-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button {
  padding: 9px 16px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
}

.header-search button:hover,
.btn:hover,
.search-main-field button:hover,
.guide-search button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(224, 242, 254, 0.75);
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--gray-700);
}

.mobile-panel {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

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

.hero {
  position: relative;
  min-height: 640px;
  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-image,
.detail-backdrop,
.poster-shell {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.55), transparent 34%), linear-gradient(135deg, #0f172a, #0ea5e9 45%, #f59e0b);
}

.hero-image,
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.poster-shell.is-missing-image::before,
.hero-image.is-missing-image::before {
  content: attr(data-poster-title);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: clamp(18px, 5vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 640px;
}

.hero-copy {
  max-width: 670px;
  color: #ffffff;
  animation: fadeUp 0.8s ease both;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.86), rgba(245, 158, 11, 0.86));
  backdrop-filter: blur(8px);
}

.hero-copy h1,
.detail-intro h1,
.sub-hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.detail-intro p,
.sub-hero p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.hero-actions,
.center-actions,
.guide-links,
.filter-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.btn {
  min-height: 46px;
  padding: 0 22px;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
  box-shadow: 0 18px 32px rgba(14, 165, 233, 0.24);
}

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

.btn-ghost-dark {
  color: var(--sky-600);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 6;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.84), rgba(255, 251, 235, 0.84));
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-heading > span {
  width: 6px;
  height: 52px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--sky-500), var(--amber-500));
}

.section-heading h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-500);
  line-height: 1.7;
}

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

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

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

.movie-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

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

.movie-card a {
  display: block;
  height: 100%;
}

.movie-card .poster-shell {
  aspect-ratio: 16 / 10;
}

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

.poster-shell img {
  transition: transform 0.5s ease, opacity 0.3s ease;
}

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 4;
}

.poster-badge {
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.92), rgba(245, 158, 11, 0.92));
}

.poster-play {
  left: 14px;
  bottom: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(8px);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

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

.movie-card-body h3,
.rank-item h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card:hover h3,
.rank-item:hover h3 {
  color: var(--sky-600);
}

.movie-card-body p,
.rank-item p {
  display: -webkit-box;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--gray-600);
  font-size: 12px;
  background: linear-gradient(90deg, var(--sky-100), var(--amber-100));
}

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

.category-card,
.category-overview-card a,
.guide-card,
.content-card,
.side-card,
.search-panel {
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.category-card {
  display: block;
  min-height: 176px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover,
.category-overview-card a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  color: transparent;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--sky-600), var(--amber-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.category-card p,
.category-overview-card p,
.guide-card p,
.content-card p,
.page-card p {
  color: var(--gray-600);
  line-height: 1.85;
}

.category-card span,
.category-overview-card strong,
.filter-strip a,
.guide-links a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--sky-600);
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
  gap: 28px;
  align-items: start;
}

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

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

.rank-item a {
  display: grid;
  grid-template-columns: auto 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.rank-item a:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, #ffffff, var(--sky-50), var(--amber-50));
  box-shadow: var(--shadow-md);
}

.rank-num {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky-500), var(--amber-500));
}

.rank-cover {
  height: 78px;
  border-radius: 14px;
}

.rank-item p {
  margin: 5px 0;
  font-size: 14px;
}

.rank-item span:not(.rank-num) {
  color: var(--gray-500);
  font-size: 12px;
}

.guide-card {
  position: sticky;
  top: 108px;
  padding: 30px;
}

.guide-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.guide-search,
.search-main-field {
  display: flex;
  gap: 10px;
}

.guide-search {
  margin-top: 22px;
}

.guide-search input,
.search-main-field input,
.filter-controls select {
  min-width: 0;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: 0;
  background: #ffffff;
}

.guide-search input,
.search-main-field input {
  flex: 1;
  padding: 14px 18px;
}

.guide-search button,
.search-main-field button {
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
}

.guide-links {
  margin-top: 20px;
}

.guide-links a,
.filter-strip a {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--sky-50);
}

.center-actions {
  justify-content: center;
  margin-top: 34px;
}

.sub-hero {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 22%), linear-gradient(120deg, var(--sky-500), var(--amber-500));
}

.sub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20px 20px, #ffffff 2px, transparent 0);
  background-size: 44px 44px;
}

.sub-hero .container {
  position: relative;
  z-index: 2;
}

.sub-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sub-hero-compact {
  min-height: 260px;
}

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

.category-overview-card a {
  display: block;
  height: 100%;
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky-500), var(--amber-500));
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-samples span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--gray-600);
  font-size: 12px;
  background: var(--gray-100);
}

.filter-strip {
  margin-bottom: 24px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
}

.pagination:last-child {
  margin: 28px 0 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.pagination a.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: var(--gray-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.24));
}

.detail-hero-content {
  position: relative;
  z-index: 4;
  padding: 42px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-intro {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.48));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, var(--sky-500), var(--amber-500));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

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

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
}

.content-card,
.side-card,
.page-card {
  padding: 28px;
}

.content-card h2,
.side-card h2,
.page-card h2 {
  margin: 0 0 16px;
  color: var(--gray-800);
  font-size: 26px;
}

.side-card {
  position: sticky;
  top: 108px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: var(--gray-500);
}

.side-card dd {
  margin: 0;
  color: var(--gray-800);
  font-weight: 700;
}

.side-card a {
  color: var(--sky-600);
}

.search-panel {
  padding: 24px;
  margin-bottom: 24px;
}

.search-main-field {
  margin-bottom: 18px;
}

.search-main-field input {
  font-size: 18px;
}

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

.filter-controls label {
  display: grid;
  gap: 8px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 700;
}

.filter-controls select {
  width: 100%;
  padding: 12px 14px;
}

.search-status {
  margin-bottom: 22px;
  color: var(--gray-600);
  font-weight: 700;
}

.site-footer {
  margin-top: 60px;
  padding: 56px 0 26px;
  background: #ffffff;
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 520px;
  color: var(--gray-600);
  line-height: 1.8;
}

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

.site-footer a:not(.brand) {
  display: block;
  margin: 9px 0;
  color: var(--gray-600);
}

.site-footer a:hover {
  color: var(--sky-600);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .guide-card,
  .side-card {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero-control {
    display: none;
  }

  .movie-grid,
  .movie-grid-featured,
  .category-grid,
  .category-overview-grid,
  .rank-list-wide,
  .filter-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-intro {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .rank-item a {
    grid-template-columns: auto 96px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand-text strong {
    font-size: 20px;
  }

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

  .hero-copy h1,
  .detail-intro h1,
  .sub-hero h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .detail-intro p,
  .sub-hero p {
    font-size: 16px;
  }

  .section {
    padding: 46px 0;
  }

  .movie-grid,
  .movie-grid-featured,
  .category-grid,
  .category-overview-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: 220px;
  }

  .guide-search,
  .search-main-field {
    flex-direction: column;
  }

  .rank-item a {
    grid-template-columns: auto 86px minmax(0, 1fr);
  }

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