*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #f97316;
  --amber: #f59e0b;
  --pink: #ec4899;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --purple: #8b5cf6;
  --indigo: #6366f1;
  --slate: #334155;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, #fff7ed 0%, #fdf2f8 24%, #ffffff 62%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: clamp(20px, 2vw, 28px);
  color: transparent;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  color: var(--gray-700);
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--rose), var(--orange));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-search,
.mobile-search,
.search-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: min(28vw, 270px);
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15);
}

.header-search button,
.mobile-search button,
.search-panel button {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--gray-800);
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-search {
  margin: 16px 0;
}

.mobile-search input {
  flex: 1;
  padding: 10px 14px;
}

.mobile-nav,
.mobile-shortcuts {
  display: grid;
  gap: 12px;
}

.mobile-shortcuts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.mobile-shortcuts a {
  padding: 10px 12px;
  color: var(--rose);
  border-radius: 12px;
  background: #fff1f2;
}

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.26), transparent 26%),
    radial-gradient(circle at 78% 12%, rgba(253, 186, 116, 0.38), transparent 30%),
    linear-gradient(120deg, #e11d48 0%, #ec4899 45%, #f97316 100%);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  display: flex;
  align-items: center;
  min-height: 600px;
  text-align: center;
}

.hero-copy {
  width: min(860px, 100%);
  margin: 0 auto;
}

.hero-kicker,
.sub-hero span,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-copy p {
  width: min(720px, 100%);
  margin: 0 auto 32px;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.primary-button,
.ghost-button,
.category-enter,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.26);
}

.hero-section .primary-button {
  color: var(--rose);
  background: #fff;
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.category-enter:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats span {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  font-size: 18px;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, #fdf2f8, transparent);
}

.featured-strip {
  position: relative;
  z-index: 5;
  margin-top: -88px;
  margin-bottom: 76px;
}

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

.hero-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius-xl);
  background: var(--gray-900);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22), transparent);
}

.hero-card-badge,
.movie-badge,
.movie-duration {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  border-radius: 999px;
}

.hero-card-badge,
.movie-badge {
  top: 14px;
  right: 14px;
  background: var(--rose);
}

.hero-card-title,
.hero-card-desc {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.hero-card-title {
  bottom: 54px;
  font-size: 20px;
  font-weight: 900;
}

.hero-card-desc {
  bottom: 22px;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section-block {
  margin-bottom: 84px;
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

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

.section-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.24);
}

.section-more {
  color: var(--rose);
  background: #fff1f2;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
  min-height: 170px;
  padding: 24px;
}

.category-tile::after,
.category-overview-card::after {
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
}

.category-name,
.category-count,
.category-desc {
  position: relative;
  z-index: 2;
  display: block;
}

.category-name {
  font-size: 22px;
  font-weight: 900;
}

.category-count {
  width: max-content;
  padding: 4px 10px;
  margin: 10px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.category-desc {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.theme-rose { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.theme-orange { background: linear-gradient(135deg, #f97316, #f59e0b); }
.theme-emerald { background: linear-gradient(135deg, #10b981, #34d399); }
.theme-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.theme-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.theme-purple { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.theme-cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.theme-slate { background: linear-gradient(135deg, #334155, #64748b); }
.theme-pink { background: linear-gradient(135deg, #db2777, #fb7185); }
.theme-indigo { background: linear-gradient(135deg, #4f46e5, #8b5cf6); }

.white-section {
  padding: 72px 0;
  background: #fff;
}

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

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.26);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5.4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-900), var(--rose));
}

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

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

.movie-poster::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.movie-duration {
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.movie-body {
  padding: 16px;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.3;
}

.movie-body h3 a:hover {
  color: var(--rose);
}

.movie-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 4px 9px;
  color: var(--rose);
  font-size: 12px;
  border-radius: 999px;
  background: #fff1f2;
}

.ranking-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

.ranking-list {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.ranking-list.full-ranking {
  background: #fff;
}

.ranking-item {
  display: grid;
  grid-template-columns: 54px 76px minmax(0, 1fr) minmax(150px, 0.7fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background: var(--gray-50);
  transform: translateX(4px);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.ranking-item:nth-child(n + 4) .ranking-number {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.ranking-item img {
  width: 76px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-title {
  overflow: hidden;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-info,
.ranking-views {
  color: var(--gray-500);
  font-size: 14px;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 70px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.25), transparent 26%),
    linear-gradient(135deg, var(--rose), var(--orange));
}

.sub-hero h1 {
  max-width: 900px;
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
}

.sub-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

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

.category-overview-card {
  padding: 26px;
}

.category-overview-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.category-overview-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
}

.category-overview-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

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

.category-overview-count {
  padding: 6px 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.compact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.compact-card {
  display: grid;
  gap: 8px;
}

.compact-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.compact-card span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-enter {
  position: relative;
  z-index: 2;
  color: var(--rose);
  background: #fff;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 160px auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
}

.filter-count {
  color: var(--gray-500);
  font-weight: 800;
  white-space: nowrap;
}

.search-panel {
  padding: 18px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.search-panel input {
  flex: 1;
  min-height: 48px;
  padding: 12px 18px;
}

.search-summary {
  color: var(--gray-500);
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--gray-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  backdrop-filter: blur(1px);
  background: rgba(17, 24, 39, 0.18);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5.5;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.04;
}

.detail-one-line {
  max-width: 850px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  margin-top: 36px;
  margin-bottom: 54px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #fff;
  cursor: pointer;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  transition: opacity 0.2s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding-left: 4px;
  font-size: 30px;
  color: var(--rose);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.player-overlay span:not(.play-icon) {
  font-size: 24px;
  font-weight: 900;
}

.player-overlay small {
  color: rgba(255, 255, 255, 0.8);
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: min(600px, calc(100% - 32px));
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
}

.player-status:empty {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  margin-bottom: 72px;
}

.detail-article,
.detail-side-card,
.prose-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-article h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
}

.detail-article p,
.prose-card p {
  color: var(--gray-700);
  font-size: 17px;
}

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

.info-list div {
  padding: 12px;
  border-radius: 14px;
  background: var(--gray-50);
}

.info-list dt {
  color: var(--gray-500);
  font-size: 13px;
}

.info-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-side-card {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.detail-side-card a {
  padding: 12px 14px;
  color: var(--rose);
  border-radius: 14px;
  background: #fff1f2;
}

.site-footer {
  margin-top: 90px;
  color: #fff;
  background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 56px 0 42px;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
}

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

.site-footer h3 {
  margin: 0 0 16px;
}

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

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-section,
  .hero-content {
    min-height: 520px;
  }

  .hero-card-grid,
  .movie-grid,
  .movie-grid.three-col,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading-row {
    display: block;
  }

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

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

  .ranking-info,
  .ranking-views {
    grid-column: 3;
  }

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

  .detail-poster {
    width: min(240px, 68vw);
  }

  .detail-side-card {
    position: static;
  }
}

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

  .hero-section,
  .hero-content {
    min-height: 480px;
  }

  .hero-actions,
  .hero-stats {
    justify-content: stretch;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .featured-strip {
    margin-top: -58px;
  }

  .hero-card-grid,
  .movie-grid,
  .movie-grid.three-col,
  .category-grid,
  .category-overview-grid,
  .compact-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

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

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