:root {
  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-secondary: #f97316;
  --color-accent: #22c55e;
  --color-bg: #f8fafc;
  --color-panel: #ffffff;
  --color-panel-soft: #f1f5f9;
  --color-border: #e5e7eb;
  --color-muted: #64748b;
  --color-text: #171717;
  --color-heading: #0f172a;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 24px 80px rgba(14, 165, 233, 0.26);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--color-bg) 36rem, #ffffff 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--color-heading);
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.32);
}

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

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #334155;
  font-size: 0.94rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--color-primary-dark);
  background: rgba(14, 165, 233, 0.1);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(310px, 32vw);
  min-width: 220px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  outline: none;
  background: transparent;
  color: #0f172a;
}

.header-search button,
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.header-search button {
  width: 44px;
  height: 44px;
  color: var(--color-primary-dark);
  background: transparent;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #0f172a;
  background: #f1f5f9;
}

.mobile-menu {
  display: none;
  padding: 0 0 18px;
}

.mobile-menu a,
.mobile-menu form {
  display: block;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), #06b6d4);
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.26);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.btn-secondary {
  color: #0f172a;
  background: #e2e8f0;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.74) 44%, rgba(15, 23, 42, 0.42) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 42px;
  min-height: 640px;
  padding: 76px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.82;
}

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

.hero-meta {
  margin: 22px 0;
}

.badge,
.hero-tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tag,
.meta-pill {
  padding: 7px 10px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.badge {
  padding: 6px 9px;
  color: #0369a1;
  background: #e0f2fe;
}

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

.hero-search {
  display: flex;
  align-items: center;
  max-width: 620px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  color: #ffffff;
  border: 0;
  outline: 0;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.hero-side-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(18px);
}

.hero-side-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-side-info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 46px 22px 22px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.hero-side-info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  z-index: 3;
}

.hero-control-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dots button {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #ffffff;
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrows button {
  width: 44px;
  height: 44px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.section-spacing {
  padding: 64px 0;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2,
.page-title h1,
.detail-title h1 {
  color: var(--color-heading);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.section-head p,
.page-title p {
  color: var(--color-muted);
  line-height: 1.72;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-panel);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.36);
  box-shadow: var(--shadow-md);
}

.card-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.78));
}

.card-rating,
.card-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.card-rating {
  right: 12px;
  color: #0f172a;
  background: #facc15;
}

.card-type {
  left: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.card-play {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.32);
}

.card-body {
  padding: 15px;
}

.card-title {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  color: var(--color-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-desc {
  display: -webkit-box;
  min-height: 3.4em;
  margin-top: 8px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.72;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.horizontal-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  overflow: hidden;
  min-height: 230px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.horizontal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.horizontal-body {
  padding: 20px;
}

.horizontal-body h3 {
  color: var(--color-heading);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.4;
}

.horizontal-body p {
  margin-top: 10px;
  color: var(--color-muted);
  line-height: 1.72;
}

.rank-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.rank-feature {
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow-md);
}

.rank-feature a {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 410px;
}

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

.rank-feature-body {
  padding: 36px;
}

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #0f172a;
  border-radius: 14px;
  background: #facc15;
  font-size: 1.2rem;
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.rank-item:hover {
  border-color: rgba(14, 165, 233, 0.34);
}

.rank-item .num {
  color: var(--color-primary-dark);
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 74px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item strong {
  display: block;
  color: var(--color-heading);
  font-weight: 900;
}

.rank-score {
  color: #f59e0b;
  font-weight: 900;
}

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

.category-chip {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.18);
}

.category-chip:nth-child(2n) {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.category-chip:nth-child(3n) {
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
}

.category-chip::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-chip strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 1.28rem;
  font-weight: 900;
}

.category-chip span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  padding: 64px 0 44px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.18), transparent 34rem),
    linear-gradient(135deg, #f8fafc, #e0f2fe);
  border-bottom: 1px solid #e2e8f0;
}

.page-title h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--color-primary-dark);
  font-weight: 700;
}

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

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-weight: 800;
}

.pagination .is-current {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.search-status {
  margin-bottom: 18px;
  color: #475569;
  font-weight: 700;
}

.detail-hero {
  padding: 40px 0 72px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.96)),
    var(--detail-bg);
  background-position: center;
  background-size: cover;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.35), transparent 18rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 22px 58px rgba(14, 165, 233, 0.36);
  font-size: 2rem;
}

.player-message {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 5;
  display: none;
  padding: 12px 14px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-size: 0.92rem;
}

.player-message.is-visible {
  display: block;
}

.detail-title {
  margin-top: 24px;
}

.detail-title h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.detail-title p {
  max-width: 850px;
  color: #cbd5e1;
  line-height: 1.82;
}

.detail-side {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

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

.detail-side-body {
  padding: 18px;
}

.detail-side-body dl {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.detail-side-body dt {
  color: #bae6fd;
  font-weight: 800;
}

.detail-side-body dd {
  margin: 0;
  color: #f8fafc;
}

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

.content-card {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.content-card + .content-card {
  margin-top: 20px;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 14px;
  color: var(--color-heading);
  font-weight: 900;
}

.content-card h2 {
  font-size: 1.7rem;
}

.content-card h3 {
  font-size: 1.24rem;
}

.content-card p {
  color: #475569;
  line-height: 1.86;
}

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

.tag-list a,
.tag-list span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 0.84rem;
  font-weight: 800;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.mini-card img {
  width: 72px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-card strong {
  display: block;
  color: var(--color-heading);
  font-size: 0.94rem;
  line-height: 1.4;
}

.mini-card span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.82rem;
}

.site-footer {
  margin-top: 60px;
  padding: 52px 0 30px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 900;
}

.site-footer p,
.site-footer li {
  color: #94a3b8;
  line-height: 1.8;
}

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  margin-top: 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 0.92rem;
}

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

  .mobile-menu .nav-links-mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-menu a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    font-weight: 800;
  }

  .mobile-menu .header-search {
    display: flex;
    width: 100%;
    min-width: 0;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 54px 0 96px;
  }

  .hero-side-card {
    max-width: 360px;
  }

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

  .horizontal-list,
  .rank-grid,
  .detail-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .container-custom {
    width: min(100% - 22px, 1280px);
  }

  .header-inner {
    min-height: 66px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-search {
    display: block;
    padding: 10px;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
  }

  .hero-search button {
    margin-top: 8px;
  }

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

  .horizontal-card {
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 180px;
  }

  .horizontal-body {
    padding: 14px;
  }

  .horizontal-body p {
    display: none;
  }

  .rank-feature a,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-item img {
    display: none;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
