:root {
  --color-primary: #dc2626;
  --color-primary-dark: #b91c1c;
  --color-accent: #db2777;
  --color-bg: #fff7f7;
  --color-soft: #fff1f2;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #fee2e2;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 42%, #fff7f7 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(254, 202, 202, 0.65);
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 14px;
  box-shadow: 0 12px 22px rgba(220, 38, 38, 0.28);
}

.brand__text {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.main-nav a {
  font-size: 15px;
  color: #374151;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.header-search input,
.mobile-search input,
.feature-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  color: var(--color-text);
  background: transparent;
}

.header-search input {
  width: 190px;
  padding: 10px 12px 10px 18px;
}

.header-search button,
.mobile-search button,
.feature-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  font-weight: 700;
}

.header-search button {
  padding: 10px 16px;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--color-text);
  background: #fff1f2;
}

.mobile-panel {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  padding: 8px 4px;
  color: #374151;
  font-weight: 600;
}

.mobile-search {
  display: flex;
  overflow: hidden;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px;
}

.mobile-search button {
  padding: 0 16px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slide__image {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 34%, rgba(219, 39, 119, 0.40), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.66) 43%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.48), rgba(17, 24, 39, 0.10));
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  padding-block: 110px;
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
  animation: slideIn 0.75s ease both;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fecaca;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.7;
}

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

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

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

.btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 16px 30px rgba(220, 38, 38, 0.24);
}

.btn--ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

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

.hero-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 28px;
}

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

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

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

.section {
  padding-block: 74px;
}

.section--intro {
  padding-block: 48px;
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.section--soft {
  background: linear-gradient(135deg, #fff1f2, #ffffff 55%, #ffe4e6);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 32px;
}

.intro-grid h2,
.section-heading h2,
.ranking-layout h2 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.intro-grid p,
.section-heading p,
.ranking-layout p {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.8;
}

.feature-search,
.search-page-form {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #fecaca;
  box-shadow: var(--shadow-md);
}

.feature-search input,
.search-page-form input {
  min-width: 0;
  flex: 1;
  padding: 16px 20px;
}

.feature-search button,
.search-page-form button {
  padding: 0 24px;
}

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

.section-heading > a {
  color: var(--color-primary);
  font-weight: 800;
}

.section-heading--center {
  justify-content: center;
  text-align: center;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 202, 202, 0.8);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fca5a5;
  box-shadow: var(--shadow-lg);
}

.movie-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #991b1b, #db2777);
}

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

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

.movie-card__score {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  font-size: 38px;
  transition: opacity 0.2s ease;
}

.movie-card:hover .movie-card__play {
  opacity: 1;
}

.movie-card__body {
  padding: 18px;
}

.movie-card__meta,
.detail-meta,
.ranking-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-card__meta span,
.detail-meta span,
.ranking-card__stats span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff1f2;
}

.movie-card h3,
.ranking-card h2 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover {
  color: var(--color-primary);
}

.movie-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-card__tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.movie-card__tags span,
.detail-tags span {
  padding: 5px 9px;
  color: #be123c;
  background: #ffe4e6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(254, 202, 202, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  font-weight: 900;
}

.category-tile strong {
  font-size: 18px;
}

.category-tile small {
  color: var(--color-muted);
}

.ranking-section {
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(248, 113, 113, 0.35), transparent 30%),
    linear-gradient(135deg, #111827, #7f1d1d 70%, #831843);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 42px;
  align-items: center;
}

.ranking-layout h2,
.ranking-layout p,
.ranking-layout .section-kicker {
  color: #ffffff;
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  font-weight: 900;
}

.ranking-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.ranking-meta {
  color: #fecaca;
  font-size: 13px;
}

.sub-hero {
  padding: 78px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 114, 182, 0.38), transparent 30%),
    linear-gradient(135deg, #111827, #7f1d1d 60%, #be123c);
}

.sub-hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.1;
}

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

.sub-hero .section-kicker {
  color: #fecaca;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.filter-bar {
  position: sticky;
  top: 86px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 150px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(254, 202, 202, 0.8);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #ffffff;
}

.filter-count {
  color: var(--color-primary);
  font-weight: 900;
  white-space: nowrap;
}

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

.category-overview-card a {
  display: grid;
  min-height: 280px;
  padding: 26px;
  border: 1px solid rgba(254, 202, 202, 0.9);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card a:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-overview-card__num {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 18px 0 8px;
  font-size: 26px;
}

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

.category-overview-card__meta {
  margin-top: 16px;
  color: var(--color-primary);
  font-weight: 900;
}

.category-overview-card__samples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.category-overview-card__samples span {
  max-width: 100%;
  overflow: hidden;
  padding: 5px 8px;
  color: #be123c;
  background: #ffe4e6;
  border-radius: 999px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-hero__backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.24)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.12);
  transform: scale(1.06);
}

.detail-hero__content {
  position: relative;
  z-index: 2;
  padding: 62px 0 70px;
}

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

.detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #991b1b, #db2777);
  box-shadow: var(--shadow-lg);
}

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

.detail-poster span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
  font-weight: 900;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
}

.detail-tags {
  margin: 20px 0 28px;
}

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

.detail-content,
.detail-aside {
  min-width: 0;
}

.player-panel,
.content-block,
.aside-card,
.prose-card {
  padding: 26px;
  border: 1px solid rgba(254, 202, 202, 0.9);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.player-panel__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.player-panel__heading h2,
.content-block h2,
.aside-card h2,
.prose-card h2 {
  margin: 0;
  font-size: 24px;
}

.player-panel__heading span {
  color: var(--color-primary);
  font-weight: 900;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #000000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.22), rgba(0, 0, 0, 0.48));
  font-size: 20px;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-inline: auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.35);
}

.play-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.player-note {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.content-block {
  margin-top: 22px;
}

.content-block p,
.prose-card p {
  margin: 14px 0 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

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

.detail-table dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #fee2e2;
}

.detail-table dt {
  color: var(--color-muted);
}

.detail-table dd {
  margin: 0;
  font-weight: 700;
}

.prev-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.prev-next a,
.aside-link {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--color-primary);
  background: #fff1f2;
  font-weight: 800;
}

.detail-aside {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 20px;
}

.compact-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.compact-card img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #991b1b, #db2777);
}

.compact-card strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--color-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card__rank {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 5px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.9);
  font-size: 11px;
  font-weight: 900;
}

.aside-card {
  display: grid;
  gap: 12px;
}

.ranking-card-list {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(254, 202, 202, 0.9);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.ranking-card__cover {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  background: linear-gradient(135deg, #991b1b, #db2777);
}

.ranking-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-card__cover span {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  font-weight: 900;
}

.ranking-card__body {
  padding: 24px;
}

.ranking-card__body p {
  color: var(--color-muted);
  line-height: 1.8;
}

.ranking-card__stats strong {
  color: var(--color-primary);
  font-size: 22px;
}

.search-page-form {
  max-width: 760px;
  margin-top: 28px;
}

.search-summary {
  margin-bottom: 22px;
  color: var(--color-muted);
  font-weight: 800;
}

.prose-card {
  max-width: 900px;
}

.prose-card h2 + p {
  margin-bottom: 26px;
}

.image-missing {
  opacity: 0;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

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

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

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

  .detail-aside {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    gap: 12px;
  }

  .brand__text {
    font-size: 18px;
  }

  .header-search {
    display: none;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-slide__content {
    padding-block: 82px;
  }

  .hero-controls {
    bottom: 22px;
  }

  .intro-grid,
  .ranking-layout,
  .detail-hero__grid,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(250px, 70vw);
  }

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

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

  .filter-bar {
    position: static;
    grid-template-columns: 1fr;
  }
}

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

  .site-header {
    position: sticky;
  }

  .brand__icon {
    width: 36px;
    height: 36px;
  }

  .brand__text {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section {
    padding-block: 52px;
  }

  .hero-carousel {
    min-height: 560px;
  }

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

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

  .hero-actions,
  .prev-next {
    flex-direction: column;
  }

  .btn,
  .prev-next a {
    width: 100%;
  }

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

  .ranking-list a {
    grid-template-columns: 44px minmax(0, 1fr);
  }

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

  .detail-table dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .player-panel,
  .content-block,
  .aside-card,
  .prose-card {
    padding: 20px;
  }
}
