:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --purple-500: #a855f7;
  --blue-500: #3b82f6;
  --cyan-50: #ecfeff;
  --amber-50: #fffbeb;
  --green-50: #f0fdf4;
  --slate-950: #020617;
  --text-main: #111827;
  --text-soft: #4b5563;
  --line: #f1f5f9;
  --card-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --card-shadow-hover: 0 28px 70px rgba(15, 23, 42, 0.18);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff 0%, #fff7fa 42%, #ffffff 100%);
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.35);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(10deg) scale(1.05);
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  transition: color 0.25s ease;
}

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

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

.header-search input,
.mobile-search input,
.filter-search input {
  width: 240px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #ffffff;
  color: var(--text-main);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.spotlight-card a,
.section-heading a {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.primary-button,
.spotlight-card a {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
}

.header-search button:hover,
.primary-button:hover,
.spotlight-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.34);
}

.ghost-button,
.section-heading a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.section-heading a {
  color: var(--rose-600);
  background: #ffffff;
  border-color: rgba(244, 63, 94, 0.16);
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.10);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 14px;
  background: #ffffff;
  color: var(--rose-600);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 18px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.mobile-link {
  display: block;
  padding: 12px 4px;
  font-weight: 800;
  color: #374151;
}

.mobile-link.is-active {
  color: var(--rose-600);
}

.hero-section {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #fb7185, #f0abfc 54%, #a78bfa);
}

.hero-backdrops,
.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-backdrop.is-active {
  opacity: 0.42;
  transform: scale(1);
}

.hero-overlay {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(136, 19, 55, 0.78), rgba(131, 24, 67, 0.56), rgba(88, 28, 135, 0.55));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 48px;
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.hero-copy p,
.page-hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

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

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

.hero-category-links a,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-category-links a:hover,
.tag-cloud a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

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

.hero-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:first-child {
  grid-column: span 2;
  min-height: 290px;
}

.hero-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.24) 40%, rgba(2, 6, 23, 0.92) 100%);
}

.hero-card span,
.hero-card h2,
.hero-card p {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.hero-card span {
  bottom: 88px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.hero-card h2 {
  bottom: 46px;
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.hero-card p {
  bottom: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.hero-card:hover,
.hero-card.is-active {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 34px 86px rgba(15, 23, 42, 0.42);
}

.hero-card:hover img,
.hero-card.is-active img {
  transform: scale(1.08);
}

.section-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.soft-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
  background: linear-gradient(135deg, #fff1f2, #fdf4ff);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.section-heading > span {
  width: 54px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.section-heading div {
  flex: 1;
}

.section-heading h2,
.tag-panel h2,
.related-card h2,
.cover-card h2,
.detail-card h2 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p,
.tag-panel p,
.detail-card p,
.cover-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #fdf4ff);
}

.poster-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-content {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.detail-meta span,
.detail-meta a {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--rose-50);
  color: var(--rose-600);
}

.movie-card h2 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--text-main);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-tags,
.detail-tags,
.filter-chips,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.filter-chips button {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: #be123c;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 28px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background: radial-gradient(circle at 20% 15%, var(--rose-500), transparent 36%);
}

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

.category-icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.22);
}

.category-tile h2,
.category-tile p,
.category-samples {
  position: relative;
  z-index: 1;
}

.category-tile h2 {
  margin: 22px 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.category-samples {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.category-samples span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  color: #4b5563;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 30px;
}

.rank-panel,
.tag-panel,
.detail-card,
.cover-card,
.related-card,
.filter-panel {
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.rank-panel,
.tag-panel {
  padding: 30px;
}

.small-heading {
  margin-bottom: 18px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 10px;
  background: #fff7fa;
  transition: transform 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: #fff1f2;
}

.list-rank {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.rank-row img {
  width: 86px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-row h2 {
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 900;
}

.rank-row p {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-row span:last-child {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.tag-panel h2 {
  font-size: 28px;
}

.tag-cloud a {
  color: #7c3aed;
  background: #faf5ff;
  border: 1px solid #f3e8ff;
}

.spotlight-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--purple-500));
}

.spotlight-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.spotlight-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.spotlight-card a {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.masonry-grid {
  columns: 4 230px;
  column-gap: 24px;
}

.masonry-card {
  display: inline-flex;
  width: 100%;
  margin: 0 0 24px;
  break-inside: avoid;
}

.page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(120deg, var(--rose-500), var(--pink-500), var(--purple-500));
}

.page-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 62px);
}

.filter-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
  padding: 22px;
}

.filter-search input {
  width: 100%;
  border-radius: 18px;
  padding: 15px 18px;
}

.filter-chips button {
  cursor: pointer;
  color: #374151;
  background: #f8fafc;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.filter-chips button:hover,
.filter-chips button.is-selected {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  transform: translateY(-2px);
}

.detail-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

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

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

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.player-section {
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.35);
}

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

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

.player-cover-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover-button span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 24px 56px rgba(244, 63, 94, 0.34);
  font-size: 34px;
}

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

.detail-card,
.cover-card,
.related-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.lead-text {
  margin: 18px 0;
  color: var(--text-main);
  font-size: 19px;
  line-height: 1.85;
}

.text-card p {
  font-size: 17px;
}

.cover-card {
  overflow: hidden;
  padding: 0;
}

.cover-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-card div {
  padding: 22px;
}

.cover-card h2,
.related-card h2,
.detail-card h2 {
  font-size: 24px;
}

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

.detail-side .rank-row {
  grid-template-columns: 82px minmax(0, 1fr);
}

.detail-side .rank-row .list-rank {
  display: none;
}

.detail-side .rank-row img {
  width: 82px;
  height: 58px;
}

.site-footer {
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: #ffffff;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--text-soft);
  line-height: 1.8;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.footer-links a {
  color: #6b7280;
  font-weight: 700;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid #f1f5f9;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 700;
}

[data-card].is-hidden {
  display: none;
}

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

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

  .mobile-search {
    align-items: stretch;
    margin-top: 12px;
  }

  .mobile-search input {
    width: 100%;
    flex: 1;
  }

  .hero-inner,
  .split-section,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 19px;
  }

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

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

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

  .hero-copy p,
  .page-hero p {
    font-size: 17px;
  }

  .hero-grid,
  .library-grid,
  .movie-grid,
  .category-grid,
  .large-category-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .hero-card:first-child {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading > span {
    width: 48px;
  }

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

  .rank-row img {
    width: 74px;
    height: 54px;
  }

  .detail-card,
  .cover-card div,
  .related-card,
  .rank-panel,
  .tag-panel {
    padding: 22px;
  }
}
