:root {
  color-scheme: dark;
  --night-950: #06111f;
  --night-900: #0a1929;
  --night-850: #0e2034;
  --night-800: #13283f;
  --night-700: #203852;
  --harbor-600: #0891b2;
  --harbor-500: #06b6d4;
  --harbor-400: #22d3ee;
  --amber-400: #f59e0b;
  --text-muted: #9ca3af;
  --text-soft: #cbd5e1;
  --border-soft: rgba(148, 163, 184, 0.18);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.38);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(8, 145, 178, 0.24), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.15), transparent 26rem),
    linear-gradient(180deg, var(--night-900), var(--night-950) 36%, #071522);
  color: #ffffff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 17, 31, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-logo::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--harbor-500), #2563eb 55%, var(--amber-400));
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 8px;
}

.desktop-nav a,
.mobile-panel a,
.footer-links a,
.breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active,
.footer-links a:hover,
.breadcrumb a:hover {
  color: var(--harbor-400);
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(19, 40, 63, 0.72);
}

.top-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  background: rgba(6, 17, 31, 0.78);
  border: 1px solid var(--border-soft);
  color: #ffffff;
  outline: none;
}

.top-search input {
  width: 220px;
  border: 0;
  background: transparent;
  padding: 6px 8px 6px 14px;
}

.top-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.play-trigger,
.filter-chip {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.top-search button,
.mobile-search button,
.primary-button,
.play-trigger {
  background: linear-gradient(135deg, var(--harbor-600), var(--harbor-500));
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 14px 34px rgba(8, 145, 178, 0.28);
}

.top-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.play-trigger:hover,
.secondary-button:hover,
.filter-chip:hover {
  transform: translateY(-1px);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: rgba(19, 40, 63, 0.82);
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  color: #ffffff;
  background: rgba(19, 40, 63, 0.8);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 14px;
  flex-direction: column;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  border-radius: 999px;
  padding: 12px 16px;
}

.hero-carousel {
  position: relative;
  height: min(760px, 72vh);
  min-height: 560px;
  overflow: hidden;
  background: var(--night-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.7s ease, transform 1.2s ease;
  background-position: center;
  background-size: cover;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 17, 31, 0.96), rgba(6, 17, 31, 0.74) 42%, rgba(6, 17, 31, 0.28)),
    linear-gradient(0deg, var(--night-950), transparent 34%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 48px;
  align-items: end;
  padding-bottom: 88px;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--harbor-400);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.hero-copy p {
  max-width: 620px;
  color: #d6dee9;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.primary-button,
.secondary-button {
  text-decoration: none;
}

.hero-side-card {
  align-self: end;
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  padding: 18px;
  background: rgba(10, 25, 41, 0.72);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(14px);
}

.hero-side-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
}

.hero-side-card strong {
  display: block;
  margin-top: 14px;
  color: #ffffff;
  font-size: 18px;
}

.hero-side-card span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.28s ease, background 0.28s ease;
}

.hero-dot.active {
  width: 36px;
  background: var(--harbor-400);
}

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

.page-hero {
  padding: 74px 0 36px;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.16), transparent 28rem),
    linear-gradient(180deg, rgba(19, 40, 63, 0.7), rgba(6, 17, 31, 0));
}

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

.page-hero h1,
.section-heading h2,
.detail-main h1 {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  letter-spacing: -0.04em;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.section-heading h2 {
  padding-left: 16px;
  border-left: 4px solid var(--harbor-500);
  font-size: 28px;
}

.section-heading p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--text-muted);
}

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

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

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

.movie-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: var(--night-800);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.23);
}

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

.movie-card:hover .movie-poster img,
.small-recommend:hover img,
.rank-item:hover img,
.category-card:hover img {
  transform: scale(1.08);
}

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.play-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(12px);
}

.movie-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.68);
}

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

.movie-card-body strong,
.movie-list-body h3,
.rank-item strong,
.small-recommend strong {
  color: #ffffff;
  transition: color 0.22s ease;
}

.movie-card:hover strong,
.movie-card-list:hover h3,
.rank-item:hover strong,
.small-recommend:hover strong {
  color: var(--harbor-400);
}

.movie-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}

.movie-card-body span,
.movie-card-body em,
.movie-list-body p,
.movie-meta-row,
.rank-item em,
.small-recommend em {
  color: var(--text-muted);
}

.movie-card-body span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.movie-card-body em {
  display: -webkit-box;
  overflow: hidden;
  min-height: 38px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.horizontal-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
}

.horizontal-row .movie-card {
  flex: 0 0 280px;
}

.glass-panel {
  padding: 30px;
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  background: rgba(19, 40, 63, 0.48);
  box-shadow: var(--shadow-strong);
}

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

.large-feature {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: end;
  color: #ffffff;
  text-decoration: none;
  border-radius: 26px;
  background: var(--night-800);
  box-shadow: var(--shadow-strong);
}

.large-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.large-feature:hover img {
  transform: scale(1.06);
}

.large-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 17, 31, 0.94), rgba(6, 17, 31, 0.2));
}

.large-feature span {
  position: relative;
  z-index: 2;
  display: block;
  padding: 28px;
}

.large-feature strong {
  display: block;
  font-size: 28px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.large-feature em {
  display: block;
  margin-top: 10px;
  color: #d6dee9;
  line-height: 1.7;
  font-style: normal;
}

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

.movie-card-list {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(19, 40, 63, 0.42);
  transition: background 0.22s ease, border-color 0.22s ease;
}

.movie-card-list:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(19, 40, 63, 0.68);
}

.movie-list-link {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.movie-list-link img {
  width: 168px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
}

.movie-list-body h3 {
  margin: 2px 0 8px;
  font-size: 18px;
}

.movie-list-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 13px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  align-items: end;
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(19, 40, 63, 0.94), rgba(6, 17, 31, 0.85));
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.26);
}

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

.category-card:hover img {
  opacity: 0.42;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 17, 31, 0.92), rgba(6, 17, 31, 0.25));
}

.category-card span {
  position: relative;
  z-index: 2;
  display: block;
  padding: 24px;
}

.category-card strong {
  display: block;
  font-size: 24px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.category-card em {
  display: block;
  margin-top: 10px;
  color: #d6dee9;
  line-height: 1.65;
  font-style: normal;
}

.filter-panel {
  margin: 0 0 34px;
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: rgba(19, 40, 63, 0.5);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
}

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

.filter-chip {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(6, 17, 31, 0.7);
}

.filter-chip.active {
  background: var(--harbor-600);
  border-color: var(--harbor-400);
}

.empty-state {
  display: none;
  padding: 54px 20px;
  text-align: center;
  color: var(--text-soft);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: rgba(19, 40, 63, 0.42);
}

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

.rank-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 132px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  background: rgba(19, 40, 63, 0.42);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--harbor-400);
  font-weight: 900;
}

.rank-item img {
  width: 132px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.5s ease;
}

.rank-item strong {
  display: block;
  font-size: 18px;
}

.rank-item p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--text-muted);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-item em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
}

.side-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: rgba(19, 40, 63, 0.48);
}

.side-panel h2,
.side-panel h3 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: 14px;
  padding: 11px 13px;
  background: rgba(6, 17, 31, 0.42);
}

.side-links a:hover {
  color: var(--harbor-400);
  background: rgba(8, 145, 178, 0.12);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  background-position: center;
  background-size: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 17, 31, 0.95), rgba(6, 17, 31, 0.72), rgba(6, 17, 31, 0.36)),
    linear-gradient(0deg, var(--night-950), transparent 42%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0 70px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-cover {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.detail-main h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.04;
}

.detail-subtitle {
  max-width: 800px;
  margin: 18px 0 0;
  color: #d6dee9;
  font-size: 18px;
  line-height: 1.8;
}

.info-pills,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.info-pills span,
.tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #d6dee9;
  background: rgba(19, 40, 63, 0.75);
  border: 1px solid var(--border-soft);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}

.player-card,
.detail-section,
.related-panel {
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  background: rgba(19, 40, 63, 0.48);
  box-shadow: var(--shadow-strong);
}

.player-card {
  overflow: hidden;
}

.player-frame {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.16));
  pointer-events: auto;
}

.player-overlay.hidden {
  display: none;
}

.play-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  padding: 14px 26px;
}

.player-body,
.detail-section {
  padding: 26px;
}

.player-body h2,
.detail-section h2,
.related-panel h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.player-body p,
.detail-section p {
  color: var(--text-soft);
  line-height: 1.85;
}

.detail-section {
  margin-top: 24px;
}

.related-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 22px;
}

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

.small-recommend {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.small-recommend img {
  width: 112px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.45s ease;
}

.small-recommend strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.small-recommend em {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border-soft);
  background: rgba(6, 17, 31, 0.72);
}

.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: center;
}

.site-footer p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hidden-card {
  display: none !important;
}

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

  .desktop-nav {
    margin-left: auto;
  }

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

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

  .side-panel,
  .related-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-carousel {
    height: auto;
    min-height: 680px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 120px;
    padding-bottom: 92px;
  }

  .hero-side-card {
    display: none;
  }

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

  .hero-copy p {
    font-size: 16px;
  }

  .section-heading {
    display: block;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .large-feature-grid,
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rank-item {
    grid-template-columns: 38px 104px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-item img {
    width: 104px;
    height: 70px;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .detail-cover {
    max-width: 360px;
  }

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

@media (max-width: 560px) {
  .site-header-inner {
    height: 64px;
  }

  .site-logo span {
    font-size: 15px;
  }

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

  .hero-copy h1 {
    font-size: 34px;
  }

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

  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .page-shell {
    padding: 48px 0;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .large-feature-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-row .movie-card {
    flex-basis: 250px;
  }

  .movie-list-link,
  .small-recommend {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .movie-list-link img {
    width: 112px;
    height: 78px;
  }

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

  .rank-item img {
    width: 86px;
    height: 62px;
  }

  .detail-main h1 {
    font-size: 34px;
  }

  .player-body,
  .detail-section,
  .related-panel {
    padding: 20px;
  }
}
