:root {
  --page-bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: #fff0f7;
  --text-main: #16141f;
  --text-muted: #6b6477;
  --line: rgba(119, 104, 138, 0.18);
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --gold: #f59e0b;
  --shadow-soft: 0 18px 50px rgba(78, 42, 118, 0.12);
  --shadow-card: 0 12px 30px rgba(45, 31, 70, 0.12);
  --radius-large: 30px;
  --radius-card: 22px;
  --container: min(1200px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.15), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.13), transparent 34rem),
    var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "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.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 32px rgba(77, 51, 92, 0.08);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: var(--container);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.site-logo-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.site-logo-text,
.footer-logo {
  font-size: 1.7rem;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: #403a4b;
  font-weight: 700;
}

.main-nav > a,
.nav-menu-button {
  position: relative;
  padding: 9px 0;
  color: #403a4b;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.main-nav > a::after,
.nav-menu-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  transition: transform 0.2s ease;
}

.main-nav > a:hover::after,
.nav-menu:hover .nav-menu-button::after {
  transform: scaleX(1);
}

.nav-menu {
  position: relative;
}

.nav-menu-list {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 190px;
  padding: 10px;
  display: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-card);
}

.nav-menu:hover .nav-menu-list {
  display: grid;
  gap: 4px;
}

.nav-menu-list a {
  padding: 10px 12px;
  color: #4d435b;
  border-radius: 12px;
}

.nav-menu-list a:hover {
  color: var(--pink-dark);
  background: var(--surface-soft);
}

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

.header-search {
  width: min(320px, 26vw);
}

.header-search input,
.mobile-search input,
.home-search-panel input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.88);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.home-search-panel input:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.header-search button,
.mobile-search button,
.home-search-panel button {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.22);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.mobile-nav {
  display: none;
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 16px;
  gap: 10px;
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: #443b50;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  width: var(--container);
  min-height: 640px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 38px;
  box-shadow: var(--shadow-soft);
  background: #120d1b;
}

.hero-stage,
.hero-slide,
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.8s ease;
}

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

.hero-bg {
  background-position: center;
  background-size: cover;
  filter: saturate(1.06);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 13, 27, 0.95) 0%, rgba(26, 20, 40, 0.75) 44%, rgba(26, 20, 40, 0.2) 100%),
    radial-gradient(circle at 28% 26%, rgba(236, 72, 153, 0.36), transparent 30rem),
    radial-gradient(circle at 76% 58%, rgba(59, 130, 246, 0.28), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 46px;
  padding: 72px;
}

.hero-copy {
  color: white;
}

.hero-kicker,
.detail-channel,
.section-heading span,
.sub-hero-inner span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: var(--pink-dark);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #ffc4df;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 16px 0;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.16rem;
  line-height: 1.9;
}

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

.hero-tags span,
.detail-tags span,
.movie-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #7b2456;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.78);
}

.detail-tags span,
.movie-card-tags span {
  color: #8e2f64;
  background: #fff0f7;
}

.hero-actions,
.detail-actions,
.sub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  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);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.32);
}

.btn-light {
  color: #4a2845;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 26px rgba(255, 255, 255, 0.18);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

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

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: white;
  font-size: 2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

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

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

.section-wrap {
  width: var(--container);
  margin: 48px auto;
}

.intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 24px;
  align-items: stretch;
}

.intro-card,
.home-search-panel,
.content-panel,
.overview-category-card,
.player-shell,
.ranking-list,
.pager-links,
.category-tile,
.movie-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.intro-card,
.home-search-panel {
  min-height: 132px;
  border-radius: var(--radius-large);
  padding: 26px;
}

.intro-card span {
  color: var(--pink-dark);
  font-weight: 900;
}

.intro-card strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.intro-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.home-search-panel {
  align-content: center;
  padding: 28px;
}

.home-search-panel input,
.home-search-panel button {
  height: 54px;
}

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

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

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

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: white;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(82, 45, 111, 0.18);
}

.category-tile-bg,
.category-tile-shade {
  position: absolute;
  inset: 0;
}

.category-tile-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 0.35s ease;
}

.category-tile:hover .category-tile-bg {
  transform: scale(1.12);
}

.category-tile-shade {
  background: linear-gradient(180deg, rgba(20, 13, 28, 0.08), rgba(20, 13, 28, 0.86));
}

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

.category-tile strong {
  font-size: 1.25rem;
}

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

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

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

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(59, 130, 246, 0.14));
}

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

.movie-card:hover .movie-poster img {
  transform: scale(1.07);
  filter: saturate(1.12);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  font-size: 0.76rem;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.94), rgba(139, 92, 246, 0.94));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

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

.movie-card-meta {
  min-height: 22px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.movie-card h3 {
  margin: 7px 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

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

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

.movie-card-compact .movie-card-body {
  padding: 14px;
}

.movie-card-compact h3 {
  font-size: 0.98rem;
}

.movie-card-compact p {
  font-size: 0.86rem;
}

.ranking-section {
  position: relative;
}

.ranking-list {
  border-radius: var(--radius-large);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background: var(--surface-soft);
  transform: translateX(4px);
}

.ranking-number {
  color: var(--pink);
  font-size: 1.4rem;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.ranking-title {
  min-width: 0;
  overflow: hidden;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-meta {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  margin-bottom: 12px;
}

.filter-chip {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 999px;
  color: #7b315c;
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.82);
}

.filter-chip.is-active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.2);
}

.sub-hero {
  position: relative;
  overflow: hidden;
  margin: 28px auto 0;
  width: var(--container);
  border-radius: 34px;
  background:
    radial-gradient(circle at 28% 30%, rgba(236, 72, 153, 0.25), transparent 28rem),
    radial-gradient(circle at 78% 50%, rgba(59, 130, 246, 0.25), transparent 26rem),
    linear-gradient(135deg, #fff, #fff1f8);
  box-shadow: var(--shadow-soft);
}

.sub-hero-inner {
  padding: 62px;
}

.sub-hero h1 {
  max-width: 820px;
  margin: 12px 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.sub-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.85;
}

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

.overview-category-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  border-radius: var(--radius-large);
  padding: 18px;
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-soft);
}

.overview-cover img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.overview-category-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overview-category-body h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.overview-category-body p {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: #120d1b;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(14px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 13, 27, 0.96), rgba(18, 13, 27, 0.72), rgba(18, 13, 27, 0.9)),
    radial-gradient(circle at 35% 40%, rgba(236, 72, 153, 0.32), transparent 30rem);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 34px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: white;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.14rem;
  line-height: 1.9;
}

.detail-meta {
  color: #ffd2e6;
  font-weight: 800;
  margin-bottom: 18px;
}

.player-section {
  margin-top: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #07050c;
}

.movie-player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05030a;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(236, 72, 153, 0.28), transparent 18rem),
    linear-gradient(180deg, rgba(5, 3, 10, 0.42), rgba(5, 3, 10, 0.88));
}

.player-start span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.34);
}

.player-start strong {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.player-shell.is-ready .player-start {
  display: none;
}

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

.content-panel {
  border-radius: var(--radius-large);
  padding: 28px;
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.content-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 2;
}

.pager-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-radius: var(--radius-large);
  padding: 12px;
}

.pager-links a {
  padding: 18px 20px;
  border-radius: 18px;
  color: #5b3350;
  font-weight: 900;
  background: var(--surface-soft);
}

.site-footer {
  margin-top: 72px;
  padding: 42px 0;
  background: rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.site-footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.site-footer p {
  max-width: 780px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #574b63;
  font-weight: 800;
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 52px;
  }

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

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

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

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

  .hero-carousel {
    min-height: 760px;
    border-radius: 28px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 38px 28px 90px;
  }

  .hero-poster {
    max-width: 230px;
    margin: 0 auto;
    transform: none;
  }

  .intro-strip,
  .detail-content,
  .pager-links,
  .overview-category-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

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

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

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

  .overview-category-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 22px, 1200px);
  }

  .site-header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .site-logo-text,
  .footer-logo {
    font-size: 1.35rem;
  }

  .hero-carousel {
    min-height: 680px;
    margin-top: 18px;
    border-radius: 24px;
  }

  .hero-copy h1,
  .sub-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.06em;
  }

  .hero-copy p,
  .detail-one-line,
  .sub-hero p {
    font-size: 1rem;
  }

  .hero-content,
  .sub-hero-inner {
    padding: 32px 22px 82px;
  }

  .hero-controls {
    bottom: 20px;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 8px;
  }

  .category-tile-grid,
  .movie-grid,
  .movie-grid-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

  .movie-card p {
    min-height: auto;
  }

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

  .ranking-meta {
    grid-column: 2;
  }

  .content-panel {
    padding: 22px;
  }

  .player-start span {
    width: 70px;
    height: 70px;
  }
}
