:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --purple-500: #a855f7;
  --purple-900: #581c87;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-hover: 0 24px 65px rgba(225, 29, 72, 0.22);
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--rose-50) 48%, #fdf2f8 100%);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 241, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.08);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, #fb7185, var(--pink-500));
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.34);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.45rem;
  line-height: 1;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy em {
  font-style: normal;
  color: var(--gray-500);
  font-size: 0.78rem;
}

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

.nav-links a {
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--rose-600);
  background: var(--white);
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.12);
}

.mobile-toggle {
  display: none;
  border: 0;
  color: var(--gray-800);
  background: var(--white);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.hero {
  position: relative;
  height: 640px;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(90deg, #881337, #831843, var(--purple-900));
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  mix-blend-mode: overlay;
  transform: scale(1.03);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 35%, rgba(244, 63, 94, 0.55), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(88, 28, 135, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 56px;
}

.hero-text {
  color: var(--white);
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-text h1 {
  margin: 0 0 8px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-text h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.hero-text p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2vw, 1.35rem);
}

.hero-tags,
.detail-meta,
.meta-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-meta span,
.meta-row span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 18px 35px rgba(244, 63, 94, 0.34);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  inset: auto 22px 22px auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  border-radius: 50%;
  box-shadow: 0 16px 35px rgba(244, 63, 94, 0.38);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: all 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.hero-search,
.inline-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 8px;
  box-shadow: var(--shadow-soft);
}

.hero-search {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 64px;
  width: min(680px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-search input,
.inline-search input,
.search-panel input,
.local-filter input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--gray-800);
  background: transparent;
  padding: 12px 16px;
}

.hero-search button,
.inline-search button {
  border: 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
}

.section-block {
  padding: 72px 0;
}

.section-white {
  background: rgba(255, 255, 255, 0.72);
}

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

.section-heading > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  align-items: center;
}

.section-icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--rose-600);
  background: var(--rose-100);
  border-radius: 16px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  line-height: 1.1;
}

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

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

.category-card,
.category-overview-card,
.detail-card,
.side-card,
.player-card,
.rank-panel,
.search-panel {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
}

.category-card {
  position: relative;
  min-height: 232px;
  overflow: hidden;
  padding: 28px;
  transition: all 0.28s ease;
}

.category-card:hover {
  color: var(--white);
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.category-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.category-card:hover .category-glow {
  opacity: 1;
}

.category-card strong,
.category-card h2,
.category-card p,
.category-card em {
  position: relative;
  z-index: 2;
}

.category-card strong {
  display: block;
  font-size: 3rem;
  margin-bottom: 14px;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

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

.category-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

.category-card em {
  display: block;
  font-style: normal;
  color: var(--rose-600);
  font-weight: 800;
  font-size: 0.88rem;
}

.category-card:hover em {
  color: #fff7ed;
}

.tone-rose .category-glow,
.tone-rose.inner-hero,
.tone-rose .category-overview-head {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.tone-pink .category-glow,
.tone-pink.inner-hero,
.tone-pink .category-overview-head {
  background: linear-gradient(135deg, #db2777, #f43f5e);
}

.tone-purple .category-glow,
.tone-purple.inner-hero,
.tone-purple .category-overview-head {
  background: linear-gradient(135deg, #7e22ce, #ec4899);
}

.tone-amber .category-glow,
.tone-amber.inner-hero,
.tone-amber .category-overview-head {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.tone-blue .category-glow,
.tone-blue.inner-hero,
.tone-blue .category-overview-head {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.tone-green .category-glow,
.tone-green.inner-hero,
.tone-green .category-overview-head {
  background: linear-gradient(135deg, #059669, #14b8a6);
}

.tone-indigo .category-glow,
.tone-indigo.inner-hero,
.tone-indigo .category-overview-head {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
}

.tone-cyan .category-glow,
.tone-cyan.inner-hero,
.tone-cyan .category-overview-head {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.tone-violet .category-glow,
.tone-violet.inner-hero,
.tone-violet .category-overview-head {
  background: linear-gradient(135deg, #6d28d9, #a855f7);
}

.tone-orange .category-glow,
.tone-orange.inner-hero,
.tone-orange .category-overview-head {
  background: linear-gradient(135deg, #ea580c, #fb7185);
}

.tone-fuchsia .category-glow,
.tone-fuchsia.inner-hero,
.tone-fuchsia .category-overview-head {
  background: linear-gradient(135deg, #c026d3, #f43f5e);
}

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

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

.compact-poster-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

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

.movie-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #fce7f3);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}

.ratio-video {
  aspect-ratio: 16 / 9;
}

.ratio-poster {
  aspect-ratio: 2 / 3;
}

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

.movie-card:hover .movie-thumb img,
.compact-card:hover img,
.ranking-item:hover img {
  transform: scale(1.08);
}

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-thumb::after {
  opacity: 1;
}

.play-chip,
.card-hot,
.year-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.play-chip {
  left: 14px;
  bottom: 14px;
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.card-hot {
  top: 12px;
  left: 12px;
  color: var(--white);
  background: var(--rose-500);
  padding: 4px 10px;
}

.year-chip {
  top: 12px;
  right: 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 10px;
  backdrop-filter: blur(8px);
}

.movie-copy {
  padding: 14px 2px 0;
}

.movie-copy h2 {
  margin: 8px 0 6px;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card-wide .movie-copy h2 {
  font-size: 1.18rem;
}

.movie-copy h2 a:hover,
.ranking-copy h2 a:hover {
  color: var(--rose-600);
}

.movie-copy p {
  display: -webkit-box;
  margin: 0;
  color: var(--gray-500);
  font-size: 0.92rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row span {
  color: var(--rose-700, #be123c);
  background: var(--rose-100);
}

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

.rank-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
}

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

.rank-panel-head h2 {
  margin: 0;
  font-size: 1.4rem;
}

.rank-panel-head a {
  color: var(--rose-600);
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--rose-50);
}

.rank-no {
  color: var(--rose-600);
  font-size: 1.1rem;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

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

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 0.82rem;
}

.inner-hero {
  color: var(--white);
  padding: 82px 0;
  background: linear-gradient(135deg, #e11d48, #ec4899);
}

.inner-hero span {
  display: inline-flex;
  margin-bottom: 10px;
  font-weight: 900;
  color: #fde68a;
}

.inner-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
}

.inner-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.inner-hero .inline-search {
  width: min(620px, 100%);
  margin-top: 28px;
}

.overview-list {
  display: grid;
  gap: 26px;
}

.category-overview-card {
  overflow: hidden;
}

.category-overview-head {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 18px;
  color: var(--white);
  padding: 28px;
}

.category-overview-head span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 20px;
}

.category-overview-head h2 {
  margin: 0 0 4px;
}

.category-overview-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.category-overview-head a {
  display: inline-flex;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: var(--gray-50);
}

.compact-card img {
  width: 76px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.compact-card strong,
.compact-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card strong {
  color: var(--gray-800);
  font-size: 0.96rem;
  white-space: nowrap;
}

.compact-card em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 0.82rem;
}

.local-filter,
.search-panel {
  margin-bottom: 28px;
}

.local-filter input,
.search-panel input {
  border: 1px solid rgba(244, 63, 94, 0.18);
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.search-panel {
  padding: 18px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-buttons button {
  border: 0;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
}

.filter-buttons button.is-active {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 74px 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-number {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  border-radius: 18px;
  font-weight: 900;
  font-size: 1.2rem;
}

.ranking-cover {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
}

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

.ranking-copy h2 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

.ranking-copy p {
  margin: 0 0 12px;
  color: var(--gray-500);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 0;
  color: var(--gray-500);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--rose-600);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  padding-top: 24px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
  align-content: start;
}

.player-card {
  overflow: hidden;
  background: #000;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.58));
}

.player-overlay span:last-child {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.player-play {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  border-radius: 50%;
  box-shadow: 0 20px 44px rgba(244, 63, 94, 0.42);
  font-size: 2.1rem;
}

.player-overlay.is-hidden {
  display: none;
}

.detail-card,
.side-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.detail-meta span {
  color: #7e22ce;
  background: #f3e8ff;
}

.lead-text {
  margin: 22px 0;
  color: var(--gray-700);
  font-size: 1.08rem;
}

.tag-cloud span {
  color: var(--rose-700, #be123c);
  background: var(--rose-100);
}

.article-text p {
  margin: 0 0 22px;
  color: var(--gray-700);
}

.cover-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 18px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.side-card dt {
  color: var(--gray-500);
}

.side-card dd {
  margin: 0;
  color: var(--gray-800);
  font-weight: 800;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, var(--gray-900), #1f2937);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 34px;
  padding: 52px 0;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 900;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a:not(.footer-brand) {
  display: block;
  color: #d1d5db;
  margin: 8px 0;
}

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

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

[hidden],
.is-hidden-card {
  display: none !important;
}

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .poster-grid,
  .all-grid,
  .compact-poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

  .detail-side {
    grid-template-columns: 300px 1fr;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    min-height: 68px;
  }

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

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
  }

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

  .brand-copy em {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 780px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 58px 0 168px;
  }

  .hero-poster {
    width: min(280px, 72vw);
    margin: 0 auto;
  }

  .hero-search {
    bottom: 74px;
  }

  .category-grid,
  .wide-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .poster-grid,
  .all-grid,
  .compact-poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-head {
    grid-template-columns: 52px 1fr;
  }

  .category-overview-head a {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .ranking-item {
    grid-template-columns: 52px 82px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .ranking-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1rem;
  }

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

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

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 1.25rem;
  }

  .hero-text h1 {
    font-size: 2.45rem;
  }

  .hero-tags span,
  .detail-meta span,
  .meta-row span,
  .tag-cloud span {
    font-size: 0.76rem;
  }

  .hero-search,
  .inline-search {
    align-items: stretch;
    border-radius: 24px;
    flex-direction: column;
  }

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

  .section-block {
    padding: 52px 0;
  }

  .poster-grid,
  .all-grid,
  .compact-poster-grid {
    gap: 16px;
  }

  .movie-copy h2 {
    font-size: 0.94rem;
  }

  .movie-copy p {
    font-size: 0.84rem;
  }

  .ranking-copy p {
    display: none;
  }

  .player-play {
    width: 66px;
    height: 66px;
    font-size: 1.65rem;
  }
}
