:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-900: #111827;
  --white: #ffffff;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --violet-500: #8b5cf6;
  --amber-500: #f59e0b;
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.12), 0 2px 4px -2px rgb(15 23 42 / 0.12);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.18), 0 8px 10px -6px rgb(15 23 42 / 0.16);
  --radius-xl: 18px;
  --radius-2xl: 26px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 58%, #eef8fb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, rgb(15 23 42 / 0.96), rgb(30 41 59 / 0.94));
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 10px 28px rgb(2 6 23 / 0.22);
  backdrop-filter: blur(14px);
}

.header-inner,
.mobile-nav,
.footer-inner,
.content-section,
.search-strip,
.hero-content,
.detail-hero-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-400), var(--violet-500));
  border-radius: 14px;
  box-shadow: 0 10px 24px rgb(6 182 212 / 0.35);
}

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

.nav-link {
  padding: 10px 12px;
  color: rgb(255 255 255 / 0.78);
  border-radius: 12px;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgb(255 255 255 / 0.10);
}

.header-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input,
.large-search input {
  border: 1px solid rgb(255 255 255 / 0.16);
  outline: none;
}

.header-search input {
  width: 230px;
  padding: 10px 12px;
  color: var(--white);
  background: rgb(255 255 255 / 0.08);
  border-radius: 12px 0 0 12px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.large-search input::placeholder {
  color: rgb(255 255 255 / 0.56);
}

.header-search button,
.mobile-search button,
.large-search button {
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: var(--cyan-500);
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button {
  padding: 11px 14px;
  border-radius: 0 12px 12px 0;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover {
  background: var(--cyan-600);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.10);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

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

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-950);
}

.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-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide.is-active > img {
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1.02);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgb(34 211 238 / 0.28), transparent 30%),
    linear-gradient(90deg, rgb(0 0 0 / 0.84) 0%, rgb(0 0 0 / 0.58) 48%, rgb(0 0 0 / 0.12) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 760px;
  color: var(--white);
}

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

.hero-kicker span,
.card-meta span,
.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-kicker span {
  padding: 6px 12px;
  color: var(--white);
  background: rgb(6 182 212 / 0.86);
  font-size: 14px;
  font-weight: 700;
}

.hero-kicker span:nth-child(n + 2) {
  background: rgb(255 255 255 / 0.16);
  backdrop-filter: blur(6px);
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgb(255 255 255 / 0.88);
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags span {
  padding: 7px 12px;
  color: rgb(255 255 255 / 0.86);
  background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.12);
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  padding: 14px 26px;
  color: var(--white);
  background: var(--cyan-500);
  box-shadow: 0 16px 32px rgb(6 182 212 / 0.36);
}

.primary-button:hover {
  background: var(--cyan-600);
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  padding: 13px 22px;
  color: var(--white);
  background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.16);
  backdrop-filter: blur(8px);
}

.ghost-button:hover {
  background: rgb(255 255 255 / 0.22);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  color: var(--white);
  background: rgb(0 0 0 / 0.34);
  border-radius: 999px;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  background: rgb(255 255 255 / 0.42);
  border-radius: 999px;
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--cyan-400);
}

.search-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  margin-top: -56px;
  padding: 28px;
  position: relative;
  z-index: 5;
  color: var(--white);
  background: linear-gradient(135deg, rgb(15 23 42 / 0.96), rgb(8 47 73 / 0.94));
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.search-strip h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.search-strip p {
  margin: 0;
  color: rgb(255 255 255 / 0.78);
}

.large-search input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  color: var(--white);
  background: rgb(255 255 255 / 0.10);
  border-radius: 16px 0 0 16px;
}

.large-search button {
  padding: 17px 22px;
  border-radius: 0 16px 16px 0;
}

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

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--gray-600);
}

.section-more {
  flex-shrink: 0;
  padding: 10px 16px;
  color: var(--cyan-600);
  background: #ecfeff;
  border: 1px solid #cffafe;
}

.section-more:hover {
  color: var(--white);
  background: var(--cyan-500);
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgb(226 232 240 / 0.96);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: #bae6fd;
  box-shadow: var(--shadow-xl);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-900);
}

.movie-card-large .card-cover {
  aspect-ratio: 16 / 11;
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgb(0 0 0 / 0.60) 100%);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--white);
  background: rgb(255 255 255 / 0.18);
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 10px 22px rgb(239 68 68 / 0.25);
}

.card-body {
  padding: 18px;
}

.card-meta {
  margin-bottom: 10px;
}

.card-meta span {
  padding: 4px 8px;
  color: var(--cyan-600);
  background: #ecfeff;
  font-size: 12px;
  font-weight: 700;
}

.card-body h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--cyan-600);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

.tag-list span {
  padding: 5px 9px;
  color: var(--slate-700);
  background: var(--gray-100);
  font-size: 12px;
}

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

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.rank-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--white);
}

.rank-panel-head h2 {
  margin: 0;
}

.rank-panel-head a {
  color: var(--cyan-400);
  font-weight: 700;
}

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

.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  color: var(--white);
  background: rgb(255 255 255 / 0.07);
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  background: rgb(255 255 255 / 0.13);
  transform: translateX(3px);
}

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

.mini-card-info {
  min-width: 0;
}

.mini-card-info strong,
.mini-card-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card-info small {
  margin-top: 4px;
  color: rgb(255 255 255 / 0.62);
}

.mini-rank {
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--cyan-400);
  font-weight: 900;
}

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

.category-chip,
.category-panel-card {
  display: block;
  padding: 20px;
  background: var(--white);
  border: 1px solid rgb(226 232 240 / 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover,
.category-panel-card:hover {
  transform: translateY(-4px);
  border-color: #bae6fd;
  box-shadow: var(--shadow-xl);
}

.category-chip strong,
.category-panel-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 900;
}

.category-chip span,
.category-panel-card strong {
  display: block;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

.category-panel-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 92% 0%, rgb(34 211 238 / 0.20), transparent 35%),
    var(--white);
}

.category-panel-card em {
  color: var(--cyan-600);
  font-style: normal;
  font-weight: 800;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), #083344 58%, #164e63);
}

.page-hero {
  padding: 86px 0 78px;
}

.page-hero > div {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  color: var(--cyan-400);
  background: rgb(255 255 255 / 0.10);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgb(255 255 255 / 0.80);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgb(226 232 240 / 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgb(6 182 212 / 0.14);
}

.empty-state {
  margin: 26px 0;
  padding: 18px;
  color: var(--gray-600);
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-xl);
}

.rank-lead {
  margin-bottom: 24px;
}

.detail-hero {
  min-height: 620px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.03);
}

.detail-backdrop div {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgb(34 211 238 / 0.26), transparent 36%),
    linear-gradient(90deg, rgb(2 6 23 / 0.94), rgb(2 6 23 / 0.72), rgb(2 6 23 / 0.56));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: rgb(255 255 255 / 0.74);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan-400);
}

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

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

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
}

.detail-info p {
  max-width: 860px;
  margin: 0 0 20px;
  color: rgb(255 255 255 / 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.detail-section {
  margin-top: -84px;
  position: relative;
  z-index: 3;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: var(--slate-950);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--slate-950);
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgb(2 6 23 / 0.20), rgb(2 6 23 / 0.68));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgb(6 182 212 / 0.86);
  border: 1px solid rgb(255 255 255 / 0.26);
  border-radius: 999px;
  font-size: 38px;
  box-shadow: 0 20px 36px rgb(6 182 212 / 0.34);
  transform: translateX(3px);
}

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

.detail-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.text-card,
.info-table {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgb(226 232 240 / 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.text-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.9;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  padding: 0;
  overflow: hidden;
}

.info-table div {
  padding: 18px;
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.info-table div:nth-child(3n) {
  border-right: 0;
}

.info-table div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.info-table span,
.info-table strong {
  display: block;
}

.info-table span {
  margin-bottom: 6px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.info-table strong {
  line-height: 1.6;
}

.info-table a {
  color: var(--cyan-600);
}

.site-footer {
  margin-top: 72px;
  color: rgb(255 255 255 / 0.78);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 0.8fr;
  gap: 42px;
  padding: 48px 0;
}

.footer-brand p {
  max-width: 460px;
  color: rgb(255 255 255 / 0.62);
  line-height: 1.8;
}

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

.footer-links a {
  display: block;
  margin: 8px 0;
  color: rgb(255 255 255 / 0.72);
}

.footer-links a:hover {
  color: var(--cyan-400);
}

.footer-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-chip-list a {
  margin: 0;
  padding: 7px 10px;
  background: rgb(255 255 255 / 0.08);
  border-radius: 999px;
}

.footer-bottom {
  padding: 18px;
  color: rgb(255 255 255 / 0.44);
  text-align: center;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

[hidden] {
  display: none !important;
}

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

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

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

  .mobile-search input {
    flex: 1;
    padding: 12px;
    color: var(--white);
    background: rgb(255 255 255 / 0.08);
    border-radius: 12px 0 0 12px;
  }

  .mobile-search button {
    padding: 13px 16px;
    border-radius: 0 12px 12px 0;
  }

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .hero-carousel {
    height: 74vh;
    min-height: 620px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 96px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .search-strip,
  .filter-panel,
  .detail-layout,
  .detail-text-grid,
  .info-table {
    grid-template-columns: 1fr;
  }

  .search-strip {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

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

  .detail-layout {
    gap: 24px;
  }

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

  .info-table div,
  .info-table div:nth-child(3n),
  .info-table div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .info-table div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .mobile-nav,
  .content-section,
  .hero-content,
  .detail-hero-inner,
  .footer-inner {
    width: min(100% - 22px, var(--max-width));
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .movie-grid-four,
  .movie-grid-three,
  .category-chip-grid,
  .category-panel-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 12px;
  }

  .card-body p {
    min-height: auto;
  }

  .play-cover span {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
