:root {
  --page-bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: #fff1f7;
  --text: #2f2430;
  --muted: #756574;
  --primary: #ec4899;
  --primary-dark: #db2777;
  --accent: #ef4444;
  --orange: #fb923c;
  --line: #f8cfe0;
  --shadow: 0 18px 45px rgba(219, 39, 119, 0.14);
  --shadow-strong: 0 26px 70px rgba(190, 24, 93, 0.22);
  --radius: 22px;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--page-bg) 42%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(244, 114, 182, 0.08);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.32);
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.nav-sub-link,
.mobile-link {
  color: #5f4b5c;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-sub-link:hover,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quick-search input {
  width: 170px;
  border: 0;
  outline: 0;
  padding: 8px 12px;
  background: transparent;
  color: var(--text);
}

.quick-search button,
.hero-search-card button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-search button,
.hero-search-card button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.24);
}

.quick-search button {
  padding: 8px 15px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
}

.secondary-btn {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(236, 72, 153, 0.22);
}

.quick-search button:hover,
.hero-search-card button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--primary-dark);
  background: #ffffff;
}

.sub-nav {
  display: flex;
  gap: 12px;
  padding: 0 0 12px;
}

.nav-sub-link {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(248, 207, 224, 0.74);
  font-size: 14px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

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

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

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #1a0b16;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: saturate(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 38%, rgba(236, 72, 153, 0.36), transparent 34%),
    linear-gradient(90deg, rgba(22, 5, 17, 0.94), rgba(60, 13, 45, 0.72) 46%, rgba(236, 72, 153, 0.12)),
    linear-gradient(0deg, rgba(255, 247, 251, 1) 0%, rgba(255, 247, 251, 0) 26%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: center;
  color: #ffffff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #f9a8d4;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-heading h1 {
  margin: 0;
  line-height: 1.06;
  font-weight: 900;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 86px);
  letter-spacing: -3px;
}

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

.hero-tags,
.detail-meta,
.genre-row,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.genre-row span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 13px;
  color: #fff7fb;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
  background: linear-gradient(135deg, #fdf2f8, #fee2e2);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

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

.hero-dot {
  width: 34px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

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

.hero-search-card {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: -52px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(248, 207, 224, 0.82);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-card label {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-weight: 900;
}

.hero-search-card form div {
  display: flex;
  gap: 10px;
}

.hero-search-card input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
  padding: 15px 16px;
  background: #ffffff;
}

.hero-search-card button {
  padding: 0 24px;
}

.hero-search-card nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hero-search-card nav a {
  padding: 10px 15px;
  color: #6b5166;
  border-radius: 999px;
  background: var(--surface-soft);
  font-weight: 800;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.compact-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(219, 39, 119, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.compact-card img {
  grid-row: span 2;
  width: 84px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #fdf2f8, #fee2e2);
}

.compact-card span {
  align-self: end;
  font-weight: 900;
}

.compact-card em {
  align-self: start;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.section-block,
.page-shell {
  padding: 58px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.section-head a {
  color: var(--primary-dark);
  font-weight: 900;
}

.section-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(248, 207, 224, 0.72);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(219, 39, 119, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #fee2e2);
}

.movie-card .poster-frame {
  aspect-ratio: 3 / 4;
}

.wide-card .poster-frame {
  aspect-ratio: 16 / 10;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
}

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

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #8d7288;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span,
.genre-row span,
.detail-tags a {
  padding: 6px 10px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  font-size: 12px;
}

.section-band {
  padding: 58px 0;
  background: linear-gradient(135deg, #fff1f7, #fff7ed);
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 0 18px;
}

.horizontal-card {
  flex: 0 0 260px;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(219, 39, 119, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, #fdf2f8, #fee2e2);
  transition: transform 0.35s ease;
}

.horizontal-card strong,
.horizontal-card span {
  display: block;
  padding: 0 14px;
}

.horizontal-card strong {
  padding-top: 14px;
  font-size: 17px;
}

.horizontal-card span {
  padding-top: 7px;
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

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

.rank-list.small-rank a,
.rank-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(248, 207, 224, 0.7);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(219, 39, 119, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-list.small-rank a {
  grid-template-columns: 46px 1fr auto;
  padding: 14px 16px;
}

.rank-list.small-rank span,
.rank-no {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.rank-list.small-rank strong,
.rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list.small-rank em,
.rank-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.site-footer {
  margin-top: 50px;
  padding-top: 46px;
  color: #6f5a69;
  background: linear-gradient(180deg, #fff7fb, #ffffff);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 38px;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 24px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text);
}

.site-footer p {
  margin: 0;
  max-width: 420px;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  color: #9b8394;
  font-size: 14px;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
  padding: 42px;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.soft-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.16), transparent 32%),
    linear-gradient(135deg, #ffffff, #fff1f7 70%, #fff7ed);
  border: 1px solid rgba(248, 207, 224, 0.82);
}

.rank-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #be185d, #ef4444 70%, #fb923c);
}

.page-hero .eyebrow {
  color: var(--primary-dark);
}

.rank-hero .eyebrow {
  color: #fce7f3;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.rank-hero p {
  color: rgba(255, 255, 255, 0.84);
}

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

.category-tile {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(248, 207, 224, 0.78);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(219, 39, 119, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-collage img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #fdf2f8, #fee2e2);
}

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.category-tile span {
  color: var(--primary-dark);
  font-weight: 900;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(248, 207, 224, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(219, 39, 119, 0.07);
}

.search-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
}

.search-line input,
.search-line select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--text);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  color: #6f5a69;
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.result-state {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

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

.is-filter-hidden {
  display: none !important;
}

.rank-row {
  grid-template-columns: 50px 74px minmax(0, 1fr) minmax(180px, auto) 54px;
  padding: 12px 16px;
}

.rank-row img {
  width: 74px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fdf2f8, #fee2e2);
}

.rank-row b {
  color: var(--primary-dark);
  font-size: 18px;
}

.detail-page {
  background: #ffffff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #ffffff;
  background-image: var(--cover-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(236, 72, 153, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(20, 4, 17, 0.96), rgba(46, 10, 34, 0.78), rgba(20, 4, 17, 0.44)),
    linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 24%);
  backdrop-filter: blur(3px);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 50px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-heading {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-heading > img {
  width: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, #fdf2f8, #fee2e2);
}

.detail-heading h1 {
  font-size: clamp(42px, 6vw, 74px);
  letter-spacing: -2px;
}

.detail-heading p {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  margin-top: 20px;
}

.detail-meta span {
  padding: 8px 12px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.genre-row {
  margin-top: 18px;
}

.genre-row span {
  color: #fce7f3;
  background: rgba(236, 72, 153, 0.32);
}

.player-section {
  margin-top: -54px;
  position: relative;
  z-index: 4;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 10px solid #ffffff;
  border-radius: 30px;
  background: #140511;
  box-shadow: var(--shadow-strong);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.26), rgba(20, 5, 17, 0.58));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  font-size: 30px;
  box-shadow: var(--shadow);
}

.player-cover strong {
  font-size: 22px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding-top: 46px;
}

.detail-content,
.side-panel {
  border: 1px solid rgba(248, 207, 224, 0.74);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(219, 39, 119, 0.07);
}

.detail-content {
  padding: 30px;
}

.detail-content h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-content h2:not(:first-child) {
  margin-top: 28px;
}

.detail-content p {
  margin: 0;
  color: #665465;
  line-height: 1.95;
  font-size: 16px;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-table div {
  padding: 14px;
  border-radius: 16px;
  background: #fff7fb;
}

.info-table dt {
  margin-bottom: 6px;
  color: #9b8394;
  font-size: 13px;
}

.info-table dd {
  margin: 0;
  font-weight: 800;
}

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

.side-panel {
  align-self: start;
  padding: 22px;
  display: grid;
  gap: 14px;
}

.side-panel .compact-card {
  grid-template-columns: 74px 1fr;
  padding: 10px;
  box-shadow: none;
  background: #fff7fb;
}

.side-panel .compact-card img {
  width: 74px;
  height: 86px;
}

.related-section {
  padding-top: 46px;
}

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

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

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

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

  .header-inner {
    height: 64px;
  }

  .header-actions {
    margin-left: auto;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 700px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 62px 0 84px;
  }

  .hero-copy h1 {
    font-size: 46px;
    letter-spacing: -1.5px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    transform: none;
  }

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

  .hero-search-card nav {
    justify-content: flex-start;
  }

  .spotlight-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .movie-grid,
  .browse-grid,
  .rank-list.small-rank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    display: block;
    padding: 30px;
  }

  .page-hero .primary-btn,
  .page-hero .secondary-btn {
    margin-top: 20px;
  }

  .search-line {
    grid-template-columns: 1fr;
  }

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

  .rank-row em {
    grid-column: 3 / -1;
  }

  .rank-row img {
    width: 58px;
    height: 72px;
  }

  .detail-heading {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
  }

  .detail-heading > img {
    width: 120px;
    border-radius: 18px;
  }

  .detail-heading h1 {
    font-size: 36px;
  }

  .detail-heading p {
    font-size: 16px;
  }

  .info-table {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .hero-copy p {
    font-size: 15px;
  }

  .hero-search-card form div {
    display: grid;
  }

  .movie-grid,
  .browse-grid {
    grid-template-columns: 1fr;
  }

  .rank-list.small-rank a {
    grid-template-columns: 42px 1fr;
  }

  .rank-list.small-rank em {
    grid-column: 2;
  }

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

  .detail-heading > img {
    width: 180px;
  }

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

  .detail-content {
    padding: 22px;
  }
}
