:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --purple-700: #6d28d9;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(244, 63, 94, 0.16);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 45px rgba(127, 29, 29, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 34rem),
    linear-gradient(135deg, #f9fafb 0%, #fff1f2 48%, #fdf2f8 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  font-weight: 900;
  color: #881337;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.35);
}

.brand-text {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 360px;
  max-width: 460px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(127, 29, 29, 0.06);
}

.nav-search input,
.mobile-search input,
.hero-search input,
.catalog-tools input,
.catalog-tools select {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: #ffffff;
}

.nav-search input {
  flex: 1;
  padding: 0.7rem 1rem;
}

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-weight: 800;
}

.nav-search button {
  align-self: stretch;
  padding: 0 1.1rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--rose-600);
}

.mobile-nav {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.mobile-link {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 0.35rem;
}

.mobile-search {
  display: flex;
  margin-top: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.mobile-search input {
  flex: 1;
  padding: 0.75rem;
}

.mobile-search button {
  padding: 0 1rem;
}

.global-results {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: max(1rem, calc((100% - 1280px) / 2));
  width: min(520px, calc(100% - 2rem));
  max-height: 70vh;
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.search-result {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.8rem;
  padding: 0.55rem;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: var(--rose-50);
}

.search-result img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-100), #fdf2f8);
}

.search-result strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #111827;
}

.search-result span,
.search-result p {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 45%, rgba(244, 63, 94, 0.24), transparent 24rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.93), rgba(17, 24, 39, 0.72) 46%, rgba(17, 24, 39, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1280px, calc(100% - 2rem));
  min-height: 720px;
  margin: 0 auto;
  padding: 7rem 0 8rem;
  max-width: 1280px;
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.38rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 1.2rem;
  font-size: clamp(2.4rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.08rem;
}

.hero-desc {
  max-width: 700px;
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.7;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.hero-tags span {
  padding: 0.42rem 0.8rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-button,
.ghost-button,
.side-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.side-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.36);
}

.primary-button:hover,
.side-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(244, 63, 94, 0.4);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
}

.hero-poster {
  position: absolute;
  right: max(2rem, calc((100% - 1280px) / 2));
  bottom: 6rem;
  z-index: 3;
  width: min(250px, 28vw);
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  object-fit: cover;
  background: linear-gradient(135deg, #4c1d95, #9f1239);
}

.hero-poster span {
  display: block;
  padding: 0.75rem 0.35rem 0.2rem;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  right: max(2rem, calc((100% - 1280px) / 2));
  bottom: 2.5rem;
  z-index: 5;
  display: flex;
  gap: 0.75rem;
}

.hero-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.8rem;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  z-index: 6;
  display: flex;
  width: min(680px, calc(100% - 2rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}

.hero-search input {
  flex: 1;
  padding: 1rem 1.2rem;
}

.hero-search button {
  padding: 0 1.4rem;
}

.content-section {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  min-height: 42px;
  color: var(--rose-600);
  background: var(--rose-50);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 12px 28px rgba(127, 29, 29, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 44px rgba(127, 29, 29, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #fdf2f8);
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: brightness(0.92);
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.26rem 0.58rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.9);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-play {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: scale(1);
}

.card-body {
  padding: 0.85rem;
}

.card-title {
  display: -webkit-box;
  min-height: 2.9em;
  overflow: hidden;
  color: #111827;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--rose-600);
}

.card-meta,
.card-desc {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.card-desc {
  display: -webkit-box;
  min-height: 4.1em;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 0.7rem;
}

.tag-row span {
  padding: 0.22rem 0.5rem;
  color: var(--rose-600);
  background: var(--rose-50);
  font-size: 0.75rem;
}

.category-section {
  padding-top: 2rem;
}

.category-grid,
.overview-grid,
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.category-tile,
.overview-card,
.spotlight-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile img,
.spotlight-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img,
.spotlight-card:hover img {
  opacity: 0.72;
  transform: scale(1.06);
}

.category-tile::after,
.spotlight-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.1));
}

.category-tile span,
.category-tile em,
.spotlight-card span,
.spotlight-card em {
  position: relative;
  z-index: 1;
  display: block;
  padding-inline: 1.2rem;
}

.category-tile span,
.spotlight-card span {
  margin-top: 6rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile em,
.spotlight-card em {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.rank-panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}

.rank-panel p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.rank-list,
.ranking-list {
  display: grid;
  gap: 0.7rem;
}

.rank-item,
.ranking-row {
  display: grid;
  grid-template-columns: 38px 56px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.62rem;
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover,
.ranking-row:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(127, 29, 29, 0.1);
}

.rank-number,
.ranking-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-weight: 900;
}

.rank-item img,
.ranking-row img {
  width: 56px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-100), #fdf2f8);
}

.rank-item strong,
.ranking-row strong {
  display: block;
  color: #111827;
}

.rank-item em,
.ranking-row em {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.45;
}

.page-hero {
  position: relative;
  width: min(1280px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  overflow: hidden;
  border-radius: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 25%, rgba(255, 255, 255, 0.18), transparent 18rem),
    linear-gradient(135deg, #881337, #be185d 58%, #7c3aed);
  box-shadow: var(--shadow);
}

.page-hero > div {
  max-width: 820px;
  padding: clamp(2rem, 6vw, 5rem);
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.8;
}

.overview-card {
  min-height: auto;
  padding: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.overview-card h2 {
  margin: 1rem 0 0.45rem;
  font-size: 1.35rem;
}

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

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.overview-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-100), #fdf2f8);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 190px));
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(127, 29, 29, 0.08);
}

.catalog-tools input,
.catalog-tools select {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(244, 63, 94, 0.16);
}

.spotlight-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.spotlight-card {
  min-height: 260px;
}

.spotlight-card span {
  margin-top: 10rem;
}

.ranking-list {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
}

.ranking-row {
  grid-template-columns: 48px 64px minmax(180px, 0.45fr) 1fr;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 1.2rem auto;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.4rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #030712;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.35);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.4), rgba(136, 19, 55, 0.46));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 0.35rem;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.45);
  font-size: 2.1rem;
}

.player-overlay strong {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.detail-article,
.detail-side {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.detail-article {
  margin-top: 1.2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.detail-article h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.detail-tags {
  margin-bottom: 1.5rem;
}

.detail-tags span {
  padding: 0.35rem 0.7rem;
  color: var(--rose-600);
  background: var(--rose-50);
}

.detail-article h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.35rem;
}

.detail-article p {
  color: #374151;
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 96px;
  padding: 1rem;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-100), #fdf2f8);
}

.detail-meta {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.detail-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
  background: var(--rose-50);
}

.detail-meta span {
  color: var(--muted);
}

.detail-meta strong {
  color: #111827;
  text-align: right;
}

.side-button {
  width: 100%;
}

.related-section {
  padding-top: 2.5rem;
}

.site-footer {
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.84);
  background: linear-gradient(135deg, #111827, #881337);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0 1.4rem;
}

.footer-inner strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #ffffff;
  font-size: 1.25rem;
}

.footer-inner p {
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-content: flex-start;
}

.footer-links a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.copyright {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.62);
}

[hidden] {
  display: none !important;
}

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

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

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

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

  .split-section,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    min-height: 680px;
    padding-top: 6rem;
  }

  .hero-poster {
    display: none;
  }

  .hero-search {
    bottom: 5.5rem;
  }

  .hero-controls {
    left: 1rem;
    right: auto;
  }

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

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

  .catalog-tools {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-row {
    grid-template-columns: 42px 58px 1fr;
  }

  .ranking-row em {
    grid-column: 3;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 1rem;
  }
}

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

  .brand-text {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 620px;
  }

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

  .hero h1 {
    letter-spacing: -0.04rem;
  }

  .hero-search {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .hero-search button {
    min-height: 46px;
  }

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

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

  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .page-hero {
    border-radius: 24px;
  }

  .player-shell {
    border-radius: 22px;
  }
}
