:root {
  --night-950: #0a1929;
  --night-925: #0d2236;
  --night-900: #102a43;
  --night-850: #17324d;
  --night-800: #243b53;
  --night-700: #334e68;
  --night-600: #486581;
  --night-400: #829ab1;
  --night-300: #9fb3c8;
  --night-200: #bcccdc;
  --ocean-700: #0f79cc;
  --ocean-600: #1a92e6;
  --ocean-500: #2eabff;
  --ocean-400: #53bbff;
  --ocean-300: #78caff;
  --moon-600: #7c3aed;
  --moon-500: #a855f7;
  --card: rgba(36, 59, 83, 0.54);
  --card-strong: rgba(36, 59, 83, 0.78);
  --line: rgba(130, 154, 177, 0.2);
  --text: #ffffff;
  --muted: #9fb3c8;
  --soft: #bcccdc;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(46, 171, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(168, 85, 247, 0.11), transparent 28rem),
    linear-gradient(180deg, var(--night-950), var(--night-900) 46%, var(--night-950));
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: linear-gradient(180deg, rgba(16, 42, 67, 0.88), rgba(16, 42, 67, 0.28), transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(16, 42, 67, 0.96);
  border-color: rgba(130, 154, 177, 0.16);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ocean-400), var(--ocean-600));
  box-shadow: 0 12px 30px rgba(26, 146, 230, 0.36);
  transition: transform 0.25s ease;
}

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

.brand-mark.small {
  width: 38px;
  height: 38px;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: #ffffff;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong,
.footer-logo strong {
  font-size: clamp(20px, 2.1vw, 27px);
  letter-spacing: 0.02em;
}

.brand-copy em {
  margin-top: 4px;
  color: var(--night-300);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
  justify-content: center;
}

.nav-link {
  color: var(--night-200);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link-soft {
  color: var(--night-300);
  font-size: 14px;
  font-weight: 600;
}

.header-search,
.intro-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input,
.intro-search input,
.local-filter input {
  width: 260px;
  height: 42px;
  padding: 0 48px 0 16px;
  color: #ffffff;
  background: rgba(36, 59, 83, 0.62);
  border: 1px solid rgba(130, 154, 177, 0.25);
  border-radius: 12px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input::placeholder,
.intro-search input::placeholder,
.local-filter input::placeholder {
  color: var(--night-400);
}

.header-search input:focus,
.intro-search input:focus,
.local-filter input:focus {
  background: rgba(36, 59, 83, 0.86);
  border-color: var(--ocean-500);
  box-shadow: 0 0 0 3px rgba(46, 171, 255, 0.18);
}

.header-search button {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--night-300);
  background: transparent;
  border: 0;
}

.header-search svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(36, 59, 83, 0.5);
  border: 1px solid rgba(130, 154, 177, 0.2);
  border-radius: 12px;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .menu-button span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .menu-button span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-button span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 16px;
  background: rgba(16, 42, 67, 0.98);
  border-top: 1px solid rgba(130, 154, 177, 0.16);
}

.mobile-link {
  display: block;
  padding: 13px 16px;
  color: var(--night-200);
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: rgba(36, 59, 83, 0.75);
}

.page-main {
  padding-top: 100px;
}

.home-main {
  padding-top: 0;
}

.hero {
  position: relative;
  min-height: clamp(620px, 86vh, 860px);
  overflow: hidden;
  background: var(--night-950);
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 25, 41, 0.96), rgba(10, 25, 41, 0.74) 34%, rgba(10, 25, 41, 0.28) 68%, rgba(10, 25, 41, 0.86)),
    linear-gradient(0deg, var(--night-950), transparent 45%, rgba(10, 25, 41, 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: clamp(620px, 86vh, 860px);
  padding-top: 84px;
}

.hero-copy {
  width: min(680px, 100%);
  padding: 34px;
  border: 1px solid rgba(130, 154, 177, 0.18);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(16, 42, 67, 0.8), rgba(16, 42, 67, 0.34));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ocean-300);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.intro-panel h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.intro-panel p,
.detail-one-line {
  color: var(--night-200);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.meta-row,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags {
  margin: 22px 0;
}

.hero-tags span,
.tag-row span,
.detail-meta li,
.meta-row span {
  color: var(--night-200);
  background: rgba(36, 59, 83, 0.7);
  border: 1px solid rgba(130, 154, 177, 0.18);
  border-radius: 999px;
}

.hero-tags span,
.tag-row span,
.meta-row span {
  padding: 7px 12px;
  font-size: 13px;
}

.hero-actions,
.intro-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.intro-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 800;
  border: 0;
  border-radius: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.intro-search button:hover {
  transform: translateY(-2px);
}

.button.primary,
.intro-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-700));
  box-shadow: 0 14px 36px rgba(26, 146, 230, 0.32);
}

.button.ghost {
  color: #ffffff;
  background: rgba(36, 59, 83, 0.68);
  border: 1px solid rgba(130, 154, 177, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  background: rgba(16, 42, 67, 0.82);
  border: 1px solid rgba(130, 154, 177, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(36, 59, 83, 0.92);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 13px;
  height: 13px;
  margin: auto;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
}

.hero-prev::before {
  transform: rotate(135deg) translate(-1px, -1px);
}

.hero-next::before {
  transform: rotate(-45deg) translate(-1px, -1px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background: rgba(188, 204, 220, 0.46);
  border: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.intro-panel,
.page-hero,
.content-section,
.detail-content,
.player-section {
  position: relative;
  z-index: 1;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: -74px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(16, 42, 67, 0.9), rgba(36, 59, 83, 0.68));
  border: 1px solid rgba(130, 154, 177, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-panel h1 {
  font-size: clamp(28px, 4vw, 48px);
}

.intro-panel p {
  max-width: 720px;
  margin: 12px 0 0;
}

.intro-search input {
  width: min(380px, 60vw);
  height: 48px;
  padding-right: 16px;
}

.page-hero {
  margin-top: 20px;
  padding: 44px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(46, 171, 255, 0.18), transparent 46%),
    linear-gradient(135deg, rgba(16, 42, 67, 0.86), rgba(36, 59, 83, 0.56));
  border: 1px solid rgba(130, 154, 177, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  font-size: clamp(32px, 5vw, 60px);
}

.compact-hero p {
  max-width: 820px;
  margin-top: 14px;
}

.local-filter {
  margin-top: 24px;
}

.local-filter input {
  width: min(520px, 100%);
  padding-right: 16px;
}

.content-section {
  margin-top: 58px;
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-700));
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(46, 171, 255, 0.25);
}

.section-more {
  color: var(--ocean-300);
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid-ranking,
.grid-latest,
.grid-library,
.grid-related {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(130, 154, 177, 0.16);
  border-radius: var(--radius-lg);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  background: var(--card-strong);
  border-color: rgba(83, 187, 255, 0.38);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}

.poster-link,
.wide-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--night-800);
}

.poster-link {
  aspect-ratio: 3 / 4;
}

.poster-link img,
.wide-cover img,
.category-backdrop img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

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

.poster-link::after,
.wide-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 25, 41, 0.84), transparent 60%);
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-link::after,
.movie-card:hover .wide-cover::after {
  opacity: 0.9;
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(16, 42, 67, 0.82);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.type-badge {
  top: 10px;
  right: 10px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-700));
}

.play-float,
.player-play {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(26, 146, 230, 0.9);
  box-shadow: 0 16px 36px rgba(26, 146, 230, 0.36);
}

.play-float {
  inset: 0;
  width: 56px;
  height: 56px;
  margin: auto;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: scale(1);
}

.play-float::before,
.player-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #ffffff;
}

.card-copy {
  padding: 15px;
}

.card-copy h3,
.wide-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--ocean-300);
}

.card-meta {
  justify-content: space-between;
  margin-top: 10px;
  color: var(--night-400);
  font-size: 13px;
}

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

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

.category-card {
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(130, 154, 177, 0.18);
  border-radius: var(--radius-xl);
  background: var(--card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(83, 187, 255, 0.34);
}

.category-card a {
  position: relative;
  display: block;
  min-height: 230px;
  padding: 24px;
}

.category-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.category-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 25, 41, 0.96), rgba(16, 42, 67, 0.68), rgba(10, 25, 41, 0.92));
}

.category-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 182px;
}

.category-copy span {
  color: var(--ocean-300);
  font-size: 13px;
  font-weight: 800;
}

.category-copy h2 {
  margin: 10px 0;
  color: #ffffff;
  font-size: 28px;
}

.category-copy p {
  margin: 0;
  color: var(--night-200);
  line-height: 1.7;
}

.wide-list {
  display: grid;
  gap: 18px;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  min-height: 190px;
}

.wide-cover {
  min-height: 190px;
  aspect-ratio: 16 / 9;
}

.wide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px;
}

.wide-copy p {
  margin: 0;
  color: var(--night-300);
  line-height: 1.7;
}

.meta-row {
  color: var(--night-300);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--night-300);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--ocean-300);
}

.detail-main {
  padding-top: 78px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 92px 0 64px;
}

.detail-bg,
.detail-bg::after,
.detail-bg img {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px);
  transform: scale(1.05);
  opacity: 0.32;
}

.detail-bg::after {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 25, 41, 0.98), rgba(10, 25, 41, 0.72), rgba(10, 25, 41, 0.92)),
    linear-gradient(0deg, var(--night-950), transparent 60%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(130, 154, 177, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  max-width: 860px;
}

.detail-one-line {
  max-width: 860px;
  margin: 18px 0 0;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(680px, 100%);
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.detail-meta li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border-radius: 14px;
}

.detail-meta span {
  color: var(--night-400);
}

.detail-meta strong {
  color: #ffffff;
  text-align: right;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  margin-top: -48px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid rgba(130, 154, 177, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  color: #ffffff;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.22)),
    rgba(10, 25, 41, 0.2);
  border: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
  position: relative;
  width: 82px;
  height: 82px;
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(18px, 3vw, 34px);
  text-align: center;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 44px;
}

.story-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid rgba(130, 154, 177, 0.16);
  border-radius: var(--radius-xl);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.story-card p {
  margin: 0;
  color: var(--night-200);
  line-height: 1.9;
}

.site-footer {
  margin-top: 74px;
  background: rgba(10, 25, 41, 0.96);
  border-top: 1px solid rgba(130, 154, 177, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0;
}

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

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--night-300);
  line-height: 1.8;
}

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

.footer-grid a:hover {
  color: var(--ocean-300);
}

.footer-bottom {
  border-top: 1px solid rgba(130, 154, 177, 0.14);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.is-filtered-out {
  display: none !important;
}

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

  .menu-button {
    display: block;
  }

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

  .grid-featured,
  .grid-ranking,
  .grid-latest,
  .grid-library,
  .grid-related,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .hero-copy,
  .intro-panel,
  .page-hero {
    padding: 24px;
  }

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

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

  .hero-arrow {
    display: none;
  }

  .grid-featured,
  .grid-ranking,
  .grid-latest,
  .grid-library,
  .grid-related,
  .category-grid,
  .category-grid.large,
  .detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-card-wide,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .wide-cover {
    min-height: 220px;
  }

  .detail-poster {
    width: min(320px, 80%);
    margin: 0 auto;
  }

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

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

  .brand-copy em {
    display: none;
  }

  .brand-copy strong {
    font-size: 19px;
  }

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

  .hero-copy {
    padding: 20px;
  }

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

  .hero-actions,
  .intro-search {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .intro-search button {
    width: 100%;
  }

  .grid-featured,
  .grid-ranking,
  .grid-latest,
  .grid-library,
  .grid-related,
  .category-grid,
  .category-grid.large,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-copy h3 {
    font-size: 16px;
  }

  .detail-hero {
    padding-top: 80px;
  }

  .player-section {
    margin-top: -20px;
  }

  .footer-bottom .container {
    flex-direction: column;
  }
}
