:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --amber: #f59e0b;
  --purple: #8b5cf6;
  --slate: #0f172a;
  --text: #111827;
  --muted: #6b7280;
  --line: #f1f5f9;
  --bg: #fff7fb;
  --card: #ffffff;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 34px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.08);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.nav-bar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f472b6, #e11d48);
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.28);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #db2777, #be123c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #e11d48;
  background: rgba(244, 63, 94, 0.08);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #f3d2da;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 8px 8px 12px;
  color: #111827;
}

.header-search button,
.primary-btn,
.secondary-btn,
.hero-search button,
.filter-panel button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.primary-btn,
.hero-search button,
.filter-panel button {
  color: #ffffff;
  background: linear-gradient(90deg, #f43f5e, #ec4899);
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.22);
}

.header-search button {
  padding: 8px 16px;
}

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

.secondary-btn {
  color: #374151;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.primary-btn:hover,
.secondary-btn:hover,
.hero-search button:hover,
.header-search button:hover,
.filter-panel button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 44px rgba(244, 63, 94, 0.28);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 99px;
  background: #be123c;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-link {
  display: block;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 88px 0 110px;
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 46%, #fffbeb 100%);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 999px;
  filter: blur(44px);
  mix-blend-mode: multiply;
  animation: floatBlob 9s infinite ease-in-out;
}

.orb-one {
  top: 40px;
  left: 5%;
  background: rgba(251, 113, 133, 0.45);
}

.orb-two {
  top: 18px;
  right: 8%;
  background: rgba(236, 72, 153, 0.42);
  animation-delay: 1.6s;
}

.orb-three {
  bottom: -38px;
  left: 19%;
  background: rgba(245, 158, 11, 0.34);
  animation-delay: 3.2s;
}

@keyframes floatBlob {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(26px, -18px, 0) scale(1.08);
  }
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 16px;
  color: #be123c;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.hero-copy h1 {
  margin: 22px 0 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.gradient-text {
  display: block;
  background: linear-gradient(90deg, #e11d48, #db2777, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 30px;
  color: #4b5563;
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-search {
  width: min(590px, 100%);
  display: flex;
  gap: 10px;
  padding: 8px;
  margin: 8px 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(244, 63, 94, 0.14);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
}

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

.hero-search button {
  padding: 13px 22px;
}

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

.hero-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #9f1239;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(244, 63, 94, 0.14);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-links a:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.hero-slider {
  position: relative;
  min-height: 500px;
  border-radius: 34px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.hero-slide-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  color: #ffffff;
}

.hero-slide-content h2 {
  margin: 10px 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.slide-tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.slide-more {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  color: #be123c;
  background: #ffffff;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 28px;
  top: 24px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
}

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

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  color: #ffffff;
}

.hero-wave svg {
  display: block;
  width: 100%;
}

.section {
  padding: 76px 0;
}

.section.soft {
  background: linear-gradient(135deg, #f8fafc, #fff1f2);
}

.section.warm {
  background: linear-gradient(135deg, #fffbeb, #fff1f2, #fdf2f8);
}

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

.section-head.center {
  text-align: center;
  justify-content: center;
}

.section-head h1,
.section-head h2,
.page-hero h1,
.category-title h1 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.category-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e11d48;
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 160px;
  padding: 24px;
  overflow: hidden;
  color: #ffffff;
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.92;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.category-card[data-color="amber"]::before {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.category-card[data-color="purple"]::before {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.category-card[data-color="pink"]::before {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.category-card[data-color="slate"]::before {
  background: linear-gradient(135deg, #1e293b, #64748b);
}

.category-card[data-color="green"]::before {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.category-card[data-color="teal"]::before {
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
}

.category-card[data-color="orange"]::before {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card[data-color="blue"]::before {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.category-card[data-color="cyan"]::before {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-icon {
  font-size: 38px;
  margin-bottom: 18px;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

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

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

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

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

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

.compact-card .poster-wrap {
  aspect-ratio: 4 / 3;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.62));
  opacity: 0.75;
}

.poster-region,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.poster-region {
  top: 14px;
  right: 14px;
  padding: 7px 11px;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.35);
}

.card-body {
  padding: 20px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.card-tags,
.meta-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta span,
.card-tags span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #9f1239;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span {
  color: #475569;
  background: #f8fafc;
}

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

.rank-list {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 10px;
  border-radius: 20px;
  background: #ffffff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: #fff1f2;
}

.rank-row img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
}

.list-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  font-weight: 900;
}

.rank-row strong,
.rank-row em {
  display: block;
}

.rank-row strong {
  margin-bottom: 6px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row em {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.category-hero {
  padding: 70px 0 56px;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8, #fffbeb);
  overflow: hidden;
}

.page-hero .container,
.category-hero .container {
  position: relative;
}

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

.breadcrumb span {
  color: #9ca3af;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px 160px 160px auto;
  gap: 12px;
  padding: 16px;
  margin: 0 0 30px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #f3d2da;
  border-radius: 16px;
  outline: 0;
  color: #111827;
  background: #ffffff;
  padding: 13px 14px;
}

.filter-panel input:focus,
.filter-panel select:focus,
.header-search input:focus,
.hero-search input:focus {
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.14);
}

.filter-panel button {
  padding: 0 22px;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: blur(3px) saturate(1.08);
  transform: scale(1.03);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.86));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  min-height: 520px;
  padding: 82px 0 52px;
  color: #ffffff;
}

.detail-poster {
  width: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.44);
}

.detail-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.detail-copy .lead {
  max-width: 860px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.85;
}

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

.player-card,
.info-card,
.content-card {
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.player-card {
  padding: 22px;
}

.player-card h2,
.info-card h2,
.content-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.10), rgba(15, 23, 42, 0.72));
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 3;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 24px 52px rgba(244, 63, 94, 0.38);
  font-size: 34px;
  transform: translateX(2px);
}

.info-card {
  padding: 24px;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.info-list dt {
  color: #94a3b8;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #111827;
  line-height: 1.7;
}

.content-card {
  padding: 30px;
  margin-bottom: 26px;
}

.content-card p {
  margin: 0;
  color: #475569;
  line-height: 2;
  font-size: 17px;
}

.related-section {
  padding: 24px 0 80px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 36px;
  padding: 58px 0;
}

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

.site-footer p {
  max-width: 480px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #d1d5db;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #fb7185;
  transform: translateX(3px);
}

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

.empty-state {
  display: none;
  padding: 42px;
  text-align: center;
  color: #64748b;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.empty-state.show {
  display: block;
}

@media (max-width: 1100px) {
  .hero-layout,
  .ranking-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
    margin: 0 auto;
  }

  .hero-copy p,
  .hero-search {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-links {
    justify-content: center;
  }

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

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

  .header-search {
    display: none;
  }
}

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

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

  .hero-section {
    padding-top: 62px;
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-slider,
  .hero-slide img {
    min-height: 420px;
  }

  .section-head {
    display: block;
  }

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

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

  .filter-panel input,
  .filter-panel button {
    grid-column: 1 / -1;
  }

  .detail-hero-content {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
  }

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

  .detail-copy .meta-pills,
  .detail-copy .breadcrumb {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .nav-bar {
    height: 64px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .hero-copy h1 {
    font-size: 39px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 24px;
  }

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

  .hero-slider,
  .hero-slide img {
    min-height: 380px;
  }

  .hero-slide-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .section {
    padding: 54px 0;
  }

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

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

  .rank-row {
    grid-template-columns: 34px 62px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-row img {
    width: 62px;
    height: 62px;
  }

  .play-button {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }

  .content-card {
    padding: 22px;
  }
}
