:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fff1e6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(248, 113, 113, 0.18);
  --red: #ef4444;
  --orange: #f97316;
  --pink: #ec4899;
  --yellow: #f59e0b;
  --shadow: 0 24px 70px rgba(239, 68, 68, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(252, 165, 165, 0.28), transparent 34rem),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.26), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 46%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(248, 113, 113, 0.14);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.28);
}

.brand-name,
.footer-brand {
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--red);
  background: #fff;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.14);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 4px;
  background: var(--red);
}

.hero-carousel {
  width: min(1220px, calc(100% - 32px));
  margin: 28px auto 0;
  position: relative;
}

.hero-stage {
  position: relative;
  min-height: 660px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

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

.hero-bg.is-missing,
.poster img.is-missing,
.category-card img.is-missing,
.overview-image img.is-missing,
.rank-item img.is-missing,
.detail-cover img.is-missing,
.category-hero img.is-missing,
.hero-poster img.is-missing {
  opacity: 0;
}

.poster,
.category-card,
.overview-image,
.detail-cover,
.hero-poster,
.rank-item {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(249, 115, 22, 0.82), rgba(236, 72, 153, 0.76));
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.76) 42%, rgba(17, 24, 39, 0.24) 100%),
    radial-gradient(circle at 74% 32%, rgba(249, 115, 22, 0.5), transparent 24rem);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  align-items: center;
}

.hero-copy {
  color: #fff;
}

.hero-eyebrow,
.section-head span,
.page-hero span,
.search-card span,
.article-block span,
.detail-category,
.category-overview-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #b91c1c;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 24px 0 12px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-movie {
  margin: 0 0 16px;
  color: #fed7aa;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
}

.hero-desc {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(12px);
}

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

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

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.28);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.btn.text {
  color: #fed7aa;
  padding-inline: 10px;
}

.btn.wide {
  width: 100%;
}

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

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  z-index: -1;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  opacity: 0.55;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
  transition: all 0.25s ease;
}

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

.content-section,
.search-panel,
.category-strip {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-head span {
  margin: 0 auto 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 14px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.featured-grid,
.catalogue-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(248, 113, 113, 0.12);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(239, 68, 68, 0.18);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.72));
  opacity: 0.9;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.9);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: all 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #111827;
  font-weight: 900;
  font-size: 18px;
  transition: color 0.25s ease;
}

.movie-card:hover .card-title {
  color: var(--red);
}

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

.card-meta {
  margin-bottom: 12px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.movie-card.compact .card-body {
  padding: 13px;
}

.movie-card.compact .card-title {
  font-size: 15px;
}

.movie-card.compact .card-line {
  min-height: 38px;
  font-size: 12px;
}

.category-strip {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - 1220px) / 2));
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.72), rgba(255, 237, 213, 0.82), rgba(252, 231, 243, 0.76));
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.16);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.86));
}

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

.category-card span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

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

.category-card em {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.two-column .section-head {
  text-align: left;
}

.two-column .section-head span {
  margin-left: 0;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(248, 113, 113, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.16);
}

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

.rank-item img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

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

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

.rank-text strong {
  font-size: 16px;
}

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

.section-more,
.inline-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red);
  font-weight: 900;
}

.search-panel {
  padding-top: 24px;
}

.search-card {
  padding: clamp(30px, 6vw, 66px);
  border-radius: 34px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 25rem),
    linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: var(--shadow);
}

.search-card span {
  margin: 0 auto 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.search-card h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.search-card p,
.page-hero p {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.78;
}

.search-form {
  display: flex;
  max-width: 680px;
  margin: 32px auto 0;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #fff;
  background: transparent;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.page-hero {
  width: min(1220px, calc(100% - 32px));
  margin: 28px auto 0;
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 22rem),
    linear-gradient(135deg, #ef4444, #f97316 52%, #ec4899);
  box-shadow: var(--shadow);
}

.page-hero.compact-hero,
.page-hero.ranking-hero,
.page-hero.search-hero {
  grid-template-columns: 1fr;
  text-align: center;
}

.page-hero span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero.compact-hero span,
.page-hero.ranking-hero span,
.page-hero.search-hero span {
  margin: 0 auto 18px;
}

.category-hero img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(248, 113, 113, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
}

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

.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 14px 0 8px;
  font-size: 25px;
  font-weight: 950;
}

.category-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.overview-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 30px;
  padding: 14px;
  border: 1px solid rgba(248, 113, 113, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.07);
}

.filter-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(248, 113, 113, 0.16);
  border-radius: 16px;
  outline: 0;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 42px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

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

.breadcrumb {
  width: min(1220px, calc(100% - 32px));
  margin: 28px auto 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-layout {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 380px;
  gap: 28px;
  align-items: start;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
  aspect-ratio: 16 / 9;
}

.video-player {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(239, 68, 68, 0.28), transparent 18rem),
    linear-gradient(180deg, rgba(17, 24, 39, 0.24), rgba(17, 24, 39, 0.72));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  color: #fff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 20px 46px rgba(239, 68, 68, 0.4);
  transition: transform 0.25s ease;
}

.player-overlay:hover .play-circle {
  transform: scale(1.06);
}

.player-overlay strong {
  font-size: 20px;
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  color: #4b5563;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.small-control {
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
  cursor: pointer;
}

.detail-card {
  padding: 22px;
  border: 1px solid rgba(248, 113, 113, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.1);
}

.detail-cover {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
}

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

.detail-card h1 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-line {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.detail-meta li {
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.detail-meta span,
.detail-meta strong {
  display: block;
}

.detail-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta strong {
  margin-top: 3px;
  color: #111827;
  font-size: 14px;
}

.large-tags {
  margin-bottom: 22px;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.article-block {
  padding: 28px;
  border: 1px solid rgba(248, 113, 113, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(31, 41, 55, 0.08);
}

.article-block h2 {
  margin: 16px 0 12px;
  font-size: 28px;
  font-weight: 950;
}

.article-block p {
  margin: 0;
  color: #4b5563;
  line-height: 1.92;
  font-size: 16px;
}

.ranking-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.full-rank {
  max-height: 1450px;
  overflow: auto;
  padding-right: 8px;
}

.ranking-side {
  position: sticky;
  top: 92px;
}

.ranking-side h2 {
  margin: 0 0 20px;
  font-size: 30px;
  font-weight: 950;
}

.site-footer {
  margin-top: 40px;
  padding: 46px 0 28px;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(248, 113, 113, 0.14);
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 520px;
  margin: 12px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 520px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  font-weight: 800;
}

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

.copyright {
  width: min(1220px, calc(100% - 32px));
  margin: 32px auto 0;
  color: #9ca3af;
  font-size: 13px;
}

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

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

  .hero-inner,
  .detail-layout,
  .page-hero,
  .two-column,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .category-hero img {
    display: none;
  }

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

  .detail-cover {
    grid-row: span 6;
    margin-bottom: 0;
  }

  .ranking-side {
    position: static;
  }
}

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

  .main-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(31, 41, 55, 0.16);
  }

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

  .nav-link {
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-inner {
    width: calc(100% - 34px);
  }

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

  .hero-desc,
  .search-card p,
  .page-hero p {
    font-size: 16px;
  }

  .movie-grid,
  .featured-grid,
  .catalogue-grid,
  .small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .category-grid,
  .category-overview-grid,
  .detail-text {
    grid-template-columns: 1fr;
  }

  .category-overview-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

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

  .search-form {
    border-radius: 24px;
    flex-direction: column;
    gap: 10px;
  }

  .search-form input {
    min-height: 46px;
  }

  .detail-card {
    display: block;
  }

  .detail-cover {
    max-width: 260px;
    margin: 0 auto 18px;
  }

  .player-bar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 18px;
  }

  .hero-carousel,
  .content-section,
  .search-panel,
  .page-hero,
  .breadcrumb,
  .detail-layout {
    width: calc(100% - 22px);
  }

  .hero-stage,
  .page-hero,
  .search-card {
    border-radius: 24px;
  }

  .hero-stage {
    min-height: 660px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 34px;
  }

  .movie-grid,
  .featured-grid,
  .catalogue-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

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

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

  .overview-image {
    aspect-ratio: 16 / 9;
  }

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