:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --shadow: rgba(34, 211, 238, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 145, 178, 0.22));
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.38);
  font-size: 15px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-text em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted-strong);
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transition: right 0.25s ease;
}

.desktop-nav a:hover {
  color: var(--cyan);
}

.desktop-nav a:hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
  background: rgba(2, 6, 23, 0.96);
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
  color: var(--muted-strong);
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  margin-top: 68px;
  background: #020617;
}

.hero-stage,
.hero-slide,
.hero-bg,
.hero-gradient {
  position: absolute;
  inset: 0;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-gradient {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.36) 42%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  padding: 64px 0;
}

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

.hero-tags a,
.hero-tags span,
.card-meta a,
.card-meta span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(15, 23, 42, 0.68);
  color: var(--muted-strong);
  font-size: 13px;
}

.hero-tags a,
.tag-cloud a:hover,
.card-meta a:hover {
  color: var(--cyan);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  margin: 24px 0 30px;
}

.hero-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: rgba(148, 163, 184, 0.48);
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 46px rgba(34, 211, 238, 0.24);
}

.ghost-btn,
.section-link {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.64);
  color: var(--muted-strong);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.34);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 46%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 36px;
  background: var(--cyan);
}

.hero-panel {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}

.hero-mini-list,
.hero-category-links {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.hero-mini-list strong,
.hero-category-links strong {
  color: white;
  white-space: nowrap;
}

.hero-mini-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted-strong);
}

.hero-mini-list img {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-mini-list span {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-category-links {
  flex-wrap: wrap;
}

.hero-category-links a {
  font-size: 13px;
  color: var(--muted-strong);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.42);
}

.page-stack,
.detail-stack {
  padding: 64px 0;
  display: grid;
  gap: 72px;
}

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

.section-title h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 56%;
  height: 4px;
  border-radius: 999px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-title p {
  margin: 12px 0 0;
  color: var(--muted);
}

.horizontal-rail {
  position: relative;
}

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 280px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 20px;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

.horizontal-rail > button {
  position: absolute;
  z-index: 5;
  top: 42%;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.78);
  font-size: 28px;
}

.horizontal-rail > button:first-child {
  left: -14px;
}

.horizontal-rail > button:last-child {
  right: -14px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(2, 6, 23, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 20px 54px var(--shadow);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
}

.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;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.8), transparent 56%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.88);
  color: white;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: white;
  font-size: 12px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  color: white;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s ease;
}

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

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

.card-meta {
  gap: 8px;
}

.card-meta a,
.card-meta span {
  min-height: 25px;
  padding: 4px 8px;
  font-size: 12px;
}

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

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: var(--panel);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
}

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

.category-card img {
  object-fit: cover;
  opacity: 0.56;
  transition: transform 0.5s ease;
}

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

.category-card-shade {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.1));
}

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

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

.category-card em {
  width: max-content;
  margin: 8px 0;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--cyan);
  font-style: normal;
  background: rgba(34, 211, 238, 0.13);
}

.category-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.6;
  font-size: 14px;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 1fr 64px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.62);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rank-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-main em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--cyan);
  font-weight: 900;
  text-align: right;
}

.filter-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.64);
  margin-bottom: 24px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 18px;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: white;
  outline: none;
  background: rgba(2, 6, 23, 0.72);
}

.search-box input:focus {
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.search-box button,
.filter-group button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(2, 6, 23, 0.56);
  min-height: 38px;
  padding: 0 14px;
}

.filter-groups {
  display: grid;
  gap: 14px;
}

.filter-group {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: start;
}

.filter-group strong {
  color: white;
  padding-top: 8px;
}

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

.filter-group button.active,
.filter-group button:hover,
.search-box button:hover {
  color: white;
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.72), rgba(59, 130, 246, 0.72));
}

.empty-state {
  display: none;
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.5);
}

.empty-state.show {
  display: block;
}

.sub-page {
  padding-top: 68px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.66)),
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.16));
}

.page-hero.category-hero {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.55)),
    var(--hero-image) center / cover;
}

.ranking-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.24), transparent 22rem),
    linear-gradient(135deg, #020617, #111827 58%, #082f49);
}

.eyebrow {
  width: max-content;
  margin-bottom: 16px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
}

.compact-actions {
  margin-top: 24px;
}

.detail-page {
  background: var(--bg);
}

.detail-hero {
  position: relative;
  min-height: 720px;
  padding-top: 68px;
  overflow: hidden;
}

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

.detail-bg {
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.05);
  opacity: 0.46;
}

.detail-bg-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68)),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.2));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 34px;
}

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

.breadcrumb strong {
  color: white;
}

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

.detail-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.42);
}

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

.detail-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(34, 211, 238, 0.88);
}

.detail-copy h1 {
  font-size: clamp(42px, 6vw, 74px);
}

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

.detail-meta div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.6);
}

.detail-meta dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.detail-meta dd {
  margin: 0;
  color: white;
  line-height: 1.5;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-section h2,
.detail-text-grid h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 28px;
  background: black;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: white;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.18)),
    rgba(2, 6, 23, 0.2);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
}

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

.video-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 60px rgba(34, 211, 238, 0.32);
  font-size: 34px;
}

.video-overlay strong {
  font-size: clamp(20px, 4vw, 34px);
}

.video-overlay em {
  color: var(--muted-strong);
  font-style: normal;
}

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

.detail-text-grid article {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  background: rgba(15, 23, 42, 0.62);
}

.detail-text-grid p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.9;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.98));
}

.footer-grid {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  font-weight: 900;
  font-size: 20px;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--cyan);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px;
  text-align: center;
  color: rgba(148, 163, 184, 0.68);
  font-size: 13px;
}

.image-missing {
  opacity: 0;
}

[data-card].hidden {
  display: none;
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-category-links {
    display: none;
  }

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

@media (max-width: 820px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-text em {
    display: none;
  }

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

  .hero-content {
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 128px;
  }

  .hero-mini-list {
    overflow-x: auto;
  }

  .section-title {
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .library-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .detail-cover {
    width: min(280px, 80%);
  }

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

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

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

  .hero-panel {
    bottom: 12px;
  }

  .hero-mini-list span {
    max-width: 96px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

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

  .movie-grid,
  .library-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 48px 1fr 52px;
    gap: 10px;
  }

  .card-body p {
    min-height: auto;
  }
}
