:root {
  --bg: #f7fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --cyan: #22d3ee;
  --rose: #fb7185;
  --amber: #f59e0b;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%);
  line-height: 1.6;
}

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: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  color: #ffffff;
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.24);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: #052e2b;
  font-size: 14px;
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.35);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #34d399, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav > a,
.nav-dropdown > button {
  color: #e2e8f0;
  border: 0;
  background: transparent;
  padding: 22px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown > button:hover {
  color: #34d399;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 190px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #dbeafe;
}

.dropdown-panel a:hover {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  outline: none;
  background: rgba(15, 23, 42, 0.5);
  color: #ffffff;
  padding: 10px 14px;
  min-width: 230px;
  transition: all 0.2s ease;
}

.header-search input::placeholder,
.search-page-form input::placeholder,
.filter-bar input::placeholder {
  color: #94a3b8;
}

.header-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.header-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #052e2b;
  font-weight: 700;
  background: linear-gradient(135deg, #34d399, #67e8f9);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 26px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 12px 24px 20px;
  background: #0f172a;
}

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

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #e2e8f0;
}

.mobile-panel a:hover {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

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

.mobile-panel input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #ffffff;
  padding: 10px 12px;
}

.mobile-panel button {
  border: 0;
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
  padding: 10px 14px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #0f172a;
  color: #ffffff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-image,
.hero-image img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.22), transparent 36%), linear-gradient(135deg, #0f172a, #064e3b);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.78) 46%, rgba(6, 78, 59, 0.64) 100%), linear-gradient(0deg, #0f172a 0%, transparent 42%);
}

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

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

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ffffff, #a7f3d0, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin: 20px 0 0;
  max-width: 680px;
  color: #cbd5e1;
  font-size: 20px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.rank-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.primary-btn {
  padding: 13px 24px;
  color: #052e2b;
  background: linear-gradient(135deg, #34d399, #67e8f9);
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.26);
}

.primary-btn:hover,
.header-search button:hover,
.search-page-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(16, 185, 129, 0.35);
}

.ghost-btn {
  padding: 12px 22px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(103, 232, 249, 0.5);
}

.hero-feature-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(2deg);
}

.hero-feature-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  min-height: 420px;
  background: linear-gradient(135deg, #1e293b, #064e3b);
}

.hero-feature-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
}

.hero-feature-card strong {
  font-size: 34px;
  color: #34d399;
}

.hero-feature-card span {
  color: #dbeafe;
}

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

.hero-dots button {
  width: 32px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dots button.active {
  background: linear-gradient(90deg, #34d399, #67e8f9);
}

.hero-quick-links {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-quick-links a {
  border-radius: 999px;
  padding: 8px 13px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.26);
  backdrop-filter: blur(10px);
}

.hero-quick-links a:hover {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.4);
}

.content-section {
  padding: 72px 0;
}

.soft-bg {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

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

.section-head h2,
.category-card-panel h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.section-head p,
.category-card-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link,
.text-link {
  color: var(--emerald-dark);
  font-weight: 800;
}

.section-link:hover,
.text-link:hover {
  color: #0f766e;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #064e3b);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.82) 100%);
}

.play-chip,
.score-chip {
  position: absolute;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  padding: 7px 11px;
  background: linear-gradient(135deg, #10b981, #22d3ee);
}

.score-chip {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

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

.movie-meta-line,
.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-line a {
  color: var(--emerald-dark);
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.rank-title:hover {
  color: var(--emerald-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.category-card-panel,
.detail-side,
.detail-article,
.player-shell,
.category-overview-card {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.category-card-panel {
  position: sticky;
  top: 92px;
  padding: 28px;
}

.category-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.category-chip-grid a {
  border-radius: 16px;
  padding: 12px;
  color: #065f46;
  background: #ecfdf5;
  font-weight: 800;
}

.category-chip-grid a:hover {
  background: #d1fae5;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.rank-no {
  width: 42px;
  color: #10b981;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-cover img {
  width: 92px;
  height: 122px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #064e3b);
}

.rank-title {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 900;
}

.rank-info p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-action {
  padding: 10px 16px;
  color: #052e2b;
  background: #a7f3d0;
}

.rank-action:hover {
  background: #6ee7b7;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.18), transparent 30%), linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
}

.compact-page-hero {
  padding: 76px 0 60px;
}

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

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

.compact-page-hero .breadcrumb {
  margin-bottom: 24px;
}

.filter-bar,
.search-page-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.filter-bar input,
.filter-bar select,
.search-page-form input {
  min-width: min(290px, 100%);
  background: rgba(15, 23, 42, 0.62);
}

.filter-bar select {
  color: #e2e8f0;
}

.filter-bar option {
  color: #0f172a;
}

.empty-state,
.search-summary {
  display: none;
  border-radius: 18px;
  padding: 18px 20px;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-weight: 800;
}

.search-summary {
  display: block;
  margin-bottom: 22px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  align-items: center;
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.category-poster-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #064e3b);
}

.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.detail-hero {
  min-height: 560px;
  padding: 40px 0 70px;
}

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.2);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72)), linear-gradient(0deg, #0f172a 0%, transparent 40%);
}

.detail-breadcrumb,
.detail-hero-grid {
  position: relative;
  z-index: 2;
}

.detail-breadcrumb {
  margin: 10px auto 34px;
}

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

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
  background: linear-gradient(135deg, #1e293b, #064e3b);
}

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

.detail-cover span {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #052e2b;
  background: #a7f3d0;
  font-weight: 900;
}

.detail-meta-list {
  margin-top: 22px;
  color: #dbeafe;
}

.detail-meta-list span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.1);
}

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

.player-shell {
  overflow: hidden;
  background: #020617;
  border-color: rgba(15, 23, 42, 0.9);
}

.video-wrap {
  position: relative;
  background: #000000;
}

.video-wrap video {
  width: 100%;
  min-height: 420px;
  max-height: 78vh;
  background: #000000;
}

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.45));
  cursor: pointer;
}

.video-start span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #052e2b;
  background: linear-gradient(135deg, #34d399, #67e8f9);
  font-size: 36px;
  box-shadow: 0 24px 60px rgba(16, 185, 129, 0.35);
}

.player-shell.is-playing .video-start {
  display: none;
}

.player-info-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  color: #cbd5e1;
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

.detail-article {
  padding: 30px;
}

.detail-article h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 17px;
}

.detail-tags {
  align-items: center;
  margin-top: 18px;
}

.detail-tags strong {
  margin-right: 2px;
}

.detail-tags a {
  color: #065f46;
  background: #ecfdf5;
}

.detail-side {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.detail-side h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  font-weight: 800;
}

.detail-side a {
  color: var(--emerald-dark);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.2fr;
  gap: 36px;
}

.footer-grid p {
  color: #94a3b8;
  max-width: 420px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #6ee7b7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

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

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

  .hero-content,
  .split-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .category-card-panel,
  .detail-side {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: flex;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 52px;
    padding-bottom: 150px;
  }

  .hero-feature-card {
    max-width: 280px;
    transform: none;
  }

  .hero-feature-card img {
    min-height: 360px;
  }

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

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

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

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

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

  .rank-action {
    grid-column: 3;
    width: fit-content;
  }
}

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

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 17px;
  }

  .movie-grid,
  .four-grid,
  .compact-grid,
  .category-grid,
  .category-chip-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-no {
    display: none;
  }

  .rank-cover img {
    width: 64px;
    height: 90px;
  }

  .rank-action {
    grid-column: 2;
  }

  .video-wrap video {
    min-height: 240px;
  }

  .detail-article,
  .detail-side,
  .category-card-panel {
    padding: 22px;
  }
}
