
:root {
  --page-bg: #f8fafc;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --soft: #f1f5f9;
  --line: rgba(148, 163, 184, 0.28);
  --red: #e11d48;
  --red-deep: #be123c;
  --orange: #f97316;
  --yellow: #facc15;
  --green: #16a34a;
  --emerald: #059669;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --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(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 42%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
}

.brand-copy,
.footer-logo div {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong,
.footer-logo strong {
  font-size: 22px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small,
.footer-logo small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  color: #344054;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link-muted {
  font-size: 14px;
  color: #667085;
}

.header-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.search-page-form select,
.list-search-box input {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 190px;
  padding: 11px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.search-page-form select:focus,
.list-search-box input:focus {
  border-color: rgba(22, 163, 74, 0.6);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.header-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 22px rgba(225, 29, 72, 0.22);
}

.header-search button,
.mobile-search button {
  padding: 11px 18px;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #344054;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #344054;
  font-weight: 700;
}

.mobile-nav a:hover {
  color: var(--green);
  background: #f0fdf4;
}

.hero-shell {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: radial-gradient(circle at 18% 22%, rgba(250, 204, 21, 0.34), transparent 32%), linear-gradient(135deg, #9f1239 0%, #e11d48 45%, #f97316 100%);
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(127, 29, 29, 0.94), rgba(190, 18, 60, 0.7), rgba(249, 115, 22, 0.42)),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.22), transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 390px;
}

.hero-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content h1 span,
.detail-copy h1 span {
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.75;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.ghost-button,
.text-button,
.play-small,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 15px 26px;
  color: var(--red-deep);
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

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

.ghost-button {
  padding: 14px 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: max(16px, calc((100% - 1180px) / 2));
  bottom: 36px;
  display: flex;
  gap: 9px;
}

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

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

.hero-panel {
  position: absolute;
  z-index: 4;
  right: max(16px, calc((100% - 1180px) / 2));
  top: 50%;
  width: 330px;
  transform: translateY(-50%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

.hero-panel-head,
.panel-head,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-panel-head {
  margin-bottom: 14px;
  color: #ffffff;
  font-weight: 900;
}

.hero-panel-head a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini-card:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-mini-card img {
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

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

.hero-mini-card small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.content-section {
  padding: 72px 0;
}

.soft-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
}

.warm-bg {
  background: linear-gradient(135deg, #fff7ed 0%, #fefce8 100%);
}

.section-heading {
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2,
.panel-head h2,
.detail-article h2,
.info-card h2,
.side-rank-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.2;
}

.section-link,
.text-button {
  color: var(--red);
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(249, 115, 22, 0.2));
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.72));
}

.poster-type {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(225, 29, 72, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 18px;
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.card-meta a {
  display: inline-flex;
  align-items: center;
}

.card-meta span::after,
.card-meta a::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 10px;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.45);
}

.card-meta span:last-child::after,
.card-meta a:last-child::after {
  display: none;
}

.card-body h3 {
  margin: 10px 0 8px;
  color: #101828;
  font-size: 20px;
  line-height: 1.32;
}

.card-body h3 a:hover,
.ranking-info h2 a:hover,
.overview-body h2 a:hover {
  color: var(--red);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.tag-row span,
.detail-tags span {
  padding: 6px 10px;
  color: #166534;
  background: #dcfce7;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile img,
.category-shade {
  position: absolute;
  inset: 0;
}

.category-tile img {
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

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

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile small {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.info-card,
.side-rank-card,
.detail-article,
.player-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.ranking-panel,
.info-card,
.side-rank-card {
  padding: 22px;
}

.panel-head {
  margin-bottom: 16px;
}

.panel-head a {
  color: var(--red);
  font-weight: 900;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 36px 66px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-link:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.rank-number,
.rank-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-weight: 900;
}

.rank-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
}

.rank-link img {
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.rank-link em {
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  background: linear-gradient(135deg, #be123c 0%, #e11d48 44%, #f97316 100%);
}

.gradient-hero::before,
.category-hero::before,
.search-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: 8%;
  top: -120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(8px);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 66px);
}

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

.overview-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.overview-cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  min-height: 240px;
  background: #f1f5f9;
}

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

.overview-body {
  padding: 26px;
}

.overview-body h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.overview-body p {
  color: var(--muted);
  line-height: 1.75;
}

.filter-bar {
  position: sticky;
  top: 90px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.filter-chip {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344054;
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

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

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

.list-search-box {
  position: sticky;
  top: 90px;
  z-index: 9;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.list-search-box input {
  width: 100%;
  padding: 14px 18px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 118px 64px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-poster img {
  height: 86px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-index {
  color: var(--red);
  font-size: 28px;
  font-weight: 950;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.play-small {
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--emerald));
}

.search-page-form {
  align-items: stretch;
  margin-bottom: 30px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-page-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
}

.search-page-form select {
  padding: 0 18px;
}

.search-page-form button {
  padding: 0 24px;
}

.search-results:empty::before {
  content: "输入关键词后查看相关影片";
  display: block;
  grid-column: 1 / -1;
  padding: 48px;
  border-radius: 24px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(4px) scale(1.04);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(127, 29, 29, 0.8), rgba(249, 115, 22, 0.38));
}

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

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

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
  max-width: 860px;
  font-size: clamp(40px, 5.5vw, 68px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  padding: 0;
  background: #020617;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.16), rgba(2, 6, 23, 0.62));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-triangle {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.38);
}

.play-triangle::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid #ffffff;
}

.play-overlay strong {
  font-size: 18px;
}

.detail-article {
  margin-top: 24px;
  padding: 28px;
}

.detail-article h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.detail-article p {
  color: #344054;
  font-size: 17px;
  line-height: 1.9;
}

.detail-tags {
  margin-top: 18px;
}

.info-card,
.side-rank-card {
  margin-bottom: 22px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px 14px;
  margin: 18px 0 0;
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: #101828;
  line-height: 1.6;
}

.info-card a {
  color: var(--red);
  font-weight: 900;
}

.side-rank-card .rank-link {
  grid-template-columns: 58px 1fr;
}

.side-rank-card .rank-link .rank-dot,
.side-rank-card .rank-link em {
  display: none;
}

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0;
}

.footer-brand p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer a {
  color: #94a3b8;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  text-align: center;
}

.is-filtered-out {
  display: none !important;
}

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-panel {
    display: none;
  }

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

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

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

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    padding: 14px 0;
  }

  .brand-copy small {
    display: none;
  }

  .header-search {
    display: none;
  }

  .hero-shell,
  .hero-content {
    min-height: 620px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 42px;
  }

  .hero-content p,
  .page-hero p,
  .detail-copy p {
    font-size: 17px;
  }

  .hero-dots {
    bottom: 22px;
  }

  .home-grid,
  .compact-grid,
  .movie-grid,
  .related-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

  .overview-cover {
    min-height: 190px;
  }

  .ranking-row {
    grid-template-columns: 92px 42px 1fr;
  }

  .ranking-row .play-small {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

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

  .search-page-form {
    flex-direction: column;
  }

  .search-page-form input,
  .search-page-form select,
  .search-page-form button {
    min-height: 48px;
  }

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

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .content-section {
    padding: 52px 0;
  }

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

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

  .ranking-row {
    grid-template-columns: 78px 1fr;
  }

  .ranking-index {
    display: none;
  }

  .ranking-info h2 {
    font-size: 18px;
  }
}
