:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-strong: rgba(30, 41, 59, 0.92);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(251, 146, 60, 0.34);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --orange: #f97316;
  --amber: #fbbf24;
  --red: #ef4444;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
}

body.menu-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: 60;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.top-nav {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.38);
}

.brand-name,
.footer-logo {
  font-size: 1.28rem;
  background: linear-gradient(90deg, #fb923c, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 2px;
  background: var(--orange);
  border-radius: 999px;
  transition: right 0.22s ease;
}

.nav-link:hover,
.nav-link-active {
  color: #fed7aa;
}

.nav-link:hover::after,
.nav-link-active::after {
  right: 0;
}

.nav-search,
.mobile-search,
.home-search-strip form,
.search-panel,
.filter-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search input,
.mobile-search input,
.home-search-strip input,
.search-panel input,
.filter-panel input,
.search-panel select,
.filter-panel select {
  min-width: 0;
  color: var(--text);
  border: 1px solid var(--border);
  outline: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  padding: 12px 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 250px;
  padding: 10px 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.home-search-strip input:focus,
.search-panel input:focus,
.filter-panel input:focus,
.search-panel select:focus,
.filter-panel select:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
  background: rgba(15, 23, 42, 0.96);
}

.nav-search button,
.mobile-search button,
.home-search-strip button,
.search-panel button,
.filter-panel button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-search button,
.mobile-search button,
.home-search-strip button,
.search-panel button,
.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.24);
}

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

.mobile-search button,
.home-search-strip button,
.search-panel button,
.filter-panel button {
  padding: 12px 18px;
}

.nav-search button:hover,
.mobile-search button:hover,
.home-search-strip button:hover,
.search-panel button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.32);
}

.secondary-button,
.filter-panel button {
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: rgba(249, 115, 22, 0.1);
}

.secondary-button:hover,
.filter-panel button:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.22);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.82);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--text);
}

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

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

.mobile-search input {
  flex: 1;
}

.mobile-nav-link {
  padding: 12px 14px;
  color: var(--muted-strong);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.55);
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.85) 22%, rgba(15, 23, 42, 0.48) 62%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.58) 45%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1280px) / 2 + 20px));
  right: 32px;
  bottom: 70px;
  width: min(720px, calc(100% - 64px));
}

.eyebrow {
  margin: 0 0 12px;
  color: #fb923c;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5.6rem);
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.55);
}

.hero-desc {
  max-width: 660px;
  margin: 24px 0 0;
  color: #e2e8f0;
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.75;
}

.hero-tags,
.tag-row,
.detail-tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-tag-links a {
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
}

.hero-dots {
  position: absolute;
  right: max(32px, calc((100vw - 1280px) / 2 + 20px));
  bottom: 42px;
  display: flex;
  gap: 9px;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: #fb923c;
}

.content-section,
.home-search-strip,
.page-hero,
.detail-hero-inner,
.breadcrumb,
.site-footer .footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.content-section {
  padding: 54px 0;
}

.home-search-strip {
  position: relative;
  z-index: 3;
  margin-top: -34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-strip h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.home-search-strip form {
  min-width: min(520px, 100%);
}

.home-search-strip input,
.search-panel input {
  flex: 1;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading.spaced {
  margin-top: 42px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
}

.section-heading a {
  color: #fb923c;
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 146, 60, 0.48);
  background: var(--bg-card-strong);
  box-shadow: 0 22px 60px rgba(249, 115, 22, 0.13), 0 24px 70px rgba(0, 0, 0, 0.3);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.poster-wrap img,
.mini-card img,
.wide-card img,
.ranking-card img,
.rank-item img,
.detail-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.movie-card-link:hover img,
.mini-card:hover img,
.wide-card:hover img,
.ranking-card:hover img,
.rank-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.poster-gradient {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.poster-play,
.wide-card-play {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.88);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-play {
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  translate: -50% -50%;
}

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

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-card-body strong,
.mini-card strong,
.wide-card strong,
.ranking-info strong,
.rank-item strong {
  color: #fff;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card-link:hover strong,
.mini-card:hover strong,
.wide-card:hover strong,
.ranking-card:hover strong,
.rank-item:hover strong {
  color: #fb923c;
}

.movie-meta,
.movie-line,
.wide-card-body span,
.ranking-info span,
.watch-info p,
.detail-article p,
.page-hero p,
.site-footer p,
.category-overview-card span,
.category-tile em {
  color: var(--muted-strong);
  line-height: 1.72;
}

.movie-meta,
.tag-row span,
.wide-card-body em,
.ranking-info em,
.rank-item em,
.category-overview-card em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

.movie-line,
.wide-card-body span,
.ranking-info span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile,
.category-overview-card a {
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.8));
  transition: transform 0.24s ease, border 0.24s ease, background 0.24s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 146, 60, 0.45);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(15, 23, 42, 0.86));
}

.category-images,
.overview-cover-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.category-images img,
.overview-cover-stack img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.category-tile strong,
.category-overview-card strong {
  color: #fff;
  font-size: 1.15rem;
}

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

.horizontal-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.mini-card {
  flex: 0 0 250px;
  display: grid;
  gap: 10px;
}

.mini-card img {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #111827;
}

.mini-card span {
  display: grid;
  gap: 4px;
}

.wide-grid {
  display: grid;
  gap: 16px;
}

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

.wide-card a,
.rank-item,
.ranking-card a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.65);
  transition: transform 0.22s ease, border 0.22s ease, background 0.22s ease;
}

.wide-card a:hover,
.rank-item:hover,
.ranking-card a:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 146, 60, 0.42);
  background: rgba(30, 41, 59, 0.82);
}

.wide-card img {
  flex: 0 0 150px;
  width: 150px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #111827;
}

.wide-card-body,
.ranking-info {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.wide-card-play {
  right: 16px;
  width: 42px;
  height: 42px;
}

.rank-panel,
.feature-band,
.detail-article,
.watch-info,
.search-panel,
.filter-panel,
.search-summary {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.rank-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
}

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

.rank-item img {
  flex: 0 0 54px;
  width: 54px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
}

.rank-number {
  flex: 0 0 38px;
  color: #fb923c;
  font-size: 1.1rem;
  font-weight: 950;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.82));
}

.feature-band h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.feature-band p {
  color: var(--muted-strong);
  line-height: 1.8;
}

.page-hero {
  margin-top: 34px;
  padding: 56px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 0%, rgba(249, 115, 22, 0.24), transparent 30rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.72));
  box-shadow: var(--shadow);
}

.compact-hero h1,
.category-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-stats span {
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.13);
  padding: 8px 12px;
  font-weight: 850;
}

.filter-panel,
.search-panel {
  margin-bottom: 26px;
  padding: 18px;
}

.filter-panel input,
.search-panel input {
  flex: 1;
}

.filter-hidden {
  display: none !important;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 70px;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.84) 60%, rgba(2, 6, 23, 0.82) 100%),
    var(--hero-image) center / cover no-repeat;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.9));
  backdrop-filter: blur(12px);
}

.breadcrumb,
.detail-hero-inner {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 42px;
  align-items: end;
  padding-top: 46px;
}

.detail-copy p {
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.detail-meta span {
  color: var(--muted-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  padding: 8px 12px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.watch-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

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

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.12));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 48px rgba(249, 115, 22, 0.3);
}

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

.player-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #fff;
  text-align: center;
  border-radius: 14px;
  background: rgba(127, 29, 29, 0.82);
  padding: 12px 14px;
}

.watch-info {
  padding: 24px;
}

.watch-info h2,
.detail-article h2 {
  margin: 0 0 14px;
}

.watch-info dl {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.watch-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

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

.watch-info dd {
  margin: 0;
  color: #fff;
  text-align: right;
}

.watch-info dd a {
  color: #fb923c;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.detail-article {
  padding: 24px;
}

.detail-article:first-child {
  grid-column: 1 / -1;
}

.detail-tags {
  grid-column: 1 / -1;
}

.detail-tag-links a:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.28);
}

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

.category-overview-card a {
  min-height: 310px;
}

.overview-cover-stack {
  grid-template-columns: repeat(4, 1fr);
}

.overview-body {
  display: grid;
  gap: 8px;
}

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

.ranking-card a {
  align-items: stretch;
}

.ranking-num {
  width: 54px;
  display: grid;
  place-items: center;
  color: #fb923c;
  font-size: 1.6rem;
  font-weight: 950;
}

.ranking-card img {
  width: 90px;
  flex: 0 0 90px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: #111827;
}

.search-app {
  min-height: 420px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 150px auto;
}

.search-summary {
  margin-bottom: 18px;
  padding: 14px 18px;
  color: var(--muted-strong);
}

.search-results {
  display: grid;
  gap: 16px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.22s ease, border 0.22s ease;
}

.search-result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 146, 60, 0.42);
}

.search-result-card img {
  width: 120px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #111827;
}

.search-result-card strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

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

.search-result-card em {
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px 18px;
}

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

.footer-links a:hover {
  color: #fb923c;
}

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

  .nav-search input {
    width: 210px;
  }

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

  .rank-panel {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .top-nav {
    gap: 14px;
  }

  .home-search-strip,
  .feature-band,
  .detail-hero-inner,
  .footer-inner,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }

  .home-search-strip,
  .home-search-strip form {
    display: grid;
  }

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

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

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

@media (max-width: 680px) {
  .content-section,
  .home-search-strip,
  .page-hero,
  .detail-hero-inner,
  .breadcrumb,
  .site-footer .footer-inner {
    width: min(100% - 22px, 1280px);
  }

  .hero-carousel {
    min-height: 78vh;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 88px;
    width: auto;
  }

  .hero-dots {
    left: 18px;
    right: auto;
    bottom: 42px;
  }

  .home-search-strip,
  .page-hero,
  .feature-band,
  .detail-article,
  .watch-info {
    padding: 20px;
    border-radius: 20px;
  }

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

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

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

  .category-grid,
  .category-overview-grid,
  .two-column,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    display: grid;
  }

  .wide-card a,
  .ranking-card a {
    align-items: center;
    gap: 12px;
  }

  .wide-card img {
    width: 108px;
    flex-basis: 108px;
  }

  .ranking-card img {
    width: 76px;
    flex-basis: 76px;
  }

  .ranking-num {
    width: 34px;
    font-size: 1.15rem;
  }

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

  .search-result-card img {
    width: 84px;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 420px) {
  .poster-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
