:root {
  --red: #ef4444;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --gold: #fde68a;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-hot: 0 22px 60px rgba(239, 68, 68, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--slate-800);
  background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 42%, #fff1f2 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-text em {
  color: var(--red-dark);
  margin-top: 4px;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(253, 186, 116, 0.42), transparent 30%), linear-gradient(135deg, #7f1d1d 0%, #c2410c 42%, #0f172a 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.46) 1px, transparent 1px);
  background-size: 34px 34px;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 54px;
}

.hero-slider {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 48px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 12px 0 14px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: transparent;
  background: linear-gradient(90deg, var(--gold), var(--white), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  color: var(--white);
}

.hero-summary {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--red-dark);
}

.hero-tags,
.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: var(--shadow-hot);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.btn.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.ghost-on-light {
  color: var(--red-dark);
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.16);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 500px;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hero-poster-glow {
  position: absolute;
  inset: auto 26px 26px 26px;
  height: 46%;
  border-radius: 28px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.active {
  width: 32px;
  background: var(--gold);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.hero-metrics a {
  min-height: 108px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-metrics a:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 30px;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

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

.section-heading.small {
  align-items: center;
  margin-bottom: 12px;
}

.section-heading h2,
.section-heading h3 {
  margin: 6px 0 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.section-heading h3 {
  font-size: 24px;
}

.text-link {
  color: var(--red-dark);
  font-weight: 900;
}

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

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

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

.movie-link {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-link:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

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

.featured-card .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

.movie-link:hover .poster-wrap img,
.compact-card:hover img,
.rank-item:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 46%);
}

.region-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.region-badge {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(12px);
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--slate-500);
  font-size: 12px;
}

.movie-meta b {
  color: var(--red-dark);
}

.movie-meta i {
  font-style: normal;
}

.hot-section {
  background: linear-gradient(90deg, rgba(254, 226, 226, 0.92), rgba(255, 247, 237, 0.92));
}

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

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

.rank-item a {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.rank-no {
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.rank-poster {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fee2e2, #fed7aa);
}

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

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

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

.rank-body strong {
  overflow: hidden;
  color: var(--slate-900);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-body em {
  margin: 6px 0;
  color: var(--red-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rank-body span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-chip {
  display: block;
  min-height: 110px;
  padding: 20px;
  border-radius: 22px;
  color: var(--slate-900);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-chip:hover,
.category-chip.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  transform: translateY(-4px);
}

.category-chip span {
  display: block;
  margin-top: 8px;
  color: inherit;
  opacity: 0.72;
  font-size: 13px;
  line-height: 1.55;
}

.category-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.category-preview,
.story-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.category-desc {
  margin: 0 0 18px;
  color: var(--slate-600);
  line-height: 1.8;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
}

.compact-poster {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #fee2e2, #fed7aa);
}

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

.compact-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 14px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card em {
  display: block;
  margin-top: 6px;
  color: var(--red-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 320px;
}

.search-box span {
  color: var(--red-dark);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--slate-900);
  outline: none;
  background: var(--white);
}

.search-box input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

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

.filter-btn {
  min-height: 40px;
  border: 0;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  cursor: pointer;
  font-weight: 800;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 82% 18%, rgba(253, 186, 116, 0.34), transparent 28%), linear-gradient(135deg, #7f1d1d 0%, #c2410c 48%, #111827 100%);
}

.page-hero-inner {
  padding: 88px 0 72px;
}

.page-hero h1 {
  margin: 10px 0 14px;
  color: transparent;
  background: linear-gradient(90deg, var(--gold), var(--white), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.page-hero p:last-child {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.9;
}

.breadcrumb {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

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

.category-tile a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile a:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #fed7aa);
}

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

.category-tile-body {
  display: block;
  padding: 22px;
}

.category-tile-body strong {
  display: block;
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 900;
}

.category-tile-body em {
  display: block;
  margin-top: 8px;
  color: var(--slate-600);
  font-style: normal;
  line-height: 1.7;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-cover);
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(127, 29, 29, 0.84));
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #fee2e2, #fed7aa);
  box-shadow: 0 34px 78px rgba(0, 0, 0, 0.36);
}

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

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

.detail-one-line {
  max-width: 860px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.9;
}

.detail-meta {
  margin-bottom: 14px;
}

.player-section {
  padding-bottom: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 76px rgba(15, 23, 42, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15), rgba(0, 0, 0, 0.48));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: var(--shadow-hot);
  font-size: 34px;
  text-indent: 4px;
}

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

.story-card h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 26px;
  font-weight: 900;
}

.story-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 16px;
  line-height: 2;
}

.story-card.accent {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, #0f172a, #7f1d1d 48%, #0f172a);
}

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

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand strong {
  color: var(--white);
}

.footer-brand p {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
}

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

.footer-links h2 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 18px;
}

.footer-links a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer-links a:hover {
  color: var(--white);
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  from {
    opacity: 0.12;
  }
  to {
    opacity: 0.24;
  }
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 380px;
    transform: none;
  }

  .hero-poster img {
    min-height: 380px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-soft);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

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

  .hero-slider {
    min-height: auto;
  }

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

  .hero-summary,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-metrics,
  .movie-grid,
  .featured-grid,
  .rank-grid,
  .wide-rank,
  .category-chip-grid,
  .category-preview-grid,
  .category-tile-grid,
  .detail-text {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 520px) {
  .container,
  .header-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 22px, 1240px);
  }

  .brand-text em {
    display: none;
  }

  .hero-actions,
  .toolbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .rank-no {
    width: max-content;
  }

  .rank-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

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

  .section {
    padding: 52px 0;
  }
}
