:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-soft: #e0f2fe;
  --secondary: #b45309;
  --accent: #dc2626;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06);
  --shadow-md: 0 8px 24px rgb(15 23 42 / 0.10);
  --shadow-lg: 0 24px 60px rgb(15 23 42 / 0.18);
  --radius: 0.75rem;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--neutral-900);
  background: var(--neutral-50);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container);
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 22px rgb(2 132 199 / 0.25);
  font-size: 15px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--neutral-500);
  font-size: 12px;
  margin-top: 3px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--neutral-600);
  font-size: 14px;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

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

.header-search {
  width: 240px;
  height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}

.header-search input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 0 0 16px;
  background: transparent;
  color: var(--neutral-800);
}

.header-search button {
  width: 42px;
  height: 40px;
  border: 0;
  color: var(--primary-dark);
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  cursor: pointer;
}

.mobile-panel {
  border-top: 1px solid var(--neutral-200);
  padding: 14px 20px 18px;
  background: var(--white);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  padding: 11px 12px;
}

.mobile-search button {
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  color: var(--white);
  background: var(--primary);
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  height: min(60vh, 650px);
  overflow: hidden;
  background: var(--neutral-900);
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 30% 20%, #334155, #0f172a 62%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.84), rgb(0 0 0 / 0.54) 45%, rgb(0 0 0 / 0.12)),
    linear-gradient(0deg, rgb(0 0 0 / 0.50), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: #bae6fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--neutral-200);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.15);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 750;
  color: var(--neutral-800);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn.primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 14px 26px rgb(2 132 199 / 0.30);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  color: var(--white);
  background: rgb(255 255 255 / 0.16);
  backdrop-filter: blur(8px);
}

.btn.block {
  width: 100%;
  margin-top: 20px;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgb(0 0 0 / 0.35);
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgb(0 0 0 / 0.55);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--white);
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 20px;
}

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

.section-head.inner {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-head a,
.text-link {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgb(2 132 199 / 0.18), rgb(180 83 9 / 0.20)),
    var(--neutral-200);
  box-shadow: var(--shadow-md);
}

.poster::after,
.rail-poster::after,
.rank-thumb::after,
.side-thumb::after {
  content: attr(data-title);
  position: absolute;
  inset: auto 10px 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.poster.image-empty::after,
.rail-poster.image-empty::after,
.rank-thumb.image-empty::after,
.side-thumb.image-empty::after {
  opacity: 1;
}

.poster img,
.rail-poster img,
.rank-thumb img,
.side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.poster:hover img,
.rail-card:hover img,
.rank-row:hover img,
.side-rec:hover img {
  transform: scale(1.055);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.68), transparent 52%);
}

.play-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgb(2 132 199 / 0.92);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  font-weight: 900;
  box-shadow: 0 10px 22px rgb(220 38 38 / 0.35);
}

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

.card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--primary-dark);
}

.card-meta {
  margin: 0 0 8px;
  color: var(--neutral-500);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 14px;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
}

.movie-rail::-webkit-scrollbar {
  height: 8px;
}

.movie-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--neutral-300);
}

.rail-card {
  flex: 0 0 190px;
  scroll-snap-align: start;
}

.rail-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  margin-bottom: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--neutral-200);
  box-shadow: var(--shadow-md);
}

.rail-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.35;
}

.rail-card small {
  color: var(--neutral-500);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
}

.category-panel,
.ranking-panel,
.detail-card,
.side-card {
  border: 1px solid var(--neutral-200);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-panel,
.ranking-panel {
  padding: 24px;
}

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

.category-tile {
  position: relative;
  min-height: 130px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: var(--white);
  background: var(--neutral-800);
}

.tile-image,
.category-cover::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgb(0 0 0 / 0.76), rgb(0 0 0 / 0.08)),
    var(--tile-image) center / cover no-repeat,
    linear-gradient(135deg, var(--primary), var(--secondary));
  transition: transform 0.3s ease;
}

.category-tile:hover .tile-image,
.category-card-large:hover .category-cover::before {
  transform: scale(1.06);
}

.tile-info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

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

.tile-info small {
  color: rgb(255 255 255 / 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.ranking-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  border-radius: 12px;
  background: var(--neutral-50);
}

.ranking-list a:hover {
  background: var(--primary-soft);
}

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

.ranking-list strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.ranking-list em {
  display: block;
  color: var(--neutral-500);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgb(56 189 248 / 0.28), transparent 28%),
    linear-gradient(135deg, var(--neutral-900), #0f172a 64%, var(--primary-dark));
  color: var(--white);
}

.page-hero > div {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 20px;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--neutral-200);
  font-size: 18px;
}

.compact-hero > div {
  padding-top: 56px;
  padding-bottom: 56px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.category-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--neutral-600);
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}

.category-tabs a.active,
.category-tabs a:hover {
  background: var(--primary);
  color: var(--white);
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--neutral-200);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-cover {
  position: relative;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: var(--white);
  background: var(--neutral-800);
}

.category-cover::before {
  content: "";
}

.category-cover span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.34);
  font-weight: 800;
}

.category-card-body h2 {
  margin: 4px 0 10px;
  font-size: 24px;
}

.category-card-body p {
  margin: 0 0 14px;
  color: var(--neutral-600);
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mini-tags span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--neutral-600);
  background: var(--neutral-100);
  font-size: 12px;
}

.pager {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}

.pager-link,
.pager-gap {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--white);
  color: var(--neutral-650, #57534e);
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}

.pager-link.active,
.pager-link:hover {
  color: var(--white);
  background: var(--primary);
}

.pager-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ranking-page .rank-list {
  display: grid;
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 64px 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.rank-thumb {
  position: relative;
  display: block;
  width: 96px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--neutral-200);
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--neutral-600);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--neutral-600);
  background: var(--neutral-100);
  font-size: 12px;
  font-weight: 750;
}

.watch-hero {
  position: relative;
  overflow: hidden;
  background: var(--neutral-900);
}

.watch-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.58), var(--neutral-900)),
    var(--watch-image) center / cover no-repeat;
  filter: blur(14px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.74;
}

.watch-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px 20px 58px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--neutral-300);
  font-size: 14px;
}

.crumbs a:hover {
  color: var(--white);
}

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

.player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}

.main-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle, rgb(0 0 0 / 0.10), rgb(0 0 0 / 0.58)),
    linear-gradient(0deg, rgb(0 0 0 / 0.38), rgb(0 0 0 / 0.05));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 18px 38px rgb(2 132 199 / 0.38);
  font-size: 30px;
  padding-left: 4px;
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(18px, 2.8vw, 30px);
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.6);
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-meta {
  margin: 0 0 14px;
  color: var(--neutral-500);
  font-weight: 650;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-cloud span {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.detail-card section {
  margin-top: 24px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.detail-card p {
  color: var(--neutral-700);
  font-size: 16px;
}

.watch-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 84px;
  padding: 20px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-rec {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--neutral-200);
}

.side-rec strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
}

.side-rec small {
  display: block;
  margin-top: 5px;
  color: var(--neutral-500);
  font-size: 12px;
}

.movie-card.compact .card-desc {
  -webkit-line-clamp: 1;
  min-height: 21px;
}

.big-search {
  display: flex;
  max-width: 680px;
  margin-top: 24px;
  padding: 6px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.12);
  backdrop-filter: blur(8px);
}

.big-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--white);
  background: transparent;
}

.big-search input::placeholder {
  color: rgb(255 255 255 / 0.70);
}

.big-search button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  color: var(--white);
  background: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.search-result-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.search-result-card .poster-mini {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--neutral-200);
}

.search-result-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.search-result-card p {
  margin: 0 0 7px;
  color: var(--neutral-600);
  font-size: 14px;
}

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

.site-footer {
  margin-top: 28px;
  color: var(--neutral-300);
  background: var(--neutral-900);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 20px 34px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
}

.footer-logo .brand-text strong {
  color: var(--white);
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--neutral-400);
}

.footer-links h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 16px;
}

.footer-grid {
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: var(--neutral-400);
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--primary-soft);
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding: 18px 20px;
  color: var(--neutral-500);
  text-align: center;
  font-size: 14px;
}

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

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

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

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

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

  .side-card {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    padding: 0 14px;
  }

  .brand-text small,
  .header-search {
    display: none;
  }

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

  .hero-content {
    padding: 84px 18px 70px;
    justify-content: flex-end;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 38px 16px;
  }

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

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

  .category-grid,
  .category-card-large,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 190px;
  }

  .rank-thumb {
    width: 100%;
    max-width: 170px;
  }

  .page-hero > div,
  .watch-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .player-box {
    border-radius: 14px;
  }

  .detail-card {
    padding: 20px;
  }

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

  .big-search {
    flex-direction: column;
  }

  .big-search input {
    min-height: 46px;
  }
}
