:root {
  color-scheme: light;
  --pink: #ec4899;
  --pink-dark: #9d174d;
  --orange: #f97316;
  --yellow: #facc15;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: rgba(236, 72, 153, 0.15);
  --shadow: 0 24px 60px rgba(157, 23, 77, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #fdf2f8 0%, #fff7ed 48%, #fefce8 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(157, 23, 77, 0.08);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.logo__mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange), var(--yellow));
  box-shadow: 0 10px 26px rgba(236, 72, 153, 0.38);
}

.logo__text,
.footer-logo span:last-child {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.nav-dropdown__panel a,
.mobile-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown__panel a:hover,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink);
}

.nav-link--button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
}

.nav-dropdown__panel {
  position: absolute;
  left: -24px;
  top: 62px;
  min-width: 210px;
  padding: 10px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
}

.nav-dropdown__panel a:hover {
  background: #fdf2f8;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid rgba(236, 72, 153, 0.08);
}

.header-search input,
.mobile-search input {
  width: 250px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 14px 11px 18px;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  padding: 11px 15px;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #4b5563;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.mobile-panel.open {
  display: block;
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #831843, #9a3412, #854d0e);
  box-shadow: var(--shadow);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 36px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(27, 3, 18, 0.88), rgba(124, 45, 18, 0.7), rgba(0, 0, 0, 0.12)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.42), transparent 32%), radial-gradient(circle at 74% 30%, rgba(250, 204, 21, 0.32), transparent 34%);
}

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

.hero-slide__content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-intro .eyebrow,
.page-hero .eyebrow {
  color: #fbcfe8;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  color: white;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.info-tags span {
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.info-tags span {
  color: #9d174d;
  background: #fdf2f8;
  border-color: rgba(236, 72, 153, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 23px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.22);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.page-hero .btn-ghost,
.detail-intro .btn-ghost {
  color: #9d174d;
  background: white;
  border-color: rgba(236, 72, 153, 0.18);
}

.hero-poster {
  justify-self: end;
  width: min(330px, 100%);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.movie-card__cover img,
.category-tile img,
.mini-card img,
.ranking-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img,
.movie-card:hover img,
.category-tile:hover img,
.mini-card:hover img,
.ranking-item:hover img {
  transform: scale(1.08);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  font-size: 26px;
  line-height: 1;
}

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

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

.hero-dot.active {
  width: 28px;
  background: white;
}

.section-block,
.player-section,
.detail-content,
.detail-side,
.category-overview-card {
  margin-top: 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(157, 23, 77, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.08);
}

.section-block,
.player-section {
  padding: 28px;
}

.section-block--lift {
  margin-top: -36px;
  position: relative;
  z-index: 4;
}

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

.section-heading h2,
.detail-content h2,
.detail-side h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading a {
  color: var(--pink);
  font-weight: 900;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 30px rgba(157, 23, 77, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 54px rgba(157, 23, 77, 0.16);
}

.movie-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.movie-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
  opacity: 0.78;
}

.movie-card__duration,
.movie-card__type,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.movie-card__duration {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
}

.movie-card__type {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.rank-badge {
  right: 10px;
  top: 10px;
  background: rgba(0, 0, 0, 0.72);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__body h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h2 a {
  color: var(--pink);
}

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

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.movie-card__meta span {
  border-radius: 999px;
  background: #f9fafb;
  padding: 4px 8px;
}

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

.category-tile {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 180px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: white;
  background: #831843;
  box-shadow: 0 16px 38px rgba(157, 23, 77, 0.12);
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.72;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 24px;
  font-weight: 950;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.12);
}

.ranking-item__num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-weight: 950;
}

.ranking-item img {
  width: 96px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  background: #fce7f3;
}

.ranking-item__main {
  min-width: 0;
}

.ranking-item__main strong,
.ranking-item__main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-item__main small {
  margin-top: 4px;
  color: var(--muted);
}

.ranking-item__heat {
  color: var(--pink);
  font-weight: 950;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 42px;
  color: white;
  background: linear-gradient(135deg, var(--pink-dark), #9a3412 56%, #854d0e);
  box-shadow: var(--shadow);
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.2), transparent 28%), radial-gradient(circle at 82% 18%, rgba(250, 204, 21, 0.22), transparent 30%);
  pointer-events: none;
}

.page-hero > *,
.detail-hero > * {
  position: relative;
  z-index: 2;
}

.page-hero h1,
.detail-intro h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.filter-toolbar {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(157, 23, 77, 0.08);
}

.page-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--pink);
  font-weight: 950;
}

.page-search input {
  width: 100%;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 999px;
  outline: 0;
  padding: 13px 18px;
  background: #fff;
}

.page-search input:focus {
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: #9d174d;
  background: #fdf2f8;
  cursor: pointer;
  font-weight: 850;
}

.filter-chips button.active,
.filter-chips button:hover {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.empty-state {
  display: none;
  margin-top: 18px;
  padding: 32px;
  text-align: center;
  color: #6b7280;
  border-radius: 18px;
  background: #f9fafb;
  font-weight: 800;
}

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

.category-overview-grid {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-card__head {
  display: block;
  margin-bottom: 18px;
}

.category-overview-card__head span {
  color: #1f2937;
  font-size: 26px;
  font-weight: 950;
}

.category-overview-card__head small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.mini-card-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 850;
  font-size: 13px;
}

.mini-card img {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
  background: #fce7f3;
}

.mini-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta-line span {
  color: white;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 7px 12px;
  font-weight: 850;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #08040a;
  aspect-ratio: 16 / 9;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #08040a;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.48));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.36);
  font-size: 32px;
}

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

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

.detail-content,
.detail-side {
  padding: 28px;
}

.detail-content h2,
.detail-side h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 26px;
}

.detail-content p {
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.detail-side dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-side div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(236, 72, 153, 0.1);
}

.detail-side dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.site-footer {
  color: #ffe4e6;
  background: linear-gradient(90deg, #831843, #9a3412, #854d0e);
}

.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer p {
  max-width: 380px;
  color: #fbcfe8;
  line-height: 1.8;
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #fbcfe8;
}

.footer-links a:hover {
  color: white;
}

.site-footer__bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  color: #fbcfe8;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

[hidden] {
  display: none !important;
}

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

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

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .site-header__inner {
    height: 64px;
  }

  .logo__text {
    font-size: 20px;
  }

  .hero,
  .hero-slider {
    min-height: 660px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 34px 24px 86px;
  }

  .hero-poster {
    justify-self: start;
    width: 190px;
  }

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

  .detail-poster {
    width: min(240px, 100%);
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 18px;
  }

  .hero {
    border-radius: 24px;
  }

  .hero h1,
  .page-hero h1,
  .detail-intro h1 {
    font-size: 34px;
  }

  .section-block,
  .player-section,
  .detail-content,
  .detail-side,
  .category-overview-card,
  .page-hero,
  .detail-hero {
    padding: 20px;
    border-radius: 22px;
  }

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

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

  .movie-card__body {
    padding: 13px;
  }

  .movie-card__body p {
    display: none;
  }

  .ranking-item {
    grid-template-columns: 34px 76px minmax(0, 1fr);
  }

  .ranking-item__heat {
    display: none;
  }

  .ranking-item img {
    width: 76px;
    height: 52px;
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}
