:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --teal: #0d9488;
  --gold: #f59e0b;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 58%, #111827 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.32);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #042f2e;
  font-weight: 900;
  background: linear-gradient(135deg, #34d399, #5eead4);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.18);
  transform: translateY(-1px);
}

.nav-link-muted {
  color: #94a3b8;
}

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

.header-search input,
.mobile-search input {
  width: 180px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 9px 14px;
  color: #ffffff;
  outline: 0;
  background: rgba(15, 23, 42, 0.55);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #94a3b8;
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #042f2e;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #34d399, #5eead4);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.12);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 12px 16px 18px;
  background: #0f172a;
}

.mobile-link {
  display: block;
  padding: 11px 10px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.18);
}

.hero-section {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #0f172a;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 22% 38%, rgba(16, 185, 129, 0.4), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(248, 250, 252, 0.96) 96%);
}

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

.hero-copy {
  max-width: 760px;
  color: #ffffff;
  padding: 96px 0 150px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid rgba(94, 234, 212, 0.32);
  border-radius: 999px;
  padding: 6px 12px;
  color: #a7f3d0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(12px);
}

.eyebrow.dark {
  color: var(--emerald-dark);
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(16, 185, 129, 0.08);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.hero-copy h2 {
  margin-top: 16px;
  color: #d1fae5;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 850;
}

.hero-copy p {
  max-width: 650px;
  margin: 20px 0 0;
  color: #e2e8f0;
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #065f46;
  font-size: 12px;
  font-weight: 800;
  background: #d1fae5;
}

.tag-row span {
  color: #047857;
  background: #ecfdf5;
}

.large-tags span {
  padding: 7px 12px;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #042f2e;
  background: linear-gradient(135deg, #34d399, #5eead4);
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.28);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(10px);
}

.hero-thumbs {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 500px;
  padding-bottom: 32px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 8px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.active {
  border-color: rgba(94, 234, 212, 0.72);
  background: rgba(6, 95, 70, 0.72);
  transform: translateY(-2px);
}

.hero-thumb img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: #334155;
}

.hero-thumb span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.section-block {
  padding: 64px 0;
}

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

.inline-heading {
  display: block;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading a {
  color: var(--emerald-dark);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(16, 185, 129, 0.36);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f766e);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.82));
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 10px;
  top: 10px;
  color: #451a03;
  background: linear-gradient(135deg, #fbbf24, #fde68a);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.25);
}

.card-body {
  padding: 15px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--emerald-dark);
}

.card-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-compact .card-title {
  font-size: 15px;
}

.movie-card-compact .card-desc {
  display: none;
}

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

.category-tile,
.category-panel-head {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 210px;
  border-radius: 22px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  flex-direction: column;
  justify-content: flex-end;
  background: #0f172a;
}

.category-tile img,
.category-panel-head img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  transition: transform 0.35s ease;
}

.category-tile:hover img,
.category-panel-head:hover img {
  transform: scale(1.07);
}

.category-tile-shade,
.category-panel-head span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.9));
}

.category-tile strong,
.category-tile em,
.category-panel-head strong,
.category-panel-head em {
  position: relative;
  z-index: 1;
}

.category-tile strong,
.category-panel-head strong {
  font-size: 22px;
  font-weight: 900;
}

.category-tile em,
.category-panel-head em {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: #d1fae5;
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.feature-band,
.page-hero,
.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(20, 184, 166, 0.35), transparent 28%),
    linear-gradient(135deg, #064e3b 0%, #0f172a 58%, #111827 100%);
}

.feature-band {
  margin: 42px 0;
  padding: 72px 0;
}

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

.feature-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.feature-copy p,
.page-hero p {
  color: #dbeafe;
  font-size: 17px;
}

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

.compact-rank-list {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
}

.rank-list-item {
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 9px;
  color: #0f172a;
  background: #ffffff;
  transition: transform 0.18s ease, background 0.18s ease;
}

.compact-rank-list .rank-list-item {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.rank-list-item:hover {
  transform: translateX(4px);
}

.rank-list-item img {
  width: 54px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: #334155;
}

.list-rank,
.list-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #064e3b;
  font-size: 13px;
  font-weight: 900;
  background: #a7f3d0;
}

.list-dot {
  width: 10px;
  height: 10px;
  background: var(--emerald);
}

.rank-list-copy {
  min-width: 0;
}

.rank-list-copy strong,
.rank-list-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list-copy strong {
  font-weight: 900;
}

.rank-list-copy em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.rank-views {
  color: #10b981;
  font-size: 12px;
  font-weight: 900;
}

.page-hero {
  padding: 72px 0 64px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin: 22px 0 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.filter-search input,
.filter-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  outline: 0;
  background: #f8fafc;
}

.filter-search input:focus,
.filter-select:focus {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.filter-selects {
  display: flex;
  gap: 10px;
}

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

.sidebar-card,
.content-card,
.category-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.sidebar-card {
  position: sticky;
  top: 92px;
}

.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.category-panel {
  padding: 0;
  overflow: hidden;
}

.category-panel-head {
  min-height: 230px;
  border-radius: 0;
  box-shadow: none;
}

.mini-list {
  padding: 14px;
}

.empty-state {
  display: none;
  border: 1px dashed rgba(100, 116, 139, 0.32);
  border-radius: 18px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 68px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(14px);
  transform: scale(1.08);
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.7));
}

.detail-wrap {
  position: relative;
  z-index: 1;
}

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

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

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 900;
}

.detail-one-line {
  max-width: 840px;
  color: #dbeafe;
  font-size: 18px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.detail-meta li {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta strong,
.detail-meta span {
  display: block;
}

.detail-meta strong {
  color: #a7f3d0;
  font-size: 12px;
}

.detail-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.6));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  padding-left: 6px;
  color: #042f2e;
  font-size: 32px;
  background: linear-gradient(135deg, #34d399, #5eead4);
  box-shadow: 0 20px 45px rgba(16, 185, 129, 0.38);
}

.player-shell.is-playing .player-start {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

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

.content-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

.site-footer {
  margin-top: 52px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 28px;
  padding: 46px 0;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 16px;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #94a3b8;
}

.site-footer a:hover {
  color: #5eead4;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px;
  color: #64748b;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #042f2e;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #34d399, #5eead4);
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.28);
}

.back-to-top.show {
  display: block;
}

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

  .header-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

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

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

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

  .split-layout,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }

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

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

  .mobile-search {
    margin-top: 10px;
  }

  .mobile-search input {
    width: 100%;
  }

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

  .hero-copy {
    padding-top: 72px;
  }

  .hero-thumbs {
    grid-template-columns: 1fr;
    margin-top: 470px;
  }

  .hero-thumb:nth-child(n + 4) {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 10px;
  }

  .movie-grid,
  .compact-grid,
  .top-rank-grid,
  .category-tile-grid,
  .category-panel-grid,
  .detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .filter-selects {
    flex-direction: column;
  }

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

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

  .brand-title {
    font-size: 17px;
  }

  .brand-subtitle {
    display: none;
  }

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

  .hero-copy h2 {
    font-size: 23px;
  }

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

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

  .btn {
    width: 100%;
  }

  .movie-grid,
  .compact-grid,
  .top-rank-grid,
  .category-tile-grid,
  .category-panel-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

  .rank-views {
    display: none;
  }
}
