:root {
  --page-bg: #eff6ff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 58%, #ecfeff 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.brand-mark.small {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.search-panel input,
.local-filter {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  outline: none;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 190px;
  padding: 10px 14px;
}

.nav-search input:focus,
.search-panel input:focus,
.local-filter:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.nav-search button,
.search-panel button,
.btn-primary,
.btn-soft {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.nav-search button:hover,
.search-panel button:hover,
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.hero-slider {
  background: #0f172a;
}

.hero-stage {
  position: relative;
  height: 600px;
  overflow: hidden;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.58) 48%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 650px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-soft {
  background: #eff6ff;
  color: var(--blue);
  border: 1px solid #bfdbfe;
}

.btn-soft:hover {
  color: #ffffff;
  background: var(--blue);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.home-categories {
  padding: 54px 0 12px;
}

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

.category-tile,
.category-overview-card {
  display: block;
  padding: 26px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-overview-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
  font-size: 20px;
}

.category-tile strong,
.category-overview-title strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.category-tile em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-head.light h2 {
  color: #ffffff;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-weight: 800;
}

.section-more span {
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(3px);
}

.light-link {
  color: #ffffff;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.movie-card.large .poster-wrap {
  height: 320px;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), transparent);
}

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 19px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--blue);
}

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

.card-meta {
  color: #64748b;
  font-size: 12px;
}

.card-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.hot-section {
  padding-top: 18px;
  padding-bottom: 18px;
}

.hot-panel {
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.26);
}

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

.hot-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hot-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hot-thumb {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  overflow: hidden;
  border-radius: 14px;
}

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

.hot-card strong,
.compact-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hot-card em,
.compact-card em {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 13px;
}

.recommended-panel {
  margin-bottom: 54px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.recommended-panel h2 {
  margin: 0 0 22px;
  font-size: 32px;
}

.compact-list {
  display: grid;
  gap: 16px;
}

.compact-list.tight {
  gap: 12px;
}

.compact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: #eff6ff;
  transform: translateX(3px);
}

.compact-thumb {
  width: 82px;
  height: 64px;
  flex: 0 0 82px;
  overflow: hidden;
  border-radius: 12px;
}

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

.compact-info {
  min-width: 0;
}

.compact-info em {
  color: var(--muted);
}

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

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

.blue-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a, #2563eb 55%, #0891b2);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #dbeafe;
  font-weight: 700;
}

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

.breadcrumb.inverse {
  color: rgba(255, 255, 255, 0.82);
}

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

.category-overview-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-overview-title span {
  margin-bottom: 0;
}

.category-overview-title strong {
  margin-bottom: 0;
  font-size: 22px;
}

.category-overview-card p {
  margin: 16px 0;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.local-filter {
  width: min(100%, 520px);
  padding: 14px 18px;
}

.filter-empty,
.search-empty {
  display: none;
  margin-top: 24px;
  padding: 26px;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--soft-shadow);
}

.filter-empty.is-visible,
.search-empty.is-visible {
  display: block;
}

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

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

.rank-row a {
  display: grid;
  grid-template-columns: 64px 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  font-weight: 900;
}

.rank-cover {
  width: 96px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
}

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

.rank-info {
  min-width: 0;
}

.rank-info strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.rank-info em,
.rank-info small {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.rank-info small {
  margin-top: 4px;
}

.rank-action {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-weight: 800;
}

.search-panel {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
}

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

.search-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.search-categories button {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--blue);
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.search-categories button.is-active {
  color: #ffffff;
  background: var(--blue);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.08);
  transform: scale(1.04);
  opacity: 0.48;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.36));
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 50px 0 60px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 40px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 26px;
  color: #e2e8f0;
  font-size: 20px;
}

.detail-meta {
  margin-bottom: 30px;
}

.player-section {
  padding: 56px 0 28px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(2, 6, 23, 0.86));
  cursor: pointer;
  text-align: center;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.36);
  font-size: 32px;
  text-indent: 4px;
}

.player-cover strong {
  max-width: 760px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.18;
}

.player-cover em {
  max-width: 760px;
  color: #cbd5e1;
  font-style: normal;
}

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

.detail-article,
.detail-side {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.detail-article {
  padding: clamp(24px, 4vw, 38px);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 24px;
}

.side-link {
  display: block;
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  color: var(--blue);
  background: #eff6ff;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-link:hover {
  color: #ffffff;
  background: var(--blue);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-cloud span {
  padding: 8px 14px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-weight: 700;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827, #1e293b);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 1080px) {
  .nav-shell {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links,
  .nav-search {
    display: none;
    width: 100%;
  }

  .nav-links.is-open,
  .nav-search.is-open {
    display: flex;
  }

  .nav-links.is-open {
    flex-wrap: wrap;
    order: 3;
    margin-left: 0;
    padding-bottom: 4px;
  }

  .nav-search.is-open {
    order: 4;
    padding-bottom: 16px;
  }

  .nav-search input {
    flex: 1;
    width: auto;
  }

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

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

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

  .detail-poster {
    width: min(300px, 100%);
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

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

  .hero-stage {
    height: 620px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 82px;
  }

  .hero-arrow {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .hero-prev {
    left: 14px;
  }

  .hero-next {
    right: 14px;
  }

  .hero-arrow:hover {
    transform: scale(1.04);
  }

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

  .poster-wrap,
  .movie-card.large .poster-wrap {
    height: 360px;
  }

  .filter-bar,
  .section-head,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .local-filter {
    width: 100%;
  }

  .rank-row a {
    grid-template-columns: 44px 76px 1fr;
  }

  .rank-action {
    display: none;
  }

  .rank-cover {
    width: 76px;
    height: 64px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-head {
    padding: 32px 0 44px;
  }

  .video-shell {
    border-radius: 18px;
  }

  .play-icon {
    width: 68px;
    height: 68px;
  }
}
