:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-hidden {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.nav-shell,
.footer-grid,
.footer-bottom,
.section,
.hero-inner,
.page-hero-inner,
.breadcrumbs,
.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.brand-name {
  font-size: 22px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: #334155;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: transform 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--blue);
  background: #eff6ff;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.45), transparent 36%), linear-gradient(135deg, #0f172a, #1d4ed8 48%, #06b6d4);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px);
  background-size: 54px 54px;
  opacity: 0.25;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.7) 42%, rgba(15, 23, 42, 0.32) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.04));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 52px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.hero-meta span,
.tag-row span,
.detail-tags span,
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

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

.btn-primary {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.btn-primary:hover {
  background: #eff6ff;
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border-radius: 30px;
  box-shadow: 0 34px 70px rgba(2, 6, 23, 0.45);
  transform: rotate(1.2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), transparent 45%);
}

.hero-poster-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 18px;
  border-radius: 22px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-poster-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.hero-dot {
  flex: 1;
  min-height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  overflow: hidden;
}

.hero-dot span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
}

.hero-dot.is-active span {
  width: 100%;
  transition: width 5.6s linear;
}

.section {
  padding: 72px 0;
}

.section.compact-section {
  padding-top: 38px;
}

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

.section-header h1,
.section-header h2,
.page-title h1 {
  margin: 0;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-header h2,
.page-title h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.section-header p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.86);
  backdrop-filter: blur(14px);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: #0f172a;
  background: #ffffff;
  font: inherit;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-chip {
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  color: #334155;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

.featured-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.featured-card img {
  transition: transform 0.6s ease;
}

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

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.18));
  z-index: 1;
}

.featured-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
  color: #ffffff;
}

.featured-info strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 22px;
  line-height: 1.22;
}

.featured-info span,
.featured-info p {
  color: rgba(255, 255, 255, 0.82);
}

.featured-info p {
  margin: 0;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.movie-card.compact .poster-frame {
  aspect-ratio: 16 / 10;
}

.poster-frame img {
  transition: transform 0.45s ease;
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.18));
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .card-overlay {
  opacity: 1;
}

.play-dot {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.26);
}

.watch-text {
  font-weight: 800;
}

.badge-year {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-body strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.32;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.meta-line,
.desc-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.meta-line {
  color: #475569;
  font-size: 13px;
  -webkit-line-clamp: 1;
}

.desc-line {
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 30px;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: var(--shadow);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -48px;
  bottom: -48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 23px;
}

.category-card span {
  display: block;
  color: rgba(255, 255, 255, 0.88);
}

.ranking-section {
  background: linear-gradient(135deg, #0f172a, #1e3a8a 52%, #0e7490);
  color: #ffffff;
}

.ranking-section .section-header h2,
.ranking-section .section-header p {
  color: #ffffff;
}

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

.wide-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 126px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-section .wide-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
}

.wide-card:hover {
  transform: translateX(6px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.16);
}

.rank-number {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

.wide-thumb {
  flex: 0 0 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.wide-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.wide-info strong {
  overflow: hidden;
  color: #0f172a;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 17px;
}

.ranking-section .wide-info strong,
.ranking-section .wide-info span,
.ranking-section .wide-info em {
  color: #ffffff;
}

.wide-info span {
  color: #475569;
  font-size: 13px;
}

.wide-info em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.52), transparent 36%), linear-gradient(135deg, #0f172a, #1d4ed8 58%, #06b6d4);
}

.page-hero-inner {
  padding: 70px 0;
}

.page-title {
  max-width: 820px;
}

.page-title h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 62px);
}

.page-title p {
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  color: #64748b;
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--blue);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 360px;
  gap: 28px;
  padding: 34px 0 76px;
}

.detail-main,
.detail-side,
.detail-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-main {
  overflow: hidden;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.3));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-cover-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.play-orb {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
  cursor: pointer;
  font-size: 32px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.player-cover strong {
  font-size: 24px;
}

.detail-content {
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.detail-content h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.category-pill {
  color: #2563eb;
  background: #eff6ff;
}

.detail-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.detail-section h2,
.detail-card h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 22px;
}

.detail-section p {
  margin: 0 0 14px;
  color: #334155;
  font-size: 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-tags span {
  color: #334155;
  background: #f1f5f9;
}

.detail-side {
  padding: 22px;
  align-self: start;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.side-card:hover {
  background: #f8fafc;
}

.side-card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.side-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0f172a;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 22px;
  color: #64748b;
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b 60%, #0e7490);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 36px;
  padding: 58px 0 42px;
}

.footer-logo .brand-name {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
}

.footer-brand p,
.site-footer p,
.site-footer a {
  color: #cbd5e1;
}

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

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

.site-footer a:hover {
  color: #67e8f9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.16);
}

.footer-bottom div {
  display: flex;
  gap: 18px;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .detail-side {
    align-self: auto;
  }
}

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

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

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 54px 0 86px;
  }

  .hero-poster {
    min-height: 360px;
    transform: none;
  }

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

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

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

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

@media (max-width: 620px) {
  .nav-shell,
  .footer-grid,
  .footer-bottom,
  .section,
  .hero-inner,
  .page-hero-inner,
  .breadcrumbs,
  .detail-layout {
    width: min(100% - 24px, 1180px);
  }

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

  .section {
    padding: 46px 0;
  }

  .section-header,
  .footer-bottom,
  .detail-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .side-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .detail-content {
    padding: 20px;
  }

  .page-hero-inner {
    padding: 48px 0;
  }
}
