
:root {
  color-scheme: dark;
  --bg: #070913;
  --bg-soft: #111827;
  --panel: rgba(17, 24, 39, 0.72);
  --panel-strong: rgba(31, 41, 55, 0.92);
  --line: rgba(255, 255, 255, 0.10);
  --text: #f8fafc;
  --muted: #aeb7c7;
  --muted-2: #7c8799;
  --primary: #facc15;
  --primary-2: #fb7185;
  --purple: #7c3aed;
  --blue: #38bdf8;
  --green: #34d399;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(124, 58, 237, 0.38), transparent 35rem),
    radial-gradient(circle at 88% 4%, rgba(236, 72, 153, 0.24), transparent 30rem),
    linear-gradient(180deg, #070913 0%, #0a0d18 42%, #06070d 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: white;
  background: linear-gradient(90deg, rgba(49, 46, 129, 0.96), rgba(88, 28, 135, 0.96), rgba(131, 24, 67, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  flex: 0 0 auto;
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand span:last-child {
  background: linear-gradient(90deg, #fde68a, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, #fde047, #fb7185);
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.45);
}

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

.desktop-nav a {
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fde047;
  background: rgba(255, 255, 255, 0.10);
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.header-search input {
  min-width: 0;
  width: 100%;
  padding: 0.68rem 1rem;
  color: white;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.header-search button {
  width: 2.75rem;
  align-self: stretch;
  color: #111827;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #facc15, #fb7185);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  color: white;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 1rem;
}

.mobile-nav a,
.mobile-nav form {
  display: block;
  padding: 0.72rem 0;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-nav form {
  display: flex;
  gap: 0.5rem;
}

.mobile-nav input {
  flex: 1;
  min-width: 0;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.10);
}

.mobile-nav button {
  color: #111827;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: #facc15;
}

main {
  min-height: 60vh;
}

.hero-carousel {
  position: relative;
  width: min(1280px, calc(100% - 2rem));
  min-height: clamp(570px, 74vh, 760px);
  margin: 1.1rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 32px;
  background: #0b1020;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: #facc15;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-summary,
.page-hero p,
.detail-copy .lead {
  max-width: 760px;
  margin: 0 0 1.35rem;
  color: #d4d8e3;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

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

.hero-tags span,
.tag-row span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.10);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.78rem 1.45rem;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.primary-button {
  color: #111827;
  background: linear-gradient(135deg, #facc15, #fb7185);
  box-shadow: 0 18px 42px rgba(251, 113, 133, 0.24);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(340px, 100%);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.48), rgba(251, 113, 133, 0.38)),
    #111827;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  color: #111827;
  background: #facc15;
  box-shadow: 0 0 30px rgba(250, 204, 21, 0.55);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.52);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-arrow:hover {
  background: rgba(250, 204, 21, 0.28);
}

.hero-arrow.prev {
  left: 1rem;
}

.hero-arrow.next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 2rem;
  background: linear-gradient(90deg, #facc15, #fb7185);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 1rem auto 0;
}

.quick-stats a {
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(14px);
}

.quick-stats strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  color: #facc15;
}

.quick-stats span {
  color: var(--muted);
}

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

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

.section-title-row h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  letter-spacing: -0.035em;
}

.section-title-row p {
  max-width: 760px;
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: #facc15;
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 1.15rem;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.64);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 204, 21, 0.32);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.poster,
.mini-poster,
.detail-poster {
  position: relative;
  overflow: hidden;
  margin: 0;
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.42), rgba(219, 39, 119, 0.28)),
    #111827;
}

.poster {
  aspect-ratio: 2 / 3;
}

.poster::after,
.mini-poster::after,
.detail-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.74));
  pointer-events: none;
}

.poster.is-missing::before,
.mini-poster.is-missing::before,
.detail-poster.is-missing::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  content: attr(data-title);
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.year-badge,
.rank-badge,
.play-hover {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.year-badge {
  right: 0.65rem;
  top: 0.65rem;
  min-height: 1.8rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(250, 204, 21, 0.96);
}

.rank-badge {
  left: 0.65rem;
  top: 0.65rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #ef4444, #a855f7);
}

.play-hover {
  left: 50%;
  top: 50%;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  color: #111827;
  background: #facc15;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-card-body {
  padding: 0.9rem;
}

.movie-card-body h3 {
  min-height: 2.8em;
  margin: 0 0 0.38rem;
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body p {
  min-height: 3.2em;
  margin: 0 0 0.62rem;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  color: var(--muted-2);
  font-size: 0.78rem;
}

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

.tag-row span {
  min-height: 1.5rem;
  padding: 0.15rem 0.48rem;
  color: #dbeafe;
  font-size: 0.73rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
}

.ranking-panel {
  position: sticky;
  top: 6rem;
  align-self: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.34), rgba(17, 24, 39, 0.70));
}

.panel-title {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.rank-row,
.rank-list-row {
  display: grid;
  gap: 0.4rem;
  align-items: center;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row {
  grid-template-columns: 2.4rem minmax(0, 1fr);
  padding: 0.72rem;
}

.rank-row:hover,
.rank-list-row:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.rank-row span,
.rank-number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #111827;
  font-weight: 900;
  background: #facc15;
}

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

.rank-row em,
.rank-list-row em {
  grid-column: 2;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-list {
  display: grid;
  grid-auto-columns: minmax(280px, 330px);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.9rem;
  scroll-snap-type: x proximity;
}

.mini-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-height: 138px;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.66);
  scroll-snap-align: start;
}

.mini-poster {
  width: 92px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
}

.mini-card strong {
  display: block;
  margin-bottom: 0.4rem;
}

.mini-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.category-chip,
.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.42), rgba(17, 24, 39, 0.7));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover,
.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 204, 21, 0.28);
}

.category-chip.featured {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(236, 72, 153, 0.34));
}

.category-chip.soft {
  background: rgba(17, 24, 39, 0.58);
}

.category-chip strong,
.category-card strong {
  font-size: 1.08rem;
}

.category-chip span,
.category-card span,
.category-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  width: min(1280px, calc(100% - 2rem));
  margin: 1rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.page-hero {
  padding: clamp(2.25rem, 7vw, 5rem);
  background:
    radial-gradient(circle at 90% 0%, rgba(251, 113, 133, 0.32), transparent 30rem),
    linear-gradient(135deg, rgba(49, 46, 129, 0.88), rgba(88, 28, 135, 0.68));
}

.compact-hero {
  min-height: 260px;
  display: grid;
  align-items: center;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(1.4rem, 5vw, 3rem);
  align-items: end;
  min-height: 580px;
  padding: clamp(1.25rem, 5vw, 4rem);
  background-size: cover;
  background-position: center;
}

.detail-poster {
  width: min(300px, 100%);
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.detail-copy h1 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
}

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

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 10rem;
  min-height: 3.2rem;
  border: 0;
  border-radius: 999px;
  color: #111827;
  cursor: pointer;
  font-weight: 900;
  background: linear-gradient(135deg, #facc15, #fb7185);
  box-shadow: 0 22px 50px rgba(251, 113, 133, 0.35);
  transform: translate(-50%, -50%);
}

.player-start.is-hidden {
  display: none;
}

.source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.source-tab {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.75);
}

.source-tab.is-active {
  color: #111827;
  border-color: transparent;
  background: #facc15;
}

.player-status {
  min-height: 1.6em;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
}

.detail-main,
.info-card {
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.64);
}

.detail-main h2,
.info-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.detail-main p {
  margin: 0 0 1.3rem;
  color: #d7dce8;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 6rem;
}

.info-card dl {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.65rem 1rem;
  margin: 0;
}

.info-card dt {
  color: var(--muted-2);
}

.info-card dd {
  margin: 0;
}

.info-card.gradient-card {
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.42), rgba(190, 24, 93, 0.26));
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric-grid span {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-grid strong {
  display: block;
  color: #facc15;
  font-size: 2rem;
}

.search-shell {
  padding-top: 2rem;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 0.7fr)) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.70);
}

.search-panel label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.search-panel input,
.search-panel select,
.search-panel button {
  min-height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.search-panel input,
.search-panel select {
  width: 100%;
  padding: 0 0.85rem;
}

.search-panel button {
  padding: 0 1rem;
  color: #111827;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  background: #facc15;
}

.search-summary {
  margin: 1rem 0;
  color: var(--muted);
}

.rank-list {
  display: grid;
  gap: 0.55rem;
}

.rank-list-row {
  grid-template-columns: 3rem minmax(0, 1fr) minmax(180px, auto) 5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 39, 0.56);
}

.rank-list-row em {
  grid-column: auto;
  text-align: right;
}

.rank-list-row b {
  color: #facc15;
  text-align: right;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.2rem;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.50), rgba(0, 0, 0, 0.85));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 0.8fr));
  gap: 2rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.site-footer h2 {
  margin: 0 0 0.9rem;
  font-size: 1.12rem;
}

.site-footer p,
.site-footer a,
.muted {
  color: var(--muted);
}

.site-footer a {
  display: block;
  margin: 0.38rem 0;
}

.site-footer a:hover {
  color: #facc15;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-2);
}

.sitemap-columns {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
}

.sitemap-columns article,
.sitemap-movies > div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.60);
}

.sitemap-columns a,
.sitemap-movies a {
  display: inline-flex;
  gap: 0.4rem;
  margin: 0.25rem;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
}

.sitemap-columns a span,
.sitemap-movies a span {
  color: var(--muted-2);
}

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

  .mobile-menu-button {
    display: block;
  }

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

  .hero-slide,
  .detail-hero,
  .split-layout,
  .detail-layout,
  .info-layout,
  .sitemap-columns {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    justify-self: start;
    width: min(250px, 72vw);
  }

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

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

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

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

@media (max-width: 760px) {
  .hero-carousel {
    width: calc(100% - 1rem);
    min-height: 720px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 1.5rem;
    align-content: center;
  }

  .quick-stats,
  .chip-grid,
  .category-grid,
  .movie-grid.three,
  .movie-grid.four,
  .movie-grid.five,
  .movie-grid.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-section,
  .page-hero,
  .detail-hero {
    width: calc(100% - 1rem);
  }

  .section-title-row,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

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

  .rank-list-row {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .rank-list-row em,
  .rank-list-row b {
    grid-column: 2;
    text-align: left;
  }

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

@media (max-width: 520px) {
  .movie-grid.six,
  .movie-grid.five,
  .movie-grid.four,
  .movie-grid.three,
  .quick-stats,
  .chip-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 2.2rem;
  }

  .detail-poster {
    width: 210px;
  }
}
