:root {
  --bg: #fff7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #f3d7df;
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --green: #16a34a;
  --shadow: 0 20px 55px rgba(190, 18, 60, 0.16);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  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(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(253, 242, 248, 0.96));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.16);
  box-shadow: 0 10px 35px rgba(190, 18, 60, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.28);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
  font-weight: 700;
}

.desktop-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--rose-dark);
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.page-search input,
.inline-search input {
  border: 1px solid rgba(244, 63, 94, 0.22);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  min-width: 220px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus,
.inline-search input:focus {
  border-color: rgba(244, 63, 94, 0.65);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-search button,
.page-search button,
.sort-buttons button,
.primary-button,
.ghost-button,
.quick-actions a {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.page-search button,
.primary-button {
  background: linear-gradient(90deg, var(--rose), var(--pink));
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.24);
}

.header-search button:hover,
.mobile-search button:hover,
.page-search button:hover,
.primary-button:hover,
.quick-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(244, 63, 94, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffe4e9;
  color: var(--rose-dark);
  cursor: pointer;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  background: #ffffff;
  border-top: 1px solid #ffe4e9;
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7fb;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #fb7185, #ec4899 45%, #8b5cf6);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 22%, rgba(255, 255, 255, 0.35), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.12));
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  padding: 78px 0 74px;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.2)), var(--hero-bg);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: block;
  animation: heroFade 0.6s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.01);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: center;
  gap: 58px;
  min-height: 470px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--rose-dark);
  background: rgba(255, 228, 230, 0.92);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 18px;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.tag-list span {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.tag-list span {
  background: #fff1f2;
  color: var(--rose-dark);
}

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

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 16px;
  align-items: stretch;
}

.poster-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.85), transparent 18%),
    linear-gradient(135deg, #fecdd3, #f9a8d4 45%, #c4b5fd);
}

.hero-poster-main,
.hero-mini-card,
.poster-link,
.compact-poster,
.rank-cover,
.category-card-cover,
.side-poster-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #f9a8d4, #c4b5fd);
}

.hero-poster-main {
  min-height: 430px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-poster-main img,
.hero-mini-card img,
.poster-link img,
.compact-poster img,
.rank-cover img,
.side-poster-card img,
.category-card-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.hero-poster-main span:last-child {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #ffffff;
  font-weight: 900;
  font-size: 20px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-mini-grid {
  display: grid;
  gap: 16px;
}

.hero-mini-card {
  min-height: 132px;
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.hero-mini-card span:last-child {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.hero-mini-card::after,
.hero-poster-main::after,
.poster-link::after,
.rank-cover::after,
.compact-poster::after,
.side-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.68));
  pointer-events: none;
}

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

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

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

.section {
  padding: 70px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-card h1 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.category-tile p,
.category-card-body p,
.card-content p,
.compact-card p,
.rank-info p,
.detail-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.row-heading,
.toolbar,
.split-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  color: var(--rose-dark);
  font-weight: 900;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.quick-actions a {
  background: #ffffff;
  color: var(--rose-dark);
  box-shadow: var(--soft-shadow);
}

.intro-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: var(--shadow);
}

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

.movie-card:hover .poster-link img,
.hero-poster-main:hover img,
.hero-mini-card:hover img,
.compact-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.card-badge,
.card-score {
  position: absolute;
  z-index: 3;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-badge {
  left: 12px;
  background: rgba(15, 23, 42, 0.62);
}

.card-score {
  right: 12px;
  background: linear-gradient(90deg, var(--amber), #ef4444);
}

.card-content {
  padding: 17px;
}

.card-content h2,
.compact-card h3,
.rank-info h2,
.category-card-body h2,
.detail-side h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-content h2 a,
.compact-card h3 a,
.rank-info h2 a,
.category-card-body h2 a {
  transition: color 0.2s ease;
}

.card-content h2 a:hover,
.compact-card h3 a:hover,
.rank-info h2 a:hover,
.category-card-body h2 a:hover {
  color: var(--rose-dark);
}

.card-content p {
  display: -webkit-box;
  min-height: 50px;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

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

.card-meta span,
.compact-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f9fafb;
}

.card-content .tag-list {
  margin-top: 14px;
}

.category-section,
.latest-section {
  background: linear-gradient(90deg, #fff1f2, #fdf2f8, #eff6ff);
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  color: #111827;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.category-tile div {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: #4b5563;
  font-size: 13px;
}

.tone-rose { background: linear-gradient(135deg, #ffe4e6, #ffffff); }
.tone-blue { background: linear-gradient(135deg, #dbeafe, #ffffff); }
.tone-purple { background: linear-gradient(135deg, #ede9fe, #ffffff); }
.tone-pink { background: linear-gradient(135deg, #fce7f3, #ffffff); }
.tone-amber { background: linear-gradient(135deg, #fef3c7, #ffffff); }
.tone-green { background: linear-gradient(135deg, #dcfce7, #ffffff); }
.tone-orange { background: linear-gradient(135deg, #ffedd5, #ffffff); }
.tone-cyan { background: linear-gradient(135deg, #cffafe, #ffffff); }

.split-layout {
  align-items: flex-start;
}

.compact-grid {
  flex: 1;
}

.ranking-panel,
.side-panel,
.detail-card,
.side-poster-card {
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.ranking-panel {
  width: min(380px, 100%);
  padding: 18px;
}

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

.ranking-panel .compact-list,
.side-list,
.rank-list {
  grid-template-columns: 1fr;
}

.compact-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.compact-poster {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.compact-card p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
}

.rank-num {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink)) !important;
}

.page-hero {
  padding: 76px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(120deg, var(--rose), var(--pink), var(--purple));
}

.page-hero .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
}

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

.category-card {
  padding: 0;
}

.category-card-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  height: 210px;
  padding: 6px;
}

.category-card-cover img {
  border-radius: 18px;
}

.category-card-body {
  padding: 22px;
}

.toolbar {
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.inline-search {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 900;
}

.sort-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sort-buttons button {
  background: #fff1f2;
  color: var(--rose-dark);
}

.sort-buttons button.is-active,
.sort-buttons button:hover {
  background: linear-gradient(90deg, var(--rose), var(--pink));
  color: #ffffff;
}

.library-hero,
.search-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.26), transparent 22%),
    linear-gradient(120deg, #2563eb, #8b5cf6, #ec4899);
}

.ranking-hero {
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.25), transparent 22%),
    linear-gradient(120deg, #f59e0b, #ef4444, #be123c);
}

.ranking-lead .movie-card:first-child {
  grid-column: span 2;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 84px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 22px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.rank-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.detail-hero {
  padding: 34px 0 0;
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 36%),
    linear-gradient(180deg, #fff1f2, #ffffff 38%);
}

.detail-hero .breadcrumb {
  color: #9f1239;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.watch-panel {
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.28), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

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

.play-ring {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 24px 48px rgba(244, 63, 94, 0.35);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 26px solid #ffffff;
}

.play-title {
  font-size: 18px;
  font-weight: 900;
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin-top: 0;
}

.detail-card h2 {
  margin: 30px 0 10px;
  font-size: 24px;
}

.lead-text {
  padding: 18px;
  border-radius: 22px;
  background: #fff1f2;
  color: #9f1239 !important;
  font-weight: 800;
}

.detail-tags {
  margin: 18px 0;
}

.detail-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 94px;
}

.side-poster-card {
  padding: 0;
  overflow: hidden;
}

.side-poster-card img {
  aspect-ratio: 3 / 4;
}

.side-poster-card div {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
}

.side-poster-card h2,
.side-poster-card p {
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.side-panel {
  padding: 18px;
}

.side-panel h2 {
  margin-top: 0;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: linear-gradient(180deg, #fff7fb, #f9fafb);
}

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

.footer-brand {
  margin-bottom: 14px;
}

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

.footer-links {
  display: grid;
  gap: 10px;
  color: #4b5563;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--rose-dark);
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(244, 63, 94, 0.1);
}

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

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

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

  .hero-visual {
    max-width: 580px;
  }

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

  .split-layout {
    flex-direction: column;
  }

  .ranking-panel {
    width: 100%;
  }

  .detail-side {
    position: static;
    grid-template-columns: 280px 1fr;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand {
    font-size: 19px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    padding-top: 46px;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .hero-mini-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-poster-main {
    min-height: 280px;
  }

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

  .intro-section,
  .footer-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .row-heading,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-search,
  .inline-search input,
  .page-search,
  .page-search input {
    width: 100%;
  }

  .rank-row {
    grid-template-columns: 42px 70px 1fr;
  }

  .detail-card {
    padding: 20px;
  }
}

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

  .movie-grid,
  .category-grid,
  .category-card-grid,
  .compact-list {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 36px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-mini-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-index {
    width: 100%;
  }
}
