:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --ink: #0f172a;
  --muted: #64748b;
  --paper: #ffffff;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.36);
  font-size: 14px;
}

.brand-text {
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.site-header.is-scrolled .brand-text {
  color: var(--ink);
  text-shadow: none;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-header.is-scrolled .nav-link {
  color: #334155;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active {
  color: var(--blue);
  background: #eff6ff;
}

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

.nav-search input,
.mobile-search input,
.search-panel input,
.search-panel select,
.category-filter input {
  width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.site-header.is-scrolled .nav-search input,
.mobile-search input,
.search-panel input,
.search-panel select,
.category-filter input {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.site-header.is-scrolled .nav-search input::placeholder,
.mobile-search input::placeholder,
.search-panel input::placeholder,
.category-filter input::placeholder {
  color: #94a3b8;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.search-panel select:focus,
.category-filter input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.nav-search button,
.mobile-search button,
.search-panel button,
.hero-button.primary,
.section-action,
.play-overlay,
.back-link {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-search button,
.mobile-search button,
.search-panel button {
  padding: 10px 16px;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.hero-button.primary:hover,
.section-action:hover,
.play-overlay:hover,
.back-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.35);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.site-header.is-scrolled .menu-toggle {
  background: #eff6ff;
}

.site-header.is-scrolled .menu-toggle span {
  background: var(--blue);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  color: #334155;
}

.mobile-link.is-active,
.mobile-link:hover {
  color: var(--blue);
  background: #eff6ff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 48%, #14b8a6 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(15, 23, 42, 0.22), transparent 32%),
    rgba(0, 0, 0, 0.34);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.08) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding-top: 90px;
}

.hero-copy {
  animation: rise-in 0.9s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.075em;
  text-shadow: 0 22px 45px rgba(0, 0, 0, 0.32);
}

.hero-lead {
  width: min(620px, 100%);
  margin: 0 0 30px;
  font-size: clamp(17px, 2.2vw, 22px);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-button.secondary {
  border: 2px solid rgba(255, 255, 255, 0.76);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-button.secondary:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

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

.hero-card {
  position: absolute;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  transform: rotate(-4deg);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.hero-card.main {
  inset: 0 8% 0 7%;
  z-index: 3;
}

.hero-card.side-a {
  right: 0;
  top: 9%;
  width: 42%;
  height: 62%;
  z-index: 2;
  opacity: 0.78;
  transform: rotate(7deg) translateX(12px);
}

.hero-card.side-b {
  left: 0;
  bottom: 5%;
  width: 44%;
  height: 52%;
  z-index: 1;
  opacity: 0.62;
  transform: rotate(-12deg) translateX(-18px);
}

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

.hero-card-info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.82));
  backdrop-filter: blur(12px);
}

.hero-card-info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.15;
}

.hero-card-info p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-card-info a {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-weight: 800;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateX(-50%);
  animation: scroll-dot 1.4s infinite;
}

.main-section {
  padding: 76px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.section-white {
  background: #ffffff;
}

.section-gradient {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--teal));
}

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

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

.section-heading.center {
  display: block;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h1,
.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-gradient .section-heading p,
.section-gradient p {
  color: rgba(255, 255, 255, 0.9);
}

.section-action,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.poster-region,
.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(10px);
}

.poster-region {
  top: 12px;
  left: 12px;
}

.poster-year {
  right: 12px;
  bottom: 12px;
}

.rank-badge {
  right: 12px;
  top: 12px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.88);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body h2,
.movie-card-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 12px;
}

.card-tags span,
.detail-tags span,
.page-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 750;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

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

.movie-card-compact .movie-card-body h2 {
  font-size: 14px;
}

.movie-card-compact .movie-card-body p,
.movie-card-compact .card-tags,
.movie-card-compact .card-meta {
  display: none;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.category-card strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
}

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

.category-card p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
}

.category-card em {
  font-style: normal;
  font-weight: 850;
}

.category-glow {
  position: absolute;
  right: -34px;
  top: -34px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  filter: blur(2px);
  transition: transform 0.4s ease;
}

.category-card:hover .category-glow {
  transform: scale(1.42);
}

.tone-cyan { background: linear-gradient(135deg, #0284c7, #22d3ee); }
.tone-violet { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.tone-pink { background: linear-gradient(135deg, #db2777, #fb7185); }
.tone-indigo { background: linear-gradient(135deg, #4338ca, #3b82f6); }
.tone-amber { background: linear-gradient(135deg, #d97706, #fbbf24); }
.tone-green { background: linear-gradient(135deg, #059669, #34d399); }
.tone-orange { background: linear-gradient(135deg, #ea580c, #f97316); }
.tone-teal { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.tone-red { background: linear-gradient(135deg, #dc2626, #f97316); }
.tone-purple { background: linear-gradient(135deg, #9333ea, #ec4899); }
.tone-slate { background: linear-gradient(135deg, #334155, #0f172a); }

.page-hero {
  padding: 150px 0 74px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4, #14b8a6);
}

.page-hero .container {
  max-width: 920px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.92);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.search-panel,
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.search-panel input {
  flex: 1 1 260px;
  width: auto;
}

.search-panel select {
  width: 190px;
  border-radius: 999px;
}

.detail-hero {
  padding: 116px 0 40px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0891b2);
  color: #ffffff;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: 34px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.58));
  pointer-events: auto;
}

.play-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.44);
  font-size: 30px;
  transform: translateX(3px);
}

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

.detail-side {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

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

.detail-title h1 {
  color: #ffffff;
}

.detail-title p {
  color: rgba(255, 255, 255, 0.88);
}

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

.detail-meta div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.detail-meta strong {
  color: #ffffff;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-content {
  padding: 68px 0;
  background: #ffffff;
}

.detail-content-grid {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.article-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 62px 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ranking-index {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.ranking-row img {
  width: 88px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: #dbeafe;
}

.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-row p {
  margin: 0;
  color: var(--muted);
}

.ranking-row .section-action {
  min-width: 96px;
}

.cta-box {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.cta-box h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.cta-box p {
  margin: 0 auto 26px;
  max-width: 680px;
  font-size: 18px;
}

.empty-message {
  display: none;
  padding: 38px;
  border: 1px dashed #cbd5e1;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

.site-footer {
  color: #e2e8f0;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 430px;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-dot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

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

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

  .hero-feature {
    min-height: 430px;
  }

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .nav-shell {
    height: 68px;
  }

  .hero-content {
    padding-top: 110px;
    padding-bottom: 80px;
  }

  .hero-feature {
    min-height: 360px;
  }

  .hero-card.main {
    inset: 0 9%;
  }

  .section-heading {
    display: block;
  }

  .section-actions {
    margin-top: 16px;
  }

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

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

  .ranking-row {
    grid-template-columns: 42px 72px minmax(0, 1fr);
  }

  .ranking-row .section-action {
    grid-column: 2 / -1;
    width: max-content;
  }

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

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

  .hero h1 {
    font-size: 44px;
  }

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

  .hero-button,
  .section-action,
  .back-link {
    width: 100%;
  }

  .hero-feature {
    min-height: 300px;
  }

  .main-section {
    padding: 56px 0;
  }

  .movie-grid,
  .movie-grid.dense,
  .movie-grid.related,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .movie-card-compact .poster-wrap {
    aspect-ratio: auto;
    min-height: 150px;
  }

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

  .article-card {
    padding: 22px;
  }
}
