:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --orange: #f97316;
  --text: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #ffe4e6;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(225, 29, 72, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 30%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 228, 230, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.06);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.24);
}

.logo-text {
  font-size: 22px;
  background: linear-gradient(135deg, #111827, var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--rose);
  background: var(--soft);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--rose);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

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

.mobile-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 45%, #fff7ed 100%);
}

.hero-bg-one,
.hero-bg-two {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.6;
  pointer-events: none;
}

.hero-bg-one {
  width: 420px;
  height: 420px;
  top: -120px;
  right: 8%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.24), transparent 68%);
}

.hero-bg-two {
  width: 500px;
  height: 500px;
  left: -170px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.20), transparent 66%);
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 48px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 56px;
  min-height: 520px;
  animation: fadeUp 0.55s ease both;
}

.hero-slide.is-active {
  display: grid;
}

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

.hero-kicker,
.page-kicker,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.08);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h1 {
  max-width: 760px;
  background: linear-gradient(135deg, #111827 0%, #be123c 58%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 24px 0 0;
  max-width: 680px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.85;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9f1239;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.25);
}

.btn.light {
  color: var(--rose);
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.btn.light.solid {
  background: #fff;
}

.btn.ghost {
  color: #9f1239;
  border-color: rgba(225, 29, 72, 0.18);
  background: rgba(255, 241, 242, 0.7);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fce7f3);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(249, 115, 22, 0.18));
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-visual:hover img {
  transform: scale(1.05);
}

.hero-poster-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px;
  color: #fff;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72));
  backdrop-filter: blur(10px);
}

.hero-poster-caption strong,
.hero-poster-caption em {
  display: block;
}

.hero-poster-caption strong {
  font-size: 22px;
  font-style: normal;
}

.hero-poster-caption em {
  margin-top: 6px;
  font-size: 14px;
  color: #ffe4e6;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  transition: 0.22s ease;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: var(--rose);
  background: #fff;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.14);
}

.hero-arrow:hover {
  color: #fff;
  background: var(--rose);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.22);
}

.hero-dot.is-active {
  width: 28px;
  background: var(--rose);
}

.hero-search {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 28px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(225, 29, 72, 0.12);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.hero-search button {
  height: 48px;
  border: 0;
  border-radius: 18px;
  padding: 0 22px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  cursor: pointer;
}

.hero-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-category-strip a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #9f1239;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  font-weight: 800;
}

.feature-band {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-item {
  min-height: 104px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-item strong,
.feature-item span {
  display: block;
}

.feature-item strong {
  font-size: 22px;
}

.feature-item span {
  margin-top: 8px;
  color: var(--muted);
}

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

.content-section.tinted {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(225, 29, 72, 0.08);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  background: #fff7f7;
  border: 1px solid #ffe4e6;
}

.search-box span {
  color: var(--rose);
  font-weight: 900;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #9f1239;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: 0.22s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(225, 29, 72, 0.25);
  box-shadow: 0 26px 62px rgba(225, 29, 72, 0.14);
}

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

.poster-link img,
.rank-thumb img,
.detail-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img {
  transition: transform 0.6s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.62));
}

.poster-badge,
.rank-badge {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(225, 29, 72, 0.88);
  backdrop-filter: blur(8px);
}

.rank-badge {
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #e11d48);
  box-shadow: 0 12px 20px rgba(225, 29, 72, 0.28);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.text-link:hover,
.rank-body h3 a:hover {
  color: var(--rose);
}

.movie-meta,
.movie-line {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.movie-line {
  min-height: 46px;
}

.movie-actions {
  margin-top: 14px;
}

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

.compact-card .movie-info h3 {
  font-size: 16px;
}

.compact-card .movie-line {
  min-height: 42px;
}

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

.category-card,
.category-overview-card a {
  display: block;
  min-height: 166px;
  padding: 24px;
  border-radius: 28px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(225, 29, 72, 0.09);
  transition: 0.24s ease;
}

.category-card:hover,
.category-overview-card a:hover {
  transform: translateY(-6px);
  color: var(--rose);
  box-shadow: 0 26px 60px rgba(225, 29, 72, 0.16);
}

.category-card span,
.category-overview-card span {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.category-overview-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8 48%, #fff7ed);
}

.compact-page {
  min-height: 300px;
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 58px;
}

.page-hero p {
  max-width: 760px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #9f1239;
  font-size: 14px;
  font-weight: 800;
}

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

.breadcrumb span {
  color: #fb7185;
}

.breadcrumb strong {
  color: #4b5563;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 82px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.06);
}

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

.rank-thumb {
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff1f2;
}

.rank-body h3,
.rank-body p {
  margin: 0;
}

.rank-body h3 {
  font-size: 18px;
}

.rank-body p,
.rank-body span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.rank-watch {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--rose);
  background: #fff1f2;
  font-weight: 900;
}

.rank-watch:hover {
  color: #fff;
  background: var(--rose);
}

.detail-top {
  background: linear-gradient(135deg, #fff1f2 0%, #fff 52%, #fff7ed 100%);
}

.detail-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

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

.watch-panel {
  grid-column: 1 / 2;
}

.detail-side {
  grid-column: 2 / 3;
  grid-row: span 2;
}

.detail-copy {
  grid-column: 1 / 2;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(225, 29, 72, 0.08);
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.detail-line {
  color: #4b5563;
  line-height: 1.85;
  font-size: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.24);
}

.movie-video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: #111827;
}

.player-cover {
  z-index: 2;
  border: 0;
  cursor: pointer;
  background: #111827;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.74;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.18), rgba(17, 24, 39, 0.55));
}

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

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 24px 50px rgba(225, 29, 72, 0.36);
  cursor: pointer;
}

.play-button span {
  display: inline-block;
  margin-left: 6px;
  font-size: 34px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  background: #fff1f2;
  box-shadow: var(--shadow);
}

.detail-side .detail-tags {
  margin-top: 18px;
}

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

.detail-meta-grid div {
  padding: 16px;
  border-radius: 20px;
  background: #fff7f7;
  border: 1px solid var(--line);
}

.detail-meta-grid span,
.detail-meta-grid strong {
  display: block;
}

.detail-meta-grid span {
  color: var(--muted);
  font-size: 13px;
}

.detail-meta-grid strong {
  margin-top: 6px;
  font-size: 15px;
}

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

.story-card {
  padding: 30px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
  font-size: 17px;
}

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

.next-prev a {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.06);
}

.next-prev span,
.next-prev strong {
  display: block;
}

.next-prev span {
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.next-prev strong {
  margin-top: 8px;
  font-size: 18px;
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fff1f2);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-brand p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #9f1239;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.copyright {
  margin: 0;
  padding: 0 16px 32px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }

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

  .detail-side,
  .detail-copy,
  .watch-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    padding-top: 44px;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-desc,
  .page-hero p,
  .detail-line {
    font-size: 16px;
  }

  .hero-search,
  .tool-panel,
  .footer-inner,
  .feature-band,
  .next-prev {
    grid-template-columns: 1fr;
  }

  .hero-search {
    display: grid;
  }

  .filter-list {
    justify-content: flex-start;
  }

  .movie-grid,
  .library-grid,
  .rank-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .rank-row {
    grid-template-columns: 46px 70px minmax(0, 1fr);
  }

  .rank-watch {
    grid-column: 2 / 4;
    text-align: center;
  }

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

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

  .detail-poster {
    max-width: 260px;
  }
}

@media (max-width: 560px) {
  .site-nav,
  .mobile-nav,
  .hero-shell,
  .content-section,
  .page-hero-inner,
  .detail-inner,
  .footer-inner,
  .feature-band {
    width: min(100% - 24px, 1180px);
  }

  .logo-text {
    font-size: 18px;
  }

  .hero-slide {
    gap: 30px;
  }

  .hero-buttons,
  .detail-actions {
    display: grid;
  }

  .hero-visual {
    border-radius: 24px;
  }

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

  .movie-card {
    border-radius: 22px;
  }

  .rank-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-thumb {
    width: 64px;
    height: 64px;
  }

  .player-shell {
    border-radius: 20px;
  }

  .play-button {
    width: 72px;
    height: 72px;
  }

  .detail-copy,
  .story-card {
    padding: 22px;
    border-radius: 24px;
  }
}
