:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --yellow: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #f3f4f6;
  --dark: #111827;
  --shadow: 0 20px 60px rgba(236, 72, 153, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-topbar {
  background: linear-gradient(90deg, #fb923c, #ec4899, #ef4444);
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(243, 244, 246, 0.9);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

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

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

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

.logo-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

.logo-text {
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav a {
  position: relative;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  padding: 24px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--pink-dark);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-form {
  position: relative;
}

.search-form input,
.filter-input,
.filter-select {
  width: 220px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 11px 18px;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #374151;
  background: #f9fafb;
}

.mobile-menu {
  display: none;
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
  padding: 18px 16px 24px;
}

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

.mobile-menu a {
  display: block;
  padding: 13px 14px;
  margin: 4px 0;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
}

.mobile-menu a.active,
.mobile-menu a:hover {
  color: var(--pink-dark);
  background: #fdf2f8;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3 0%, #fff7ed 48%, #fef3c7 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(0deg, #ffffff, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-glow span {
  position: absolute;
  border-radius: 999px;
  filter: blur(58px);
  opacity: 0.24;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-glow span:nth-child(1) {
  width: 240px;
  height: 240px;
  left: 7%;
  top: 12%;
  background: var(--pink);
}

.hero-glow span:nth-child(2) {
  width: 280px;
  height: 280px;
  right: 9%;
  bottom: 13%;
  background: var(--orange);
  animation-delay: 1.2s;
}

.hero-glow span:nth-child(3) {
  width: 220px;
  height: 220px;
  left: 44%;
  top: 38%;
  background: var(--yellow);
  animation-delay: 2.1s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16);
  }
}

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

.hero-badge,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #111827;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.hero h1 {
  margin: 22px 0 20px;
  color: #111827;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--pink-dark), var(--orange), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  border: 0;
  padding: 13px 24px;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.28);
}

.btn-secondary {
  color: #111827;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.btn-dark {
  color: #ffffff;
  background: #111827;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.hero-stage {
  position: relative;
}

.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(219, 39, 119, 0.28);
  background: linear-gradient(135deg, #111827, #831843);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.88));
}

.hero-slide-overlay h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 950;
}

.hero-slide-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero-controls {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.play-overlay {
  pointer-events: auto;
  display: inline-grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.hero-dots {
  position: absolute;
  right: 28px;
  top: 26px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-mini-row {
  position: absolute;
  left: -26px;
  right: -26px;
  bottom: -44px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.hero-mini-card img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
}

.hero-mini-card strong,
.rank-item strong,
.movie-card h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section {
  padding: 76px 0;
}

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

.section-dark {
  color: #ffffff;
  background: linear-gradient(135deg, #db2777, #f97316);
}

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

.section-title {
  margin: 12px 0 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-desc {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.section-dark .section-desc {
  color: rgba(255, 255, 255, 0.84);
}

.stats-grid,
.category-grid,
.movie-grid,
.detail-grid,
.filter-row {
  display: grid;
  gap: 22px;
}

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

.stat-card,
.category-tile,
.movie-card,
.rank-item,
.content-box,
.player-card,
.filter-panel {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.stat-card {
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-icon,
.category-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
  color: var(--orange-dark);
  font-size: 26px;
}

.stat-card strong {
  display: block;
  color: #111827;
  font-size: 25px;
  font-weight: 950;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.stat-card:hover,
.category-tile:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(249, 115, 22, 0.16));
}

.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 950;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-samples {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 18px;
}

.category-samples img {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border: 3px solid #ffffff;
  border-radius: 12px;
  margin-right: -12px;
  background: #f3f4f6;
}

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

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .poster-frame::after {
  background: rgba(17, 24, 39, 0.18);
}

.badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 10px;
}

.badge {
  left: 12px;
  background: var(--pink);
}

.year-badge {
  right: 12px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0 0 9px;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
  transition: color 0.2s ease;
}

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

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9ca3af;
  font-size: 12px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 56px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.page-hero h1 {
  margin: 0 0 16px;
  max-width: 900px;
  color: #111827;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.filter-panel {
  margin-bottom: 32px;
  padding: 20px;
}

.filter-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-chip {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 9px 14px;
  color: #374151;
  background: #ffffff;
  font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.filter-input {
  width: min(100%, 360px);
}

.filter-select {
  width: 160px;
}

.no-results {
  display: none;
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
}

.no-results.show {
  display: block;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-weight: 950;
}

.rank-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #f3f4f6;
}

.rank-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 950;
}

.rank-item span {
  color: var(--muted);
  font-size: 13px;
}

.detail-hero {
  padding: 56px 0;
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 32%), linear-gradient(135deg, #fff7ed, #ffffff 54%, #fdf2f8);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 24px;
}

.breadcrumbs a:hover {
  color: var(--pink-dark);
}

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

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: var(--shadow);
}

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

.detail-main h1 {
  margin: 14px 0 14px;
  color: #111827;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-lead {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.85;
}

.meta-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}

.meta-pills span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: #374151;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  font-size: 14px;
  font-weight: 800;
}

.player-section {
  padding: 52px 0 36px;
  background: #111827;
}

.player-card {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.08);
  background: #020617;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.45);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  font-size: 34px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(249, 115, 22, 0.92));
  box-shadow: 0 24px 60px rgba(236, 72, 153, 0.36);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-status {
  margin: 0;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04);
}

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

.content-box {
  padding: 28px;
}

.content-box + .content-box {
  margin-top: 22px;
}

.content-box h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
  color: #111827;
}

.content-box p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
  font-size: 16px;
}

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

.side-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.side-card:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.side-card img {
  width: 70px;
  height: 94px;
  object-fit: cover;
  border-radius: 14px;
  background: #f3f4f6;
}

.side-card strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-card span {
  color: var(--muted);
  font-size: 13px;
}

.footer {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937 56%, #111827);
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer h3,
.footer h4 {
  margin: 0 0 14px;
  font-weight: 950;
}

.footer p,
.footer a,
.footer li {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

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

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li + li {
  margin-top: 9px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

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

@media (max-width: 1024px) {
  .nav,
  .header-actions .search-form {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-inner {
    padding: 54px 0 86px;
  }

  .hero-frame {
    min-height: 460px;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-topbar {
    font-size: 12px;
  }

  .header-inner,
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 20px;
  }

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

  .hero h1 {
    font-size: 44px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-frame {
    min-height: 410px;
  }

  .hero-mini-row {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    display: block;
  }

  .stats-grid,
  .category-grid,
  .movie-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .filter-input,
  .filter-select {
    width: 100%;
  }

  .filter-controls {
    align-items: stretch;
  }

  .rank-item {
    grid-template-columns: 44px 58px minmax(0, 1fr);
  }

  .rank-item img {
    width: 58px;
    height: 78px;
  }

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

@media (max-width: 520px) {
  .stats-grid,
  .category-grid,
  .movie-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .inline-actions {
    display: grid;
  }

  .movie-grid {
    gap: 16px;
  }

  .card-body {
    padding: 14px;
  }

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