:root {
  color-scheme: dark;
  --bg: #09090f;
  --bg-soft: #11111b;
  --panel: rgba(18, 18, 30, 0.82);
  --panel-strong: rgba(24, 24, 38, 0.96);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #b9bfd5;
  --soft: #7e86a5;
  --pink: #ff4fa3;
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --orange: #fb923c;
  --green: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 79, 163, 0.22), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(34, 211, 238, 0.14), transparent 32rem),
    linear-gradient(180deg, #09090f 0%, #10101a 46%, #07070c 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  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: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 84%);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 15, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  background: rgba(9, 9, 15, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.header-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 16px 34px rgba(255, 79, 163, 0.32);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, #ffffff, #ffd4eb 48%, #c8b6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(320px, 30vw);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  color: var(--text);
  outline: 0;
  background: transparent;
}

.header-search input {
  min-width: 0;
  padding: 9px 12px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.search-panel input::placeholder,
.filter-bar input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.header-search button,
.mobile-search button,
.search-panel button,
.primary-button,
.secondary-button,
.player-action {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 28px rgba(255, 79, 163, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.header-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.primary-button:hover,
.secondary-button:hover,
.player-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(139, 92, 246, 0.32);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(16, 16, 28, 0.96);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

.page-main {
  min-height: 60vh;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-image:
    linear-gradient(90deg, rgba(9, 9, 15, 0.96) 0%, rgba(9, 9, 15, 0.78) 42%, rgba(9, 9, 15, 0.34) 100%),
    var(--hero-image),
    linear-gradient(135deg, rgba(255, 79, 163, 0.34), rgba(139, 92, 246, 0.2));
  background-size: cover;
  background-position: center;
}

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

.hero-content {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  padding: 90px 0 80px;
}

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

.hero-kicker,
.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffd4eb;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 22px 0 16px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-title span {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, #ffffff, #ffd6ec 50%, #b7a4ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-desc {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

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

.primary-button,
.secondary-button,
.player-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span,
.tag-list span,
.detail-tags a,
.meta-pill,
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #f7d2ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.hero-poster-wrap {
  position: relative;
  justify-self: end;
  width: min(360px, 100%);
}

.hero-poster-wrap::before {
  position: absolute;
  inset: -16px;
  content: "";
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.4), rgba(34, 211, 238, 0.24));
  filter: blur(18px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.24), rgba(139, 92, 246, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

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

.hero-poster-overlay {
  position: absolute;
  inset: auto 16px 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-poster-overlay strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.hero-poster-overlay span {
  color: var(--muted);
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dots button.active {
  width: 26px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.section-block {
  padding: 76px 0 0;
}

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

.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.movie-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 79, 163, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(135deg, rgba(255, 79, 163, 0.24), rgba(139, 92, 246, 0.28)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 60%);
}

.poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.74) 100%);
  opacity: 0.72;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 79, 163, 0.86);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  box-shadow: 0 18px 40px rgba(255, 79, 163, 0.42);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(251, 146, 60, 0.28);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft);
  font-size: 12px;
}

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

.movie-card h3 a:hover {
  color: #ffd4eb;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(255, 79, 163, 0.26), transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 79, 163, 0.42);
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
}

.category-card span {
  color: var(--muted);
}

.category-card em {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.1);
  font-style: normal;
  font-size: 60px;
  font-weight: 900;
}

.page-hero {
  padding: 72px 0 34px;
}

.page-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 79, 163, 0.28), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.page-hero-card h1 {
  max-width: 900px;
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

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

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(120px, 170px));
  gap: 12px;
  margin: 28px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.filter-bar input,
.filter-bar select,
.search-panel input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-bar select option {
  color: #111827;
}

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

.search-panel button {
  padding: 0 26px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination .active,
.pagination a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 46px;
  background-image:
    linear-gradient(90deg, rgba(9, 9, 15, 0.96), rgba(9, 9, 15, 0.78)),
    var(--detail-image),
    linear-gradient(135deg, rgba(255, 79, 163, 0.2), rgba(139, 92, 246, 0.16));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.24), rgba(139, 92, 246, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #ffd4eb;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-copy .one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-top: 42px;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.text-panel {
  padding: clamp(22px, 4vw, 34px);
}

.text-panel h2,
.player-section h2,
.sidebar h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.text-panel p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.text-panel p:last-child {
  margin-bottom: 0;
}

.player-section {
  padding: 24px;
  margin-bottom: 28px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.player-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72)),
    var(--player-image),
    linear-gradient(135deg, rgba(255, 79, 163, 0.22), rgba(139, 92, 246, 0.2));
  background-size: cover;
  background-position: center;
}

.play-cover.hidden {
  display: none;
}

.play-core {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 22px 50px rgba(255, 79, 163, 0.36);
  font-size: 32px;
}

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

.sidebar {
  display: grid;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.side-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.side-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
}

.side-thumb {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.24), rgba(139, 92, 246, 0.28));
}

.side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-item strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.3;
}

.side-item span {
  color: var(--soft);
  font-size: 13px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 72px 70px minmax(0, 1fr) 160px 130px;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.ranking-num {
  font-size: 24px;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(135deg, #ffd4eb, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

.ranking-thumb {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.24), rgba(139, 92, 246, 0.28));
}

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

.ranking-title strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.ranking-title span,
.ranking-meta,
.ranking-heat {
  color: var(--muted);
  font-size: 14px;
}

.search-results {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.search-result {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.result-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.24), rgba(139, 92, 246, 0.28));
}

.search-result h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.search-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.no-results {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.info-page {
  max-width: 920px;
  margin: 0 auto;
}

.info-page .panel {
  padding: clamp(24px, 5vw, 46px);
}

.info-page h2 {
  margin-top: 0;
  font-size: 30px;
}

.info-page p,
.info-page li {
  color: var(--muted);
  line-height: 1.9;
}

.site-footer {
  margin-top: 90px;
  padding: 52px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 10, 0.56);
}

.footer-grid {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-badge {
  display: inline-flex;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffd4eb;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a,
.footer-bottom a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: #ffffff;
}

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

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

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

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

  .sidebar {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  body.nav-open .mobile-nav {
    display: grid;
    gap: 6px;
  }

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

  .hero-poster-wrap {
    justify-self: start;
    width: min(310px, 82vw);
  }

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

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

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

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

  .ranking-meta,
  .ranking-heat {
    display: none;
  }
}

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

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

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

  .hero-content {
    padding-top: 56px;
    gap: 30px;
  }

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 20px;
  }

  .section-block {
    padding-top: 54px;
  }

  .section-heading {
    display: grid;
  }

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

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

  .category-grid,
  .filter-bar,
  .search-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding-top: 48px;
  }

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

  .content-grid {
    padding-top: 28px;
  }

  .player-section {
    padding: 14px;
  }

  .search-result {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .search-result .primary-button {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: grid;
  }
}
