:root {
  color-scheme: dark;
  --bg-main: #020617;
  --bg-mid: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-strong: #111827;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-light: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-strong: #0891b2;
  --blue: #2563eb;
  --yellow: #facc15;
  --pink: #db2777;
  --purple: #9333ea;
  --green: #22c55e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.nav-container {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand {
  font-size: clamp(20px, 2vw, 28px);
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
  font-size: 14px;
}

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

.nav-link,
.mobile-link {
  color: var(--muted-light);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.56);
}

.nav-search input,
.mobile-search input {
  width: 170px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 8px 10px;
}

.nav-search button,
.mobile-search button,
.primary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
  color: white;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button {
  padding: 8px 14px;
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

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

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

.mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
}

.home-page,
.sub-page,
.detail-page {
  min-height: 60vh;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.72) 34%, rgba(2, 6, 23, 0.12) 100%), linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.22));
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 96px;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 900;
  padding: 8px 14px;
  border: 1px solid rgba(250, 204, 21, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(12px);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-shadow: 0 16px 60px rgba(0, 0, 0, 0.58);
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--muted-light);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
}

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

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  min-height: 46px;
}

.primary-button {
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 16px 40px rgba(8, 145, 178, 0.32);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.nav-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--cyan);
}

.hero-search {
  position: absolute;
  z-index: 6;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 30px;
  width: min(410px, calc(100% - 32px));
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 10px 14px;
}

.hero-search button {
  border: 0;
  color: white;
  font-weight: 900;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
  cursor: pointer;
}

.section-block {
  padding: 58px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading span {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading a {
  margin-left: auto;
  color: var(--cyan);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.9));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card a:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 24px 70px rgba(8, 145, 178, 0.18);
}

.card-cover {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 2 / 3;
}

.movie-card.wide .card-cover {
  aspect-ratio: 16 / 9;
}

.movie-card.mini .card-cover {
  aspect-ratio: 3 / 4;
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.1) 58%, rgba(0, 0, 0, 0.18));
}

.quality-badge,
.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.quality-badge {
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--yellow), #f97316);
  color: #111827;
}

.play-hover {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  border-radius: 50%;
  color: white;
  background: rgba(34, 211, 238, 0.82);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.36);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  color: var(--muted-light);
  font-size: 12px;
  justify-content: space-between;
}

.card-meta span:first-child {
  color: var(--yellow);
  font-weight: 900;
}

.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-tags span,
.tag-cloud span {
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.split-showcase {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 26px;
  align-items: center;
}

.showcase-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 36%), linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.92));
}

.showcase-copy span {
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.showcase-copy h2 {
  margin: 12px 0;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.06em;
}

.showcase-copy p {
  color: var(--muted-light);
  line-height: 1.85;
  margin-bottom: 22px;
}

.glass-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.44), rgba(15, 23, 42, 0.72));
  box-shadow: var(--shadow);
}

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

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

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

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

.category-card img {
  object-fit: cover;
  opacity: 0.68;
}

.category-overlay {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.14));
}

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

.category-card strong {
  font-size: 20px;
  margin-bottom: 5px;
}

.category-card small {
  color: var(--cyan);
  font-weight: 800;
}

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

.compact-card a {
  display: grid;
  grid-template-columns: auto 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.compact-card a:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.64);
  background: rgba(30, 41, 59, 0.92);
}

.compact-card img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-number {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, var(--yellow), #fb923c);
  font-weight: 1000;
}

.compact-info strong,
.compact-info small {
  display: block;
}

.compact-info strong {
  margin-bottom: 5px;
  line-height: 1.35;
}

.compact-info small {
  color: var(--muted);
}

.page-hero {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.cyan-hero {
  background: radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.32), transparent 36%), linear-gradient(90deg, #075985, #1d4ed8);
}

.purple-hero {
  background: radial-gradient(circle at 18% 0%, rgba(236, 72, 153, 0.34), transparent 36%), linear-gradient(90deg, #6d28d9, #be185d);
}

.page-hero p {
  margin: 0 0 10px;
  color: #a5f3fc;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: -0.06em;
}

.page-hero span {
  display: block;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.page-hero .ghost-button {
  margin-top: 22px;
}

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

.overview-card a {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.92));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.overview-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.68);
}

.overview-card img {
  width: 150px;
  height: 210px;
  object-fit: cover;
  border-radius: 14px;
}

.overview-card span {
  color: var(--cyan);
  font-weight: 900;
}

.overview-card h2 {
  margin: 10px 0;
  font-size: 24px;
}

.overview-card p,
.overview-card li {
  color: var(--muted-light);
  line-height: 1.65;
}

.overview-card ul {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
}

.filter-panel {
  margin-top: -32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted-light);
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.68);
  padding: 0 12px;
  outline: 0;
}

.filter-count {
  margin: 14px 0 0;
  color: var(--cyan);
  font-weight: 900;
}

.rank-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.rank-feature {
  position: sticky;
  top: 94px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow);
}

.rank-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rank-feature div {
  padding: 24px;
}

.rank-feature span {
  color: var(--yellow);
  font-weight: 900;
}

.rank-feature h2 {
  margin: 12px 0;
  font-size: 32px;
}

.rank-feature p {
  color: var(--muted-light);
  line-height: 1.8;
}

.full-rank-list .compact-card a {
  grid-template-columns: 42px 110px 1fr;
}

.detail-page {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
}

.detail-backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: 450px;
  overflow: hidden;
  pointer-events: none;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.04);
}

.detail-backdrop span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.36), #020617 92%), linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.28));
}

.detail-container {
  position: relative;
  z-index: 2;
  padding: 34px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted-light);
}

.breadcrumb a {
  color: var(--cyan);
  font-weight: 800;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card,
.detail-panel,
.side-cover-card,
.related-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.94));
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame video,
.player-mask,
.player-mask img,
.mask-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-frame video {
  z-index: 1;
  object-fit: contain;
  background: #000;
}

.player-mask {
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  color: white;
  background: #000;
}

.player-mask img {
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.mask-shade {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
}

.play-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.14), 0 0 48px rgba(34, 211, 238, 0.46);
  font-size: 30px;
  font-weight: 900;
}

.player-card.is-playing .player-mask {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.player-card.is-loading .play-pulse {
  animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.detail-panel {
  padding: 28px;
}

.detail-panel h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: -0.05em;
}

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

.one-line {
  padding: 18px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 16px;
  background: rgba(8, 145, 178, 0.12);
  color: #dffbff;
  line-height: 1.8;
  font-size: 17px;
}

.text-section {
  margin-top: 28px;
}

.text-section h2,
.related-box h2,
.side-cover-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-section p {
  margin: 0;
  color: var(--muted-light);
  line-height: 2;
  text-align: justify;
}

.detail-aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 94px;
}

.side-cover-card,
.related-box {
  padding: 18px;
}

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

.side-cover-card p {
  color: var(--muted-light);
  line-height: 1.65;
}

.related-box .compact-card a {
  grid-template-columns: 88px 1fr;
}

.related-box .compact-card .rank-number {
  display: none;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0f172a, #020617);
  color: var(--muted-light);
}

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

.footer-brand {
  font-size: 22px;
  margin-bottom: 14px;
}

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

.site-footer p,
.site-footer li {
  line-height: 1.8;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 1120px) {
  .poster-grid,
  .search-page .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .detail-layout,
  .rank-layout,
  .split-showcase {
    grid-template-columns: 1fr;
  }

  .detail-aside,
  .rank-feature {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-search {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: 78px;
  }

  .hero-dots {
    bottom: 34px;
  }

  .hero-content {
    padding-bottom: 150px;
  }

  .poster-grid,
  .compact-grid,
  .search-page .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .hero,
  .hero-content {
    min-height: 82vh;
  }

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

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

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

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

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

  .overview-card img {
    width: 112px;
    height: 158px;
  }

  .full-rank-list .compact-card a,
  .compact-card a,
  .related-box .compact-card a {
    grid-template-columns: 76px 1fr;
  }

  .compact-card .rank-number {
    display: none;
  }

  .compact-card img {
    width: 76px;
    height: 54px;
  }

  .detail-panel,
  .side-cover-card,
  .related-box,
  .glass-section {
    padding: 18px;
  }
}
