:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --paper-soft: rgba(255, 255, 255, 0.86);
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --rose: #e11d48;
  --rose-dark: #be123c;
  --amber: #d97706;
  --emerald: #059669;
  --cyan: #0891b2;
  --shadow: 0 18px 45px rgba(127, 29, 29, 0.14);
  --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.28);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 28rem),
    linear-gradient(135deg, #fff1f2 0%, #fffbeb 52%, #ecfdf5 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.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);
  border-bottom: 1px solid rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
  letter-spacing: -0.08em;
}

.logo-text {
  font-size: 20px;
  white-space: nowrap;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  background: #fff1f2;
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.08);
}

.header-search input,
.mobile-search input {
  width: 190px;
  padding: 10px 10px 10px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search button,
.mobile-search button {
  height: 100%;
  padding: 10px 16px;
  border: 0;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #be123c;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-nav nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mobile-nav .nav-link {
  justify-content: center;
  background: #ffffff;
}

.hero-carousel {
  position: relative;
  height: min(760px, calc(100vh - 76px));
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(251, 191, 36, 0.26), transparent 26rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.74) 46%, rgba(15, 23, 42, 0.26));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 60px;
  padding: 72px 0;
}

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

.hero-kicker,
.section-kicker {
  margin: 0 0 10px;
  color: #f59e0b;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-copy h2 + h2 {
  font-size: clamp(28px, 4vw, 48px);
  color: #fecdd3;
}

.hero-description {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-meta span,
.detail-tags a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.text-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.32);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button.light {
  color: #ffffff;
}

.text-button,
.section-more {
  min-height: 38px;
  color: var(--rose);
  background: #fff1f2;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.96), rgba(217, 119, 6, 0.96));
  font-weight: 900;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

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

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

.home-container,
.page-container,
.detail-container {
  padding: 56px 0;
}

.content-section,
.quick-category-panel,
.rank-panel,
.detail-article,
.detail-side,
.player-section {
  margin-bottom: 56px;
}

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

.section-heading h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.compact-heading {
  margin-bottom: 18px;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  padding: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-tile img,
.category-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  z-index: -2;
  transition: transform 0.3s ease;
}

.category-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.86));
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile strong,
.category-tile em {
  display: block;
  position: relative;
  z-index: 2;
}

.category-tile strong {
  margin-top: 70px;
  font-size: 22px;
  font-weight: 950;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

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

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(225, 29, 72, 0.16);
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fffbeb);
}

.poster-wrap img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.type-badge,
.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
}

.type-badge {
  left: 10px;
  top: 10px;
}

.score-badge {
  right: 10px;
  top: 10px;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  background: rgba(225, 29, 72, 0.92);
}

.movie-card-body {
  padding: 14px;
}

.movie-card-body h3 {
  margin: 0 0 6px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-meta {
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-one-line {
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.6;
}

.tag-row span {
  color: var(--rose);
  background: #fff1f2;
  border-color: rgba(225, 29, 72, 0.1);
  font-size: 12px;
}

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

.split-main .content-section {
  margin-bottom: 0;
}

.rank-panel,
.detail-side,
.detail-article,
.player-section,
.filter-panel,
.category-overview-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-num {
  color: var(--rose);
  font-weight: 950;
  text-align: center;
}

.rank-item img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

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

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

.rank-copy strong {
  font-size: 14px;
  font-weight: 900;
}

.rank-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 10%, rgba(251, 191, 36, 0.32), transparent 26rem),
    linear-gradient(135deg, #9f1239, #c2410c 48%, #064e3b);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.page-hero p:not(.section-kicker) {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.category-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 470px);
  gap: 36px;
  align-items: center;
}

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

.category-featured-row a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
}

.category-featured-row img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-featured-row span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-overview-image {
  display: block;
  overflow: hidden;
  border-radius: 20px;
}

.category-overview-image img {
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
  font-size: 28px;
  font-weight: 950;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.8;
}

.category-overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.category-overview-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #9f1239;
  background: #fff1f2;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 160px 100px;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select,
.filter-panel button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 14px;
  background: #ffffff;
  outline: 0;
}

.filter-panel input,
.filter-panel select {
  padding: 0 14px;
  color: #111827;
}

.filter-panel button {
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

.empty-tip {
  display: none;
  padding: 28px;
  border-radius: 20px;
  color: #7f1d1d;
  background: #fff1f2;
  text-align: center;
  font-weight: 800;
}

.empty-tip.is-visible {
  display: block;
}

.movie-card.is-hidden {
  display: none;
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.top-rank-card {
  position: relative;
  min-height: 320px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: var(--shadow-strong);
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.9));
}

.top-rank-number {
  width: max-content;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-weight: 950;
}

.top-rank-card strong {
  font-size: 24px;
  font-weight: 950;
}

.top-rank-card em {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(4px) saturate(1.1);
  transform: scale(1.06);
}

.detail-shade {
  background:
    radial-gradient(circle at 72% 22%, rgba(245, 158, 11, 0.28), transparent 26rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.78) 52%, rgba(15, 23, 42, 0.34));
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

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

.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-poster span {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-weight: 950;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags a {
  color: #ffffff;
}

.player-section {
  padding: 18px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow-strong);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.74));
}

.play-cover.is-hidden {
  display: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 18px 42px rgba(225, 29, 72, 0.42);
  font-size: 34px;
}

.play-cover span:last-child {
  font-size: 20px;
  font-weight: 950;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  margin-bottom: 56px;
}

.detail-article {
  padding: 28px;
}

.detail-article p {
  margin: 14px 0 28px;
  color: #374151;
  font-size: 17px;
  line-height: 2;
}

.detail-side {
  position: sticky;
  top: 98px;
  padding: 24px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 18px 0 0;
}

.detail-side dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

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

.movie-card.compact .movie-one-line {
  display: none;
}

.site-footer {
  margin-top: 30px;
  padding: 56px 0 0;
  color: #e5e7eb;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.2fr);
  gap: 42px;
}

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

.footer-logo {
  color: #ffffff;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 28px;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.footer-link-grid a {
  color: #cbd5e1;
  font-weight: 700;
}

.footer-link-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 42px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

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

  .menu-toggle {
    display: block;
  }

  .header-search {
    margin-left: auto;
  }

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

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }
}

@media (max-width: 920px) {
  .hero-carousel {
    height: auto;
    min-height: 720px;
  }

  .hero-content,
  .category-hero-inner,
  .detail-main-grid,
  .footer-inner,
  .footer-links,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 28px;
    padding: 56px 0 86px;
  }

  .hero-poster {
    max-width: 280px;
    transform: none;
  }

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

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

  .top-rank-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(300px, 100%);
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 66px;
  }

  .logo-text {
    font-size: 17px;
  }

  .header-search {
    display: none;
  }

  .hero-carousel {
    min-height: 700px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-arrow {
    display: none;
  }

  .category-grid,
  .movie-grid,
  .related-grid,
  .category-featured-row,
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .category-tile {
    min-height: 156px;
  }

  .category-tile strong {
    margin-top: 48px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-card-body h3 {
    font-size: 15px;
  }

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

  .detail-hero-inner {
    padding-top: 24px;
  }

  .detail-content-grid {
    gap: 18px;
  }

  .detail-article,
  .detail-side {
    padding: 20px;
  }

  .site-footer {
    padding-top: 42px;
  }
}

@media (max-width: 420px) {
  .category-grid,
  .movie-grid,
  .related-grid,
  .filter-panel,
  .category-featured-row {
    grid-template-columns: 1fr;
  }
}
