:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --cyan-50: #ecfeff;
  --cyan-400: #22d3ee;
  --blue-500: #3b82f6;
  --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 4px 14px rgba(3, 105, 161, 0.08);
  --shadow-md: 0 12px 28px rgba(3, 105, 161, 0.14);
  --shadow-lg: 0 24px 60px rgba(3, 105, 161, 0.2);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--white), var(--sky-50) 42%, var(--cyan-50));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.94), rgba(239, 246, 255, 0.94), rgba(236, 254, 255, 0.94));
  border-bottom: 1px solid rgba(186, 230, 253, 0.8);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-400));
  box-shadow: 0 10px 18px rgba(14, 165, 233, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

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

.brand-text strong {
  color: var(--sky-700);
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--sky-500);
  font-size: 12px;
  margin-top: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  color: var(--gray-700);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sky-700);
  background: rgba(224, 242, 254, 0.9);
  transform: translateY(-1px);
}

.nav-category {
  display: inline-flex;
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-search {
  border: 1px solid var(--sky-200);
  background: var(--white);
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--gray-800);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 210px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-search:focus {
  border-color: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
}

.nav-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.text-link {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-search button,
.mobile-search button,
.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-500));
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.26);
}

.nav-search button,
.mobile-search button {
  padding: 10px 16px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
}

.primary-btn:hover,
.nav-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.32);
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

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

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--sky-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--sky-200);
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.68);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 46px 20px 32px;
}

.hero-shell {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-heading {
  text-align: center;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sky-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-heading h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-heading p:last-child,
.page-hero p,
.detail-copy p {
  margin: 16px auto 0;
  max-width: 760px;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.75;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500), var(--cyan-400));
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(1.2);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.96), rgba(59, 130, 246, 0.82), rgba(34, 211, 238, 0.72));
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.24), transparent);
}

.hero-content {
  position: relative;
  min-height: 520px;
  padding: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 46px;
  z-index: 2;
}

.hero-copy .eyebrow,
.detail-copy .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.hero-copy h2 {
  margin: 0;
  max-width: 760px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.hero-copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  min-height: 390px;
  box-shadow: 0 30px 70px rgba(8, 47, 73, 0.34);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

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

.hero-play,
.poster-overlay,
.video-cover .play-ring {
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(14, 165, 233, 0.9);
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.35);
}

.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
}

.hero-controls {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 48px;
  background: var(--white);
}

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 54px 20px;
}

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

.section-title p {
  margin: 0 0 6px;
  color: var(--sky-600);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-title a,
.text-link {
  color: var(--sky-700);
  background: var(--sky-100);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.section-title a:hover,
.text-link:hover {
  color: var(--white);
  background: var(--sky-600);
}

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

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

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

.movie-card {
  background: var(--white);
  border: 1px solid rgba(186, 230, 253, 0.72);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky-300, #7dd3fc);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sky-100);
}

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

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

.poster-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(2, 132, 199, 0.94);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--sky-600);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3,
.rank-info h3,
.related-card h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover,
.related-card h3 a:hover {
  color: var(--sky-700);
}

.card-body p,
.rank-info p,
.related-card p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  color: var(--sky-700);
  background: var(--sky-100);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 24px;
  padding: 22px;
  color: var(--white);
  background: var(--sky-500);
  box-shadow: var(--shadow-md);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: transform 0.4s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 132, 199, 0.88), rgba(59, 130, 246, 0.38));
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  display: block;
  margin-top: 100px;
  font-size: 22px;
  font-weight: 850;
}

.category-card p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: stretch;
}

.rank-poster {
  position: relative;
  display: block;
  min-height: 150px;
  overflow: hidden;
}

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

.rank-poster span {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--sky-500);
  font-weight: 900;
}

.rank-info {
  padding: 18px;
}

.page-hero {
  max-width: var(--max-width);
  margin: 38px auto 0;
  border-radius: 32px;
  padding: 54px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500), var(--cyan-400));
  box-shadow: var(--shadow-lg);
}

.compact-hero {
  text-align: center;
}

.page-hero .eyebrow,
.page-hero h1,
.page-hero p {
  color: var(--white);
}

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

.channel-hero {
  position: relative;
  display: grid;
  min-height: 360px;
  align-items: center;
}

.channel-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.channel-hero > div {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(186, 230, 253, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.filter-search {
  width: 100%;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip-filter {
  border: 0;
  color: var(--sky-700);
  background: var(--sky-100);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}

.chip-filter.active,
.chip-filter:hover {
  color: var(--white);
  background: var(--sky-600);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--sky-200);
  border-radius: 26px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--sky-100);
}

.category-collage img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

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

.category-overview-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-500));
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 105, 161, 0.95), rgba(14, 165, 233, 0.68));
}

.detail-shell {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 38px 20px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

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

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

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(8, 47, 73, 0.35);
}

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

.detail-copy h1 {
  color: var(--white);
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.88);
  margin-left: 0;
}

.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.large-tags span {
  min-height: 32px;
  color: var(--sky-700);
  background: var(--white);
}

.detail-content {
  margin-top: -72px;
  position: relative;
  z-index: 4;
}

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

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid var(--white);
}

.video-cover strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  margin-top: 26px;
}

.story-card,
.side-card {
  background: var(--white);
  border: 1px solid var(--sky-200);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.story-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.story-card p {
  margin: 0 0 24px;
  color: var(--gray-700);
  line-height: 1.95;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.side-card dt {
  color: var(--sky-700);
  font-weight: 850;
}

.side-card dd {
  margin: -8px 0 0;
  color: var(--gray-700);
  line-height: 1.6;
}

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

.related-card {
  background: var(--white);
  border: 1px solid var(--sky-200);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.related-card > a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card > a span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--sky-500);
}

.related-card h3 {
  margin-top: 12px;
  font-size: 15px;
}

.related-card p {
  margin-bottom: 0;
  font-size: 13px;
}

.site-footer {
  margin-top: 46px;
  background: linear-gradient(180deg, var(--sky-50), var(--sky-100));
  border-top: 1px solid var(--sky-200);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 32px;
}

.footer-brand p,
.site-footer li,
.site-footer a {
  color: var(--gray-600);
  line-height: 1.75;
}

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

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

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

.footer-bottom {
  padding: 18px 20px;
  text-align: center;
  color: var(--gray-500);
  border-top: 1px solid rgba(186, 230, 253, 0.76);
}

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

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

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

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

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-content,
  .detail-grid,
  .detail-main-grid,
  .footer-grid,
  .overview-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 34px;
  }

  .hero-poster {
    display: none;
  }

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

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

@media (max-width: 640px) {
  .nav-shell {
    padding: 0 16px;
  }

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

  .hero {
    padding: 28px 14px 18px;
  }

  .hero-heading {
    text-align: left;
  }

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

  .hero-content {
    padding: 28px;
  }

  .hero-controls {
    left: 20px;
    right: 20px;
  }

  .content-section {
    padding: 40px 14px;
  }

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

  .featured-grid,
  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-poster {
    aspect-ratio: 16 / 10;
  }

  .page-hero {
    margin: 24px 14px 0;
    padding: 34px 24px;
    border-radius: 24px;
  }

  .detail-shell {
    padding-top: 24px;
  }

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

  .detail-content {
    margin-top: -36px;
  }
}
