:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --teal-600: #0d9488;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --amber-400: #fbbf24;
  --rose-500: #f43f5e;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--white), var(--slate-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--emerald-600), var(--teal-600));
  box-shadow: 0 10px 30px rgba(4, 120, 87, 0.24);
}

.header-inner {
  width: min(var(--container), calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--emerald-700);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.14);
}

.header-search {
  width: 300px;
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.header-search input,
.mobile-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 0 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: var(--white);
  background: transparent;
  padding: 0 14px;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search {
  display: flex;
  height: 44px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(16, 185, 129, 0.25), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.58) 48%, rgba(15, 23, 42, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--white);
}

.hero-kicker,
.section-heading span,
.page-hero span,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--emerald-50);
  background: linear-gradient(90deg, var(--emerald-600), var(--teal-600));
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 690px;
  margin: 0 0 26px;
  color: var(--slate-200);
  font-size: clamp(18px, 2.2vw, 22px);
}

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

.hero-tags a,
.hero-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--emerald-600);
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.32);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.ghost-button.light {
  color: var(--emerald-700);
  background: var(--emerald-50);
  box-shadow: inset 0 0 0 1px var(--emerald-100);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 26px;
}

.hero-next {
  right: 26px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background-color 0.2s ease;
}

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

.content-section,
.category-showcase,
.page-main {
  position: relative;
}

.content-section {
  padding: 72px 0;
  background: var(--white);
}

.content-section.soft-bg {
  background: linear-gradient(180deg, var(--white), var(--slate-50));
}

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

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

.section-heading h2 {
  margin: 10px 0 0;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--slate-500);
}

.center-heading {
  justify-content: center;
  text-align: center;
}

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

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

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

.movie-card {
  display: block;
  min-width: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.movie-card article {
  height: 100%;
}

.card-poster {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--slate-200);
}

.movie-card-compact .card-poster {
  height: 160px;
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.movie-card:hover .card-poster::after {
  opacity: 0.95;
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--emerald-600);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 21px;
  transform: translate(-50%, -50%) scale(0.92);
  transition: transform 0.2s ease;
}

.movie-card:hover .play-hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 3;
  color: var(--white);
  background: rgba(2, 6, 23, 0.82);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  padding: 5px 10px;
  text-align: center;
  background: linear-gradient(90deg, var(--rose-500), var(--amber-400));
}

.card-body {
  padding: 18px;
}

.card-meta-row,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
}

.card-meta-row span:first-child,
.card-tags span:first-child {
  color: var(--emerald-700);
  background: var(--emerald-50);
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 800;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 12px 0 8px;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 18px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

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

.movie-card-list article {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.movie-card-list .card-poster {
  height: 100%;
  min-height: 170px;
}

.category-showcase {
  padding: 76px 0;
  color: var(--white);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.category-showcase .section-heading h2,
.category-showcase .section-heading p {
  color: var(--white);
}

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

.category-tile {
  padding: 24px;
  min-height: 220px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.01);
  background: rgba(255, 255, 255, 0.13);
}

.category-tile span {
  font-size: 38px;
}

.category-tile h3 {
  margin: 14px 0 8px;
  color: var(--white);
  font-size: 21px;
}

.category-tile p {
  margin: 0 0 14px;
  color: var(--slate-300);
}

.category-tile b {
  color: var(--emerald-100);
}

.section-more {
  margin-top: 28px;
  text-align: center;
}

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

.page-main {
  background: var(--slate-50);
}

.breadcrumb {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--emerald-700);
  font-weight: 700;
}

.breadcrumb a::after {
  content: "›";
  margin-left: 8px;
  color: var(--slate-400);
}

.page-hero {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 34px;
  padding: 56px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 10%, rgba(16, 185, 129, 0.38), transparent 28%),
    linear-gradient(135deg, var(--slate-800), var(--emerald-700));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--emerald-50);
  font-size: 18px;
}

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

.category-overview-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-overview-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.category-overview-head > span {
  font-size: 38px;
}

.category-overview-head h2 {
  margin: 0 0 6px;
  color: var(--slate-800);
}

.category-overview-head p {
  margin: 0;
  color: var(--slate-600);
}

.category-overview-head b {
  color: var(--emerald-700);
  white-space: nowrap;
}

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-poster-row a {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-100);
}

.mini-poster-row img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.mini-poster-row span {
  display: block;
  padding: 8px;
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 700;
}

.listing-section {
  padding-bottom: 72px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 0.7fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  outline: 0;
  padding: 0 12px;
  color: var(--slate-800);
  background: var(--slate-50);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px var(--emerald-100);
}

.result-count {
  min-height: 24px;
  margin: 0 0 20px;
  color: var(--slate-500);
  font-weight: 700;
}

[data-card][hidden] {
  display: none;
}

.detail-main {
  background:
    linear-gradient(180deg, rgba(5, 150, 105, 0.08), transparent 420px),
    var(--slate-50);
}

.detail-top {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  background: var(--slate-200);
  box-shadow: var(--shadow-soft);
}

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

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin: 16px 0 12px;
  color: var(--slate-900);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--slate-600);
  font-size: 18px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}

.detail-meta div {
  padding: 14px;
  border-radius: 14px;
  background: var(--slate-50);
}

.detail-meta dt {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 4px 0 0;
  color: var(--slate-800);
  font-weight: 800;
}

.player-block,
.detail-content-grid {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 42px;
}

.compact-heading {
  margin-bottom: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--emerald-600);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.55));
  transition: opacity 0.2s ease;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  padding-left: 6px;
  border-radius: 999px;
  color: var(--emerald-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  font-size: 34px;
  transition: transform 0.2s ease;
}

.player-overlay:hover span {
  transform: scale(1.08);
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-loading,
.player-error {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  display: none;
  max-width: calc(100% - 36px);
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.78);
  font-weight: 800;
}

.player-shell.is-loading .player-loading,
.player-shell.has-error .player-error {
  display: block;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 26px;
}

.detail-article,
.detail-side,
.side-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-article {
  padding: 30px;
}

.detail-article h2,
.detail-side h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--slate-800);
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 24px;
  color: var(--slate-700);
  font-size: 17px;
}

.detail-side {
  padding: 24px;
  height: max-content;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tag-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--emerald-700);
  background: var(--emerald-50);
  font-weight: 800;
}

.side-card {
  padding: 20px;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
  color: var(--white);
}

.side-card h2,
.side-card p {
  color: var(--white);
}

.side-card a {
  display: inline-flex;
  margin-top: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--emerald-700);
  background: var(--white);
  font-weight: 800;
}

.related-section {
  padding-bottom: 72px;
}

.site-footer {
  color: var(--slate-300);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(180px, 0.7fr));
  gap: 34px;
  padding: 48px 0;
}

.footer-logo {
  color: var(--white);
}

.footer-brand p {
  max-width: 460px;
  margin: 18px 0 0;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 10px;
}

.footer-column a:hover {
  color: var(--emerald-100);
}

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-bottom p {
  margin: 0;
}

.back-to-top {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--emerald-600);
  font-weight: 900;
}

@media (max-width: 1060px) {
  .header-search {
    width: 240px;
  }

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

  .rank-grid,
  .full-rank,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster img {
    max-height: 520px;
  }
}

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

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

  .hero {
    height: 620px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 86px;
  }

  .hero-arrow {
    display: none;
  }

  .content-section,
  .category-showcase {
    padding: 54px 0;
  }

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

  .page-hero {
    padding: 34px 24px;
  }

  .detail-top {
    padding: 20px;
  }

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

  .movie-card-list article {
    grid-template-columns: 1fr;
  }

  .movie-card-list .card-poster {
    height: 220px;
  }

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

@media (max-width: 580px) {
  .header-inner {
    height: 66px;
  }

  .site-logo {
    font-size: 19px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    height: 560px;
  }

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

  .movie-grid,
  .four-grid,
  .related-grid,
  .category-grid,
  .filter-panel,
  .mini-poster-row {
    grid-template-columns: 1fr;
  }

  .card-poster {
    height: 235px;
  }

  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

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

  .player-overlay span {
    width: 74px;
    height: 74px;
  }
}
