:root {
  --bg: #f8fbff;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --night: #0f172a;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 45%, #f6fffd 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
}

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

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #334155;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

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

.hero-carousel {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 16% 20%, rgba(34, 211, 238, 0.35), transparent 28%), linear-gradient(135deg, #1d4ed8 0%, #0891b2 52%, #0f766e 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.36));
  pointer-events: none;
}

.hero-slides {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 590px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 46px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-copy {
  max-width: 710px;
  padding: 40px 0;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.content-label,
.overview-body span,
.category-card-main span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-copy h1 span {
  display: block;
  color: #cffafe;
}

.hero-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: #e0f2fe;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-tags,
.detail-tags,
.movie-tags,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button,
.text-button,
.home-search button,
.clear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 12px 24px;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.home-search button:hover,
.clear-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  padding: 11px 22px;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-art {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.38);
  transform: rotate(1.4deg);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.28));
}

.hero-art img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.hero-prev {
  left: max(18px, calc((100vw - 1180px) / 2 - 68px));
}

.hero-next {
  right: max(18px, calc((100vw - 1180px) / 2 - 68px));
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.section-spacing {
  margin-top: 70px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading span,
.content-label,
.overview-body span,
.category-card-main span {
  color: var(--blue);
  background: #eff6ff;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading p,
.page-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

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

.center-heading span,
.center-heading p {
  margin-left: auto;
  margin-right: auto;
}

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

.featured-grid,
.movie-grid,
.category-grid,
.overview-grid,
.compact-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

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

.movie-card,
.category-card,
.overview-card,
.content-card,
.filter-panel,
.rank-item,
.compact-card {
  background: var(--paper);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--soft-shadow);
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.category-card:hover,
.overview-card:hover,
.compact-card:hover,
.rank-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster img,
.compact-card:hover img,
.overview-thumbs:hover img,
.rank-item:hover img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.76);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

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

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.overview-body h2 a:hover {
  color: var(--blue);
}

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

.movie-tags span {
  color: #1d4ed8;
  background: #dbeafe;
}

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

.wide-poster img {
  height: 100%;
  aspect-ratio: 4 / 3;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 84px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
}

.rank-cover img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rank-number {
  color: #cbd5e1;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.rank-content h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

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

.rank-meta span {
  color: #475569;
  background: #f1f5f9;
}

.text-button {
  min-height: 38px;
  padding: 9px 16px;
  color: var(--blue);
  background: #eff6ff;
}

.filter-panel {
  padding: 24px;
  border-radius: 24px;
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.filter-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.filter-panel p {
  margin: 0;
  color: var(--muted);
}

.home-search {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.home-search input,
.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.home-search input:focus,
.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.home-search button,
.clear-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.home-search button {
  padding: 0 20px;
}

.hot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hot-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 800;
}

.category-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #eef7ff, #ecfeff);
}

.category-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-main {
  display: block;
  min-height: 210px;
  padding: 24px;
}

.category-card-main h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

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

.category-mini-links {
  display: grid;
  gap: 8px;
  padding: 0 24px 24px;
}

.category-mini-links a,
.overview-links a {
  display: block;
  overflow: hidden;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-mini-links a:hover,
.overview-links a:hover,
.footer-links a:hover {
  color: var(--blue);
}

.page-hero {
  padding: 86px 0;
  color: #ffffff;
  background: radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.34), transparent 28%), linear-gradient(135deg, #1d4ed8, #0891b2 55%, #0f766e);
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.page-hero p {
  color: #e0f2fe;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 750;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  overflow: hidden;
  border-radius: 18px;
}

.overview-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.overview-body h2 {
  margin: 0 0 8px;
  font-size: 25px;
}

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

.overview-links {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.slim-button {
  min-height: 38px;
  padding: 8px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 160px;
  gap: 16px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.toolbar label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.search-toolbar {
  grid-template-columns: minmax(260px, 1fr) 220px 180px 110px;
}

.empty-state {
  display: none;
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

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

.is-hidden {
  display: none !important;
}

.detail-hero {
  padding: 52px 0 72px;
  color: #ffffff;
  background: radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.26), transparent 28%), linear-gradient(135deg, #0f172a, #1e3a8a 60%, #0e7490);
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin-top: 28px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

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

.detail-kicker {
  margin-bottom: 12px;
  color: #bae6fd;
  font-weight: 850;
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(38px, 5vw, 68px);
}

.detail-one-line {
  max-width: 760px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 20px;
}

.detail-tags {
  margin-top: 22px;
}

.detail-tags span {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
}

.small-tags span {
  color: #1d4ed8;
  background: #dbeafe;
}

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

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.52));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

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

.content-card {
  padding: 28px;
  border-radius: 24px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.detail-content-grid .content-card:nth-child(1),
.detail-content-grid .content-card:nth-child(2) {
  grid-column: 1;
}

.meta-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
}

.meta-card dl {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.meta-card div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
}

.meta-card dt {
  color: var(--muted);
  font-weight: 800;
}

.meta-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.compact-card {
  display: grid;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.compact-card span,
.compact-card small {
  padding-left: 12px;
  padding-right: 12px;
}

.compact-card span {
  display: -webkit-box;
  min-height: 48px;
  padding-top: 12px;
  overflow: hidden;
  font-weight: 850;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card small {
  padding-bottom: 14px;
  color: var(--muted);
}

.site-footer {
  margin-top: 80px;
  padding: 54px 0 26px;
  color: #dbeafe;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 560px;
  margin: 16px 0 0;
  color: #bfdbfe;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 24px;
  color: #93c5fd;
  text-align: center;
  border-top: 1px solid rgba(219, 234, 254, 0.16);
}

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

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

  .two-column-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .meta-card,
  .detail-content-grid .content-card:nth-child(1),
  .detail-content-grid .content-card:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }
}

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

  .nav-toggle {
    display: flex;
  }

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

  .hero-carousel,
  .hero-slides {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 22px;
    align-content: center;
    padding: 24px 0 72px;
  }

  .hero-art {
    width: min(320px, 76vw);
    margin: 0 auto;
  }

  .hero-arrow {
    top: auto;
    bottom: 24px;
  }

  .hero-prev {
    left: 24px;
  }

  .hero-next {
    right: 24px;
  }

  .hero-dots {
    bottom: 38px;
  }

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

  .detail-cover {
    width: min(320px, 78vw);
  }

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

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

  .rank-number {
    position: absolute;
    right: 20px;
    color: #e2e8f0;
  }

  .rank-item .text-button {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 640px) {
  .nav-shell,
  .footer-shell,
  .section-shell,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 19px;
  }

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

  .hero-copy p,
  .detail-one-line {
    font-size: 16px;
  }

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

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

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

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

  .movie-card p {
    font-size: 13px;
  }

  .page-hero,
  .detail-hero {
    padding: 58px 0;
  }

  .detail-cover {
    margin: 0 auto;
  }

  .content-card {
    padding: 20px;
  }

  .content-card p {
    font-size: 15px;
  }

  .meta-card div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hero-actions,
  .detail-actions,
  .heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .text-button {
    width: fit-content;
  }
}
