:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --blue-500: #3b82f6;
  --cyan-400: #22d3ee;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(14, 116, 144, 0.14);
  --soft-shadow: 0 10px 25px rgba(14, 116, 144, 0.11);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--sky-50), var(--white) 45%, var(--sky-50));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.96), rgba(239, 246, 255, 0.94), rgba(207, 250, 254, 0.96));
  border-bottom: 1px solid rgba(186, 230, 253, 0.8);
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.12);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.36);
  transition: transform 0.25s ease;
}

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

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

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

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--gray-700);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
  color: var(--sky-700);
  background: rgba(186, 230, 253, 0.72);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.top-search input,
.mobile-search input,
.hero-search input,
.filter-box input,
.filter-box select {
  border: 1px solid var(--sky-200);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: var(--gray-900);
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.top-search input {
  width: 220px;
  padding: 10px 14px;
}

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

.top-search button,
.mobile-search button,
.hero-search button,
.button,
.filter-box button,
.player-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.top-search button,
.mobile-search button,
.hero-search button,
.filter-box button,
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-500));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.24);
}

.top-search button {
  padding: 10px 16px;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.filter-box button:hover,
.button:hover,
.player-button:hover {
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(186, 230, 253, 0.66);
  padding: 10px;
}

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

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--sky-200);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin: 16px auto;
  width: min(680px, 100%);
}

.mobile-search input {
  flex: 1;
  padding: 11px 14px;
}

.mobile-search button {
  padding: 11px 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  width: min(680px, 100%);
  margin: 0 auto;
}

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

.hero-shell {
  position: relative;
  padding-bottom: 28px;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.88), rgba(255, 255, 255, 0));
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--sky-700);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  align-items: center;
  gap: 54px;
  padding: 78px max(24px, calc((100vw - 1180px) / 2)) 92px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(3, 7, 18, 0.88), rgba(3, 105, 161, 0.58), rgba(14, 165, 233, 0.22)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 12% 25%, rgba(34, 211, 238, 0.45), transparent 28%), linear-gradient(0deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.1));
}

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

.hero-copy {
  max-width: 740px;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--sky-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #dff7ff;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.hero-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
}

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

.button.ghost {
  color: var(--white);
  background: rgba(14, 165, 233, 0.28);
  border: 1px solid rgba(125, 211, 252, 0.42);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.22));
}

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

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
}

.hero-dot.active {
  width: 32px;
  border-radius: 999px;
  background: var(--white);
}

.hero-below {
  margin-top: -46px;
  position: relative;
  z-index: 4;
}

.hero-search {
  display: flex;
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(186, 230, 253, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  padding: 14px 18px;
}

.hero-search button {
  padding: 14px 24px;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  min-height: 78px;
  border: 1px solid rgba(186, 230, 253, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(14, 116, 144, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-thumb:hover,
.hero-thumb.active {
  transform: translateY(-3px);
  border-color: var(--sky-400);
  box-shadow: var(--soft-shadow);
}

.hero-thumb img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-thumb span {
  min-width: 0;
  color: var(--gray-700);
  font-size: 0.88rem;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  color: var(--white);
  padding: 64px 0;
  background: linear-gradient(135deg, var(--cyan-400), var(--sky-500), var(--blue-500));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--sky-50);
  font-size: 1.08rem;
  line-height: 1.8;
}

.main-space {
  padding: 56px 0;
}

.section {
  margin-bottom: 64px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

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

.section-more {
  color: var(--sky-600);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(14, 116, 144, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-100), var(--sky-200));
}

.movie-card.compact-card .card-cover {
  aspect-ratio: 3 / 4;
}

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

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

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

.card-badge,
.card-duration {
  position: absolute;
  z-index: 2;
  color: var(--white);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: var(--sky-500);
}

.card-duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.card-body h3 a:hover {
  color: var(--sky-600);
}

.card-body p {
  min-height: 3.2em;
  margin: 0 0 14px;
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--gray-500);
  font-size: 0.78rem;
}

.card-meta a {
  color: var(--sky-600);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 24px;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile:nth-child(3n + 2) {
  background: linear-gradient(135deg, #2dd4bf, var(--sky-500));
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #818cf8, var(--sky-500));
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 50px rgba(14, 116, 144, 0.2);
}

.category-tile strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.category-tile span {
  display: inline-flex;
  margin-top: 20px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud a,
.detail-tags span {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--sky-200);
  box-shadow: 0 7px 16px rgba(14, 116, 144, 0.08);
  font-weight: 700;
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.tag-cloud a:hover {
  color: var(--sky-700);
  background: var(--sky-100);
  transform: translateY(-2px);
}

.rank-panel {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(186, 230, 253, 0.6);
  box-shadow: var(--soft-shadow);
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.25s ease;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: var(--sky-50);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-700);
  background: var(--sky-100);
  border-radius: 50%;
  font-weight: 900;
}

.rank-row:nth-child(1) .rank-number {
  color: var(--white);
  background: #fbbf24;
}

.rank-row:nth-child(2) .rank-number {
  color: var(--white);
  background: #94a3b8;
}

.rank-row:nth-child(3) .rank-number {
  color: var(--white);
  background: #b45309;
}

.rank-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong {
  display: block;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info small {
  color: var(--gray-500);
}

.rank-heat {
  color: var(--sky-600);
  font-weight: 900;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--sky-200);
  box-shadow: var(--soft-shadow);
}

.filter-box input,
.filter-box select {
  min-width: 0;
  padding: 12px 16px;
}

.filter-box button {
  padding: 12px 18px;
}

.empty-state {
  display: none;
  padding: 44px;
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.empty-state.show {
  display: block;
}

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

.detail-main,
.detail-side,
.player-card {
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(186, 230, 253, 0.55);
  box-shadow: var(--soft-shadow);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

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

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

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-500));
  box-shadow: 0 18px 46px rgba(14, 165, 233, 0.38);
  transform: translate(-50%, -50%);
}

.video-stage.playing .player-button {
  opacity: 0;
  pointer-events: none;
}

.detail-main {
  padding: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--gray-500);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--sky-600);
  font-weight: 800;
}

.detail-main h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-meta span,
.detail-meta a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--sky-700);
  background: var(--sky-100);
  font-weight: 800;
  font-size: 0.88rem;
}

.detail-block {
  padding: 22px 0;
  border-top: 1px solid var(--gray-100);
}

.detail-block h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.detail-block p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.95;
}

.lede {
  color: var(--sky-700) !important;
  font-weight: 700;
  font-style: italic;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-side {
  padding: 20px;
}

.detail-side h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.side-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.side-card:last-child {
  border-bottom: 0;
}

.side-card img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 15px;
}

.side-card strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.side-card span {
  display: block;
  color: var(--gray-500);
  font-size: 0.82rem;
  line-height: 1.5;
}

.search-results-title {
  margin: 0 0 24px;
  font-size: 1.25rem;
  color: var(--gray-600);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-brand p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 0.94rem;
  letter-spacing: 0.06em;
}

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

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

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

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

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

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

  .top-search {
    display: none;
  }

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

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

@media (max-width: 820px) {
  .hero-carousel {
    min-height: 700px;
  }

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

  .hero-poster {
    max-width: 260px;
    justify-self: center;
  }

  .hero-search {
    flex-direction: column;
  }

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

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

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

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

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 62px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text small {
    display: none;
  }

  .hero-carousel {
    min-height: 660px;
  }

  .hero-slide {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-thumbs,
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-row img {
    width: 58px;
    height: 58px;
  }

  .rank-heat {
    display: none;
  }

  .detail-main {
    padding: 22px;
  }
}
