:root {
  --bg: #080b14;
  --bg2: #0d1120;
  --bg3: #111827;
  --bg4: #1a2235;
  --bg5: #202c42;
  --cyan: #00e5ff;
  --cyan2: #00b8d4;
  --purple: #7c3aed;
  --purple2: #a78bfa;
  --green: #00e676;
  --scan-btn-text: #001014;
  --amber: #ffab00;
  --red: #ff5252;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --border: rgba(0, 229, 255, .08);
  --border2: rgba(0, 229, 255, .18);
  --border3: rgba(0, 229, 255, .35);
  --r: 14px;
  --r2: 8px;
}

@font-face {
  font-family: "Highrise PCGC";
  src: url("/static/fonts/HighriseFont-Condensed-Demo.otf") format("opentype");
  font-display: block;
  font-weight: 400;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
html.scan-restored #homeVideoSection {
  display: none !important;
}
html.scan-restored #mainSection {
  position: relative;
  z-index: 3;
  display: block !important;
}
html.scan-restored .scan-wrap {
  position: fixed;
  top: 112px;
  right: 24px;
  z-index: 30;
  margin: 0;
  padding: 0;
}
html.scan-restored .scan-hint {
  display: none;
}
html.scan-restored .scan-btn {
  width: 46px;
  min-width: 0;
  min-height: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px color-mix(in srgb, var(--cyan) 18%, transparent);
}
html.scan-restored .scan-btn .scan-live {
  display: none;
}
html.scan-restored .scan-btn::before {
  content: "↻";
  position: static;
  inset: auto;
  transform: none;
  background: none;
  transition: none;
  font-family: "Segoe UI Symbol", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--scan-btn-text);
}
html.scan-restored .scan-btn:hover {
  transform: translateY(-1px) scale(1.04);
}
@media (max-width: 760px) {
  html.scan-restored .scan-wrap {
    top: 92px;
    right: 14px;
  }
  html.scan-restored .scan-btn {
    width: 42px;
    min-height: 42px;
    height: 42px;
  }
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Exo 2", "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  mix-blend-mode: screen;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(76, 201, 255, .92);
  box-shadow: 0 0 7px rgba(79, 199, 255, .62), 0 0 16px rgba(81, 111, 255, .24);
  opacity: 0;
  animation: float linear infinite;
}
@keyframes float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  12% { opacity: .74; }
  82% { opacity: .48; }
  100% { transform: translateY(-10vh) translateX(20px); opacity: 0; }
}

.wrapper { position: relative; z-index: auto; max-width: 1320px; margin: 0 auto; padding: 0 20px 60px; }
#mainSection { position: relative; }
.scan-result-header-wrap {
  display: none;
}
html.scan-restored .scan-result-header-wrap,
#mainSection[style*="display:block"] .scan-result-header-wrap {
  display: block;
  margin: -34px 0 30px;
}
.scan-result-header-wrap .site-header {
  position: sticky;
  top: 10px;
  width: 100%;
}
.agent-download-dock {
  --dock-color: #4f86ff;
  position: absolute;
  top: 112px;
  left: -108px;
  z-index: 24;
  width: 94px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dff6ff;
  filter: drop-shadow(0 0 22px rgba(64, 128, 255, .22));
  opacity: 0;
  transform: translateX(-6px) scale(.96);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, filter .22s ease;
}
.agent-download-dock[hidden] {
  display: none !important;
}
.agent-download-dock.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.agent-download-dock:hover {
  filter: drop-shadow(0 0 28px rgba(53, 232, 255, .32));
}
.agent-download-dock.is-alert {
  --dock-color: #ff3156;
  filter: drop-shadow(0 0 28px rgba(255, 49, 86, .34));
  animation: agentAlertFloat 1.55s ease-in-out infinite;
}
.agent-download-dock.is-alert .agent-download-core {
  background: radial-gradient(circle at 35% 25%, #ff8b9f, #e11d48 72%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1) inset,
    0 0 30px rgba(255, 49, 86, .62);
}
.agent-download-dock.is-alert .agent-download-gear,
.agent-download-dock.is-alert .agent-download-gear::before {
  border-color: rgba(255, 49, 86, .34);
}
.agent-download-dock::after,
.agent-install a::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 50;
  width: min(330px, 72vw);
  padding: 10px 12px;
  border: 1px solid rgba(255, 49, 86, .5);
  border-radius: 8px;
  background: rgba(20, 8, 18, .96);
  color: #fff;
  font-size: .82rem;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34), 0 0 24px rgba(255, 49, 86, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
}
.agent-download-dock::after {
  left: 84px;
  top: 18px;
}
.agent-download-dock:hover::after,
.agent-download-dock:focus-visible::after,
.agent-install a:hover::after,
.agent-install a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.agent-download-gear {
  position: absolute;
  left: 14px;
  width: 54px;
  height: 54px;
  border: 3px solid rgba(112, 128, 180, .32);
  border-radius: 50%;
  opacity: .88;
  animation: dockGear 9s linear infinite;
}
.agent-download-gear::before,
.agent-download-gear::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 8px dashed rgba(112, 128, 180, .28);
  border-radius: 50%;
}
.agent-download-gear::after {
  inset: 7px;
  border-width: 2px;
  border-color: rgba(53, 232, 255, .22);
  border-style: solid;
}
.agent-download-core {
  position: absolute;
  left: 18px;
  top: 20px;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #79a7ff, #3c64f4 70%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08) inset,
    0 0 24px rgba(64, 128, 255, .48);
}
.agent-download-core svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.agent-download-nodes {
  position: absolute;
  right: 4px;
  top: 10px;
  bottom: 10px;
  width: 24px;
}
.agent-download-nodes::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -21px;
  width: 33px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(53, 232, 255, .5), rgba(79, 134, 255, .8));
  opacity: .5;
}
.agent-download-nodes i {
  position: absolute;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dock-color);
  box-shadow: 0 0 12px rgba(79, 134, 255, .82);
  animation: dockNodePulse 1.8s ease-in-out infinite;
}
.agent-download-nodes i:nth-child(1) { top: 0; animation-delay: 0s; }
.agent-download-nodes i:nth-child(2) { top: 50%; transform: translateY(-50%); animation-delay: .28s; }
.agent-download-nodes i:nth-child(3) { bottom: 0; animation-delay: .56s; }
@keyframes dockGear {
  to { transform: rotate(360deg); }
}
@keyframes dockNodePulse {
  50% { background: var(--cyan); box-shadow: 0 0 18px rgba(53, 232, 255, .88); }
}
@keyframes agentAlertFloat {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(0) scale(1.05); }
}
@media (max-width: 1280px) {
  .agent-download-dock {
    display: none !important;
  }
}
@media (max-width: 760px) {
  .agent-install {
    align-items: flex-start;
  }
}
html.scan-restored .hero,
html.scan-restored .scan-wrap,
html.scan-restored .home-trust-row {
  display: none !important;
}
html.scan-restored .wrapper {
  padding-top: 34px;
}
.agent-strip {
  display: none;
  margin: 0 0 30px;
  border: 1px solid rgba(0, 229, 255, .2);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .08), transparent 34%),
    radial-gradient(circle at 86% 0%, rgba(124, 58, 237, .16), transparent 34%),
    rgba(12, 17, 31, .78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24), inset 0 0 0 1px rgba(255, 255, 255, .025);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  padding: 18px;
}
html.scan-restored .agent-strip {
  display: block;
}
.agent-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.agent-strip-kicker {
  color: var(--cyan);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.agent-strip-title {
  margin-top: 4px;
  color: var(--text);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
}
.agent-status-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(255, 171, 0, .45);
}
.agent-status-dot.online {
  background: var(--green);
  box-shadow: 0 0 18px rgba(0, 230, 118, .55);
}
.agent-status-dot.limited {
  background: var(--amber);
}
.agent-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.agent-metric {
  --metric-color: var(--cyan);
  --metric-glow: rgba(0, 229, 255, .18);
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--metric-color) 28%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, var(--metric-glow), transparent 46%),
    rgba(6, 10, 20, .58);
  padding: 14px;
  overflow: hidden;
}
.agent-metric-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.agent-metric-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--metric-color) 46%, transparent);
  color: var(--metric-color);
  background: color-mix(in srgb, var(--metric-color) 11%, transparent);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: .74rem;
  font-weight: 900;
  box-shadow: 0 0 16px color-mix(in srgb, var(--metric-color) 14%, transparent);
}
.agent-metric-label {
  min-width: 0;
  color: color-mix(in srgb, var(--metric-color) 74%, var(--text));
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.agent-metric-value {
  min-width: 0;
  margin-top: 2px;
  color: #f8fafc;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: clamp(.98rem, 1.12vw, 1.28rem);
  font-weight: 900;
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.agent-metric-sub {
  min-width: 0;
  margin-top: 0;
  color: var(--text2);
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agent-metric-detail {
  min-width: 0;
  color: color-mix(in srgb, var(--metric-color) 78%, var(--text2));
  font-size: .72rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-tone-storage .agent-metric-sub {
  line-height: 1.15;
  white-space: normal;
}
.agent-install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .8rem;
}

.agent-install a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(0, 229, 255, .42);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(0, 229, 255, .08);
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
}
.agent-install a.alert {
  border-color: rgba(255, 49, 86, .72);
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 49, 86, .26), rgba(122, 18, 42, .34));
  box-shadow: 0 0 18px rgba(255, 49, 86, .18), inset 0 0 0 1px rgba(255, 255, 255, .05);
  animation: agentInstallBlink 1.45s ease-in-out infinite;
}
.agent-install a::after {
  left: 0;
  bottom: calc(100% + 9px);
}
@keyframes agentInstallBlink {
  0%, 100% { border-color: rgba(255, 49, 86, .52); box-shadow: 0 0 12px rgba(255, 49, 86, .14); }
  50% { border-color: rgba(255, 92, 118, .95); box-shadow: 0 0 28px rgba(255, 49, 86, .36); }
}
.metric-tone-cpu { --metric-color: var(--cyan); --metric-glow: rgba(0, 229, 255, .17); }
.metric-tone-gpu { --metric-color: var(--purple2); --metric-glow: rgba(167, 139, 250, .17); }
.metric-tone-proc { --metric-color: #4ade80; --metric-glow: rgba(74, 222, 128, .14); }
.metric-tone-ram { --metric-color: var(--green); --metric-glow: rgba(0, 230, 118, .16); }
.metric-tone-storage { --metric-color: var(--amber); --metric-glow: rgba(255, 171, 0, .16); }
.agent-metric.metric-warn { --metric-color: var(--amber); --metric-glow: rgba(255, 171, 0, .18); }
.agent-metric.metric-hot { --metric-color: var(--red); --metric-glow: rgba(255, 82, 82, .18); }
.hero {
  position: relative;
  width: 100vw;
  min-height: 580px;
  margin-left: calc(50% - 50vw);
  padding: 42px max(20px, calc((100vw - 1320px) / 2 + 20px)) 24px;
  overflow: hidden;
  text-align: center;
  background-size: cover;
  background-position: center -205px;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 16, .78) 0%, rgba(4, 8, 16, .22) 35%, rgba(4, 8, 16, .5) 72%, rgba(8, 11, 20, .98) 100%),
    radial-gradient(circle at center, rgba(0, 0, 0, .1), rgba(0, 0, 0, .34));
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: 26px;
  width: min(760px, 92%);
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 229, 255, .12), transparent 68%);
  pointer-events: none;
}
.hero-stage {
  position: relative;
  z-index: 3;
  max-width: 850px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 229, 255, .3);
  border-radius: 99px;
  padding: 6px 16px;
  background: rgba(0, 229, 255, .05);
  color: var(--cyan);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
.hero-title {
  margin-bottom: 14px;
  color: #fff;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 2.68vw, 2.55rem);
  font-style: italic;
  font-weight: 900;
  line-height: .92;
  letter-spacing: 0;
  text-shadow: 0 5px 24px rgba(0, 0, 0, .64);
}
.hero-title span {
  color: #66f02a;
  text-shadow: 0 0 18px rgba(102, 240, 42, .18), 0 5px 24px rgba(0, 0, 0, .64);
}
.hero-logo {
  display: block;
  width: min(225px, 68vw);
  height: auto;
  max-height: 128px;
  object-fit: contain;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--cyan) 22%, transparent));
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 20px;
  color: rgba(226, 232, 240, .9);
  font-size: .94rem;
  line-height: 1.55;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .62);
}
.hero-actions { max-width: 820px; margin: 0 auto 30px; }
.hero-pill-row { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.hero-pill-row span { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.hero-trust { max-width: 680px; margin: 0 auto; color: rgba(255, 255, 255, .88); font-size: 1rem; line-height: 1.6; }
.hero-trust strong { color: #fff; }
.home-feature-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 26px auto 0;
}
.home-feature-card {
  --feature-color: var(--cyan);
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--feature-color) 58%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--feature-color) 14%, transparent), transparent 36%),
    rgba(5, 11, 23, .72);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .26), inset 0 0 0 1px rgba(255, 255, 255, .025);
  text-align: left;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.feature-cyan { --feature-color: var(--cyan); }
.feature-purple { --feature-color: var(--purple2); }
.feature-green { --feature-color: var(--green); }
.feature-amber { --feature-color: var(--amber); }
.home-feature-icon {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.home-feature-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--feature-color);
  -webkit-mask: var(--feature-icon) center / contain no-repeat;
  mask: var(--feature-icon) center / contain no-repeat;
  filter:
    drop-shadow(0 0 8px color-mix(in srgb, var(--feature-color) 70%, transparent))
    drop-shadow(0 0 18px color-mix(in srgb, var(--feature-color) 35%, transparent));
}
.home-feature-icon::after {
  content: none;
}
.feature-cyan .home-feature-icon { --feature-icon: url("/static/icons/home/analiza.svg"); }
.feature-purple .home-feature-icon { --feature-icon: url("/static/icons/home/compara.svg"); }
.feature-green .home-feature-icon { --feature-icon: url("/static/icons/home/descubre.svg"); }
.feature-amber .home-feature-icon { --feature-icon: url("/static/icons/home/mejora.svg"); }
.home-feature-card h2 {
  color: var(--feature-color);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.home-feature-card p {
  margin-top: 4px;
  color: rgba(226, 232, 240, .78);
  font-size: .88rem;
  line-height: 1.35;
}

.scan-wrap { margin-bottom: 0; text-align: center; }
.scan-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(119, 190, 255, .66);
  border-radius: 7px;
  padding: 0 48px 0 42px;
  background:
    linear-gradient(180deg, rgba(78, 162, 255, .98), rgba(36, 113, 232, .98)),
    linear-gradient(135deg, var(--cyan), var(--cyan2));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08) inset,
    0 0 18px rgba(45, 132, 255, .46),
    0 10px 30px rgba(0, 58, 166, .42);
  color: var(--scan-btn-text);
  cursor: pointer;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .24);
  transition: transform .25s ease, opacity .2s, box-shadow .25s ease;
}
.scan-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  transition: transform .6s;
}
.scan-btn:hover::before { transform: translateX(100%); }
.scan-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1) inset,
    0 0 26px rgba(45, 132, 255, .62),
    0 14px 34px rgba(0, 58, 166, .5);
}
.scan-btn:disabled { opacity: .62; cursor: wait; transform: none; box-shadow: 0 0 10px rgba(0, 229, 255, .12); }
.scan-btn.small { min-height: 42px; padding: 0 18px; font-size: .85rem; }
.scan-btn.full { width: 100%; }
.scan-live {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 10%, transparent 11% 28%, #ffffff 29% 36%, transparent 37%),
    conic-gradient(from 0deg, #ff335f, #7d5cff, #00e5ff, #32ff73, #ff335f);
  border: 2px dotted rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 0 rgba(50, 255, 115, .48), 0 0 16px rgba(50, 255, 115, .92);
  animation: scanLiveSpin 1.35s linear infinite, scanLivePulse 1.35s ease-in-out infinite;
}
.scan-live::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: rgba(50, 255, 115, .86);
  box-shadow: 0 0 12px rgba(50, 255, 115, .92);
}
.scan-live::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(118, 212, 255, .74);
  opacity: .35;
  animation: scanLiveRing 1.05s ease-out infinite;
}
.scan-live.scanning { animation-duration: .62s, .62s; }
.scan-hint { margin-top: 10px; color: var(--text3); font-size: .76rem; }
.hero .scan-hint {
  color: rgba(226, 232, 240, .68);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .62);
}

@keyframes scanLivePulse {
  0%, 49% {
    box-shadow: 0 0 0 0 rgba(50, 255, 115, .58), 0 0 16px rgba(50, 255, 115, .92);
  }
  50%, 100% {
    box-shadow: 0 0 0 7px rgba(50, 255, 115, .08), 0 0 22px rgba(0, 229, 255, .86);
  }
}
@keyframes scanLiveSpin {
  to { transform: rotate(360deg); }
}
@keyframes scanLiveRing {
  from { transform: scale(.72); opacity: .45; }
  to { transform: scale(1.65); opacity: 0; }
}

.home-video-section {
  position: relative;
  z-index: 3;
  margin: 24px 0 12px;
  animation: slideUp .45s ease forwards;
}
.home-video-shell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: stretch;
  gap: 10px;
}
.home-video-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 5);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 2px 10px;
}
.home-video-track::-webkit-scrollbar { display: none; }
.home-video-card { scroll-snap-align: start; min-width: 0; }
.home-video-open {
  display: grid;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, .14);
  border-radius: 10px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, .78), rgba(8, 11, 20, .92)),
    rgba(17, 24, 39, .8);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-video-open:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, .42);
  box-shadow: 0 18px 60px rgba(0, 229, 255, .09);
}
.home-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(0, 229, 255, .16), transparent 36%),
    rgba(0, 0, 0, .28);
}
.home-video-thumb img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
  transition: transform .25s ease, opacity .25s ease;
}
.home-video-open:hover .home-video-thumb img {
  transform: scale(1.04);
  opacity: 1;
}
.home-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 10, 18, .62));
}
.home-video-fallback-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--text2);
  font-family: "Rajdhani", sans-serif;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}
.home-video-copy {
  display: grid;
  gap: 3px;
  padding: 12px;
}
.home-video-copy strong {
  overflow: hidden;
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-video-copy small {
  overflow: hidden;
  color: var(--text3);
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-video-nav {
  border: 1px solid rgba(0, 229, 255, .18);
  border-radius: 10px;
  background: rgba(17, 24, 39, .58);
  color: var(--cyan);
  cursor: pointer;
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.home-video-nav:hover {
  border-color: rgba(0, 229, 255, .45);
  background: rgba(0, 229, 255, .09);
  transform: translateY(-1px);
}
.home-video-loading {
  grid-column: 1 / -1;
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, .1);
  border-radius: 10px;
  color: var(--text3);
  background: rgba(17, 24, 39, .42);
}
.home-video-loading::after,
.trailers-loading::after {
  content: "";
  width: min(220px, 65%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: loading-scan 1.25s ease-in-out infinite;
}
@keyframes loading-scan {
  0%, 100% { opacity: .2; transform: scaleX(.45); }
  50% { opacity: .9; transform: scaleX(1); }
}

.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sec-head-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border2), transparent); }
.sec-head-text {
  color: var(--cyan);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sec-head-link {
  color: var(--cyan);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.sec-head-link::after {
  content: " >";
}
.home-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: nowrap;
  margin: 12px auto 44px;
  color: rgba(226, 232, 240, .62);
  font-size: 1rem;
  text-align: center;
}
.home-trust-row strong {
  display: inline-flex;
  align-items: baseline;
  font-style: italic;
  white-space: nowrap;
}
.trust-shield {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 19px;
  border: 1px solid rgba(48, 129, 244, .82);
  background: linear-gradient(180deg, rgba(48, 129, 244, .38), rgba(48, 129, 244, .08));
  clip-path: polygon(50% 0, 88% 13%, 80% 72%, 50% 100%, 20% 72%, 12% 13%);
  box-shadow: 0 0 12px rgba(48, 129, 244, .36);
}
.trust-shield::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 5px;
  height: 8px;
  border: solid rgba(226, 248, 255, .9);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.trust-count { color: rgba(226, 232, 240, .74); }
.trust-brand-pc { color: #00e5ff; }
.trust-brand-checker { color: #66f02a; }

.hw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.hw-card {
  --hw-color: var(--cyan);
  --hw-glow: rgba(0, 229, 255, .22);
  --hw-bar: 50%;
  position: relative;
  min-height: 244px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hw-color) 62%, transparent);
  padding: 22px 18px 46px;
  background:
    radial-gradient(circle at 20% 18%, var(--hw-glow), transparent 34%),
    linear-gradient(145deg, rgba(8, 20, 25, .94), rgba(11, 15, 27, .96) 62%, rgba(2, 8, 13, .98));
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .025), 0 18px 44px rgba(0, 0, 0, .22);
  clip-path: polygon(7% 0, 96% 0, 100% 9%, 100% 72%, 93% 82%, 93% 94%, 88% 100%, 0 100%, 0 41%, 3% 36%, 3% 9%);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.hw-card:hover {
  transform: translateY(-4px);
  filter: saturate(1.12);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hw-color) 44%, transparent), 0 22px 52px rgba(0, 0, 0, .34), 0 0 34px color-mix(in srgb, var(--hw-color) 20%, transparent);
}
.hw-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 8%, var(--hw-color) 8% 28%, transparent 28% 100%) top left / 100% 2px no-repeat,
    radial-gradient(circle at 92% 86%, color-mix(in srgb, var(--hw-color) 22%, transparent), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 34%);
  opacity: .8;
}
.hw-card::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 54px;
  height: 54px;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 42%, color-mix(in srgb, var(--hw-color) 42%, transparent) 43% 48%, transparent 49%) 0 0 / 100% 100% no-repeat,
    linear-gradient(90deg, transparent 0 32%, color-mix(in srgb, var(--hw-color) 62%, transparent) 32% 100%) bottom right / 46px 3px no-repeat,
    linear-gradient(180deg, transparent 0 22%, color-mix(in srgb, var(--hw-color) 62%, transparent) 22% 100%) bottom right / 3px 46px no-repeat;
  opacity: .7;
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%, 0 82%, 78% 82%, 78% 35%, 35% 35%);
}
.hw-card-corner {
  position: absolute;
  top: 0;
  left: 22px;
  width: 58px;
  height: 2px;
  background: var(--hw-color);
  opacity: .9;
}
.hw-card-index {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  color: var(--hw-color);
  font-family: "Rajdhani", sans-serif;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.hw-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  margin: 4px 0 20px;
  padding-left: 10px;
}
.hw-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--hw-color) 26%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--hw-color) 18%, transparent);
  color: var(--hw-color);
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--hw-color) 14%, transparent), 0 0 22px color-mix(in srgb, var(--hw-color) 10%, transparent);
}
.hw-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hw-icon img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--hw-color) 34%, transparent));
}
.hw-card-pc .hw-icon img {
  width: 34px;
  height: 34px;
}
.hw-heading { min-width: 0; }
.hw-label {
  color: var(--hw-color);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}
.hw-role {
  margin-top: 8px;
  color: #a9b4c7;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hw-value {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  min-height: 56px;
  overflow: hidden;
  color: #f8fbff;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.hw-sub {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  min-height: 20px;
  color: #c5cee0;
  font-size: .86rem;
  text-align: center;
}
.hw-score-pill {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 8px auto 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--hw-color);
  font-family: "Rajdhani", sans-serif;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 12px color-mix(in srgb, var(--hw-color) 35%, transparent);
  text-transform: uppercase;
}
.hw-bar {
  position: absolute;
  left: 34px;
  right: 56px;
  bottom: 28px;
  z-index: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(78, 92, 119, .24);
}
.hw-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hw-color) 92%, #fff 8%), var(--hw-color));
  box-shadow: 0 0 18px color-mix(in srgb, var(--hw-color) 40%, transparent);
  transition: width 1.1s cubic-bezier(.22, 1, .36, 1);
}
.hw-rail {
  position: absolute;
  left: 34px;
  bottom: 8px;
  z-index: 1;
  width: calc(var(--hw-bar) * .78);
  max-width: calc(100% - 118px);
  height: 12px;
  background: repeating-linear-gradient(135deg, var(--hw-color) 0 9px, transparent 9px 14px);
  opacity: .9;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--hw-color) 34%, transparent));
  clip-path: polygon(6px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.score-panel {
  --score: 0;
  --score-color: var(--cyan);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
  border: 1px solid color-mix(in srgb, var(--score-color) 34%, rgba(0, 229, 255, .12));
  padding: 26px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 44%, color-mix(in srgb, var(--score-color) 18%, transparent), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(124, 58, 237, .16), transparent 30%),
    linear-gradient(145deg, rgba(13, 17, 32, .96), rgba(8, 11, 20, .98));
  box-shadow: inset 0 0 36px rgba(255, 255, 255, .025), 0 20px 56px rgba(0, 0, 0, .26);
  clip-path: polygon(2.5% 0, 98% 0, 100% 15%, 100% 88%, 97.5% 100%, 0 100%, 0 13%);
}
.score-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--score-color) 0 18%, transparent 18% 100%) top left / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 0 64%, color-mix(in srgb, var(--score-color) 42%, transparent) 64% 78%, transparent 78%) bottom left / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 42px);
  opacity: .72;
}
.score-panel::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 72px;
  height: 18px;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--score-color) 72%, transparent) 0 8px, transparent 8px 13px);
  opacity: .55;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.score-left {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 8px 24px;
  align-items: center;
}
.score-title {
  grid-column: 1 / -1;
  color: #8794ad;
  font-family: "Rajdhani", sans-serif;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.score-big {
  position: relative;
  display: grid;
  grid-template-columns: 58px 40px;
  align-items: center;
  justify-content: center;
  justify-items: center;
  column-gap: 3px;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  color: var(--score-color);
  font-family: "Rajdhani", sans-serif;
  font-size: 2.05rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(circle at center, rgba(8, 11, 20, .96) 0 59%, transparent 60%),
    conic-gradient(var(--score-color) calc(var(--score) * 1%), rgba(78, 92, 119, .23) 0);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--score-color) 24%, transparent));
}
.score-big::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid color-mix(in srgb, var(--score-color) 26%, transparent);
  border-radius: 50%;
}
.score-big span:first-child {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: right;
  letter-spacing: -.035em;
  transform: translateX(0);
}
.score-big span:last-child {
  position: relative;
  z-index: 1;
  justify-self: start;
  color: #75829a;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: 0;
  transform: translate(2px, 9px);
  white-space: nowrap;
}
.image-viewer-close.is-navigating {
  pointer-events: none;
  opacity: .72;
}
.score-desc {
  align-self: end;
  color: var(--text2);
  font-size: .9rem;
  line-height: 1.55;
}
.score-track-wrap {
  grid-column: 2;
  align-self: start;
  margin-top: 4px;
}
.score-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 999px;
  background: rgba(78, 92, 119, .20);
}
.score-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 9%, rgba(255, 255, 255, .08) 9% 9.5%, transparent 9.5% 10%);
  opacity: .5;
}
.score-fill {
  position: relative;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--score-color));
  box-shadow: 0 0 22px color-mix(in srgb, var(--score-color) 40%, transparent);
  transition: width 1.1s cubic-bezier(.22, 1, .36, 1);
}
.score-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--score-color);
}
.score-labels { display: flex; justify-content: space-between; margin-top: 8px; }
.score-label-tick { color: #65718a; font-size: .66rem; }
.score-right { position: relative; z-index: 1; }
.score-tier-badge {
  display: grid;
  place-items: center;
  min-height: 138px;
  border: 1px solid color-mix(in srgb, var(--score-color) 38%, transparent);
  clip-path: polygon(8% 0, 100% 0, 100% 82%, 92% 100%, 0 100%, 0 18%);
  padding: 18px 20px;
  background:
    radial-gradient(circle at 50% 15%, color-mix(in srgb, var(--score-color) 16%, transparent), transparent 54%),
    rgba(17, 24, 39, .72);
  text-align: center;
}
.tier-icon {
  color: var(--score-color);
  font-family: "Rajdhani", sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 22px color-mix(in srgb, var(--score-color) 34%, transparent);
}
.tier-name {
  color: var(--score-color);
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tier-sub { color: #b9c3d5; font-size: .74rem; }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-chip {
  --stat-color: var(--cyan);
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--stat-color) 28%, var(--border));
  border-radius: 8px;
  padding: 16px 20px;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--stat-color) 16%, transparent), transparent 42%),
    linear-gradient(135deg, rgba(17, 24, 39, .88), rgba(8, 11, 20, .94));
  color: var(--text2);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, .025), 0 20px 48px rgba(0, 0, 0, .2);
}
.stat-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--stat-color) 38%, transparent), transparent 28%) top left / 100% 1px no-repeat;
}
.stat-chip.compat { --stat-color: var(--green); }
.stat-chip.minimum { --stat-color: var(--amber); }
.stat-chip.blocked { --stat-color: var(--red); }
.stat-chip.loaded { --stat-color: #3f82ff; }
.stat-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--stat-color) 48%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--stat-color) 12%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--stat-color) 18%, transparent);
}
.stat-icon::before,
.stat-icon::after {
  content: "";
  position: absolute;
  display: block;
}
.stat-icon.check::before { width: 14px; height: 8px; border-left: 2px solid var(--stat-color); border-bottom: 2px solid var(--stat-color); transform: rotate(-45deg) translate(1px, -1px); }
.stat-icon.warn::before { width: 4px; height: 16px; border-radius: 99px; background: var(--stat-color); }
.stat-icon.warn::after { width: 4px; height: 4px; bottom: 9px; border-radius: 50%; background: var(--stat-color); }
.stat-icon.x::before,
.stat-icon.x::after { width: 18px; height: 2px; border-radius: 99px; background: var(--stat-color); }
.stat-icon.x::before { transform: rotate(45deg); }
.stat-icon.x::after { transform: rotate(-45deg); }
.stat-icon.down::before { width: 2px; height: 18px; border-radius: 99px; background: var(--stat-color); transform: translateY(-3px); }
.stat-icon.down::after { width: 12px; height: 12px; border-right: 2px solid var(--stat-color); border-bottom: 2px solid var(--stat-color); transform: rotate(45deg) translate(3px, 3px); }
.stat-copy { display: grid; gap: 2px; }
.chip-num {
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 900;
  line-height: .9;
}
.chip-label { color: var(--text2); font-size: .96rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(95, 139, 255, .22);
  border-radius: 8px;
  padding: 10px 22px;
  background: rgba(12, 18, 32, .72);
  color: var(--text2);
  cursor: pointer;
  font-family: "Rajdhani", sans-serif;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .05em;
  transition: border-color .18s, background .18s, box-shadow .18s, color .18s;
}
.tab > span {
  position: relative;
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}
.tab > span::before,
.tab > span::after {
  content: "";
  position: absolute;
  display: block;
}
.tab:first-child > span::before {
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  box-shadow: 11px 0 0 -2px currentColor, 0 11px 0 -2px currentColor, 11px 11px 0 -2px currentColor;
  color: #4f88ff;
}
.tab:last-child > span::before {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: #a8b4c9;
}
.tab:last-child > span::after {
  width: 8px;
  height: 2px;
  background: #a8b4c9;
  transform: translate(7px, 7px) rotate(45deg);
}
.tab:hover { border-color: rgba(78, 133, 255, .46); color: var(--text); }
.tab.active { border-color: rgba(78, 133, 255, .72); background: linear-gradient(135deg, rgba(27, 81, 255, .38), rgba(18, 28, 55, .82)); color: #83a9ff; box-shadow: 0 0 28px rgba(63, 130, 255, .16); }
.library-source-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.source-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(82, 104, 145, .28);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(8, 13, 24, .68);
  color: var(--text2);
  cursor: pointer;
  font-family: "Rajdhani", sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.source-filter-btn img { width: 17px; height: 17px; object-fit: contain; }
.source-filter-btn > span {
  min-width: 24px;
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(79, 136, 255, .13);
  color: #8cb0ff;
  font-size: .68rem;
  text-align: center;
}
.source-filter-btn:hover,
.source-filter-btn.active {
  border-color: rgba(78, 133, 255, .66);
  background: linear-gradient(135deg, rgba(27, 81, 255, .28), rgba(18, 28, 55, .82));
  color: #fff;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.filter-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(50, 86, 156, .16);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 18%, rgba(63, 130, 255, .12), transparent 32%),
    linear-gradient(135deg, rgba(10, 18, 34, .82), rgba(7, 12, 22, .64));
}
.filter-btn {
  --filter-color: #4f88ff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid rgba(82, 104, 145, .28);
  border-radius: 8px;
  padding: 8px 14px;
  background: rgba(8, 13, 24, .68);
  color: var(--text2);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  transition: border-color .15s, background .15s, color .15s, transform .15s, box-shadow .15s;
}
.filter-btn:hover { border-color: color-mix(in srgb, var(--filter-color) 50%, transparent); color: var(--text); transform: translateY(-1px); }
.filter-btn.active { border-color: color-mix(in srgb, var(--filter-color) 76%, transparent); background: color-mix(in srgb, var(--filter-color) 18%, rgba(20, 28, 48, .74)); color: #fff; box-shadow: 0 0 22px color-mix(in srgb, var(--filter-color) 15%, transparent); }
.filter-all, .filter-btn.active.filter-all { --filter-color: #4f88ff; }
.filter-favorites { --filter-color: #4f88ff; color: var(--text2); }
.filter-favorites[hidden] { display: none; }
.filter-favorites::after {
  content: attr(data-count);
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 210, 74, .18);
  color: #ffd24a;
  font-size: .68rem;
  line-height: 1;
}
.filter-compatible,
.filter-min,
.filter-no,
.filter-adult,
.filter-source,
.filter-free { --filter-color: #4f88ff; color: var(--text2); }
.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  line-height: 1;
}
.filter-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--filter-color);
  transform: translateY(0);
}
.filter-icon-img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: .9;
  filter: invert(62%) sepia(54%) saturate(2147%) hue-rotate(199deg) brightness(103%) contrast(101%) drop-shadow(0 0 7px rgba(79, 136, 255, .22));
}
.filter-btn.active .filter-icon-img,
.filter-btn:hover .filter-icon-img {
  opacity: 1;
  filter: invert(72%) sepia(72%) saturate(1291%) hue-rotate(189deg) brightness(108%) contrast(104%) drop-shadow(0 0 9px rgba(79, 136, 255, .36));
}
.filter-icon::before,
.filter-icon::after {
  content: "";
  position: absolute;
  display: block;
}
.icon-grid::before { width: 4px; height: 4px; border: 1px solid currentColor; box-shadow: 8px 0 0 -1px currentColor, 0 8px 0 -1px currentColor, 8px 8px 0 -1px currentColor; }
.icon-favorite::before { inset: 1px; background: currentColor; -webkit-mask: url("/static/favorite.svg") center / contain no-repeat; mask: url("/static/favorite.svg") center / contain no-repeat; }
.icon-dot::before { inset: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.icon-warn::before { inset: 1px; border: 1px solid currentColor; border-radius: 50%; }
.icon-warn::after { left: 7px; top: 4px; width: 2px; height: 7px; border-radius: 99px; background: currentColor; box-shadow: 0 9px 0 currentColor; }
.icon-x::before, .icon-x::after { left: 2px; top: 7px; width: 13px; height: 2px; border-radius: 99px; background: currentColor; }
.icon-x::before { transform: rotate(45deg); }
.icon-x::after { transform: rotate(-45deg); }
.icon-flame::before { inset: 2px 4px 1px; border: 1px solid currentColor; border-radius: 60% 45% 60% 45%; transform: rotate(35deg); }
.icon-spark::before { left: 7px; top: 1px; width: 2px; height: 14px; background: currentColor; }
.icon-spark::after { left: 1px; top: 7px; width: 14px; height: 2px; background: currentColor; }
.icon-leaf::before { inset: 2px; border: 1px solid currentColor; border-radius: 80% 0 80% 0; transform: rotate(-20deg); }
.icon-gift::before { left: 2px; top: 6px; width: 12px; height: 8px; border: 1px solid currentColor; }
.icon-gift::after { left: 7px; top: 3px; width: 1px; height: 12px; background: currentColor; box-shadow: -4px 3px 0 0 currentColor, 4px 3px 0 0 currentColor; }
.icon-lock::before { left: 3px; top: 7px; width: 10px; height: 7px; border: 1px solid currentColor; border-radius: 2px; }
.icon-lock::after { left: 5px; top: 2px; width: 6px; height: 7px; border: 1px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; }
.icon-adult::before { inset: 1px; border: 1px solid currentColor; border-radius: 50%; }
.icon-adult::after { left: 7px; top: 4px; width: 2px; height: 8px; background: currentColor; box-shadow: 0 10px 0 currentColor; }
.icon-target::before, .icon-crosshair::before { inset: 2px; border: 1px solid currentColor; border-radius: 50%; }
.icon-target::after, .icon-crosshair::after { left: 7px; top: 0; width: 2px; height: 16px; background: currentColor; box-shadow: -7px 7px 0 -1px currentColor, 7px 7px 0 -1px currentColor; opacity: .85; }
.icon-sword::before { left: 7px; top: 1px; width: 2px; height: 13px; background: currentColor; transform: rotate(38deg); }
.icon-sword::after { left: 3px; top: 11px; width: 10px; height: 2px; background: currentColor; transform: rotate(38deg); }
.icon-crown::before { left: 2px; top: 5px; width: 12px; height: 8px; border: 1px solid currentColor; clip-path: polygon(0 100%, 0 35%, 28% 62%, 50% 0, 72% 62%, 100% 35%, 100% 100%); }
.icon-wheel::before, .icon-ball::before, .icon-source::before { inset: 2px; border: 1px solid currentColor; border-radius: 50%; }
.icon-wheel::after, .icon-ball::after { left: 7px; top: 2px; width: 1px; height: 12px; background: currentColor; box-shadow: -5px 5px 0 -1px currentColor, 5px 5px 0 -1px currentColor; }
.icon-flag::before { left: 4px; top: 2px; width: 1px; height: 13px; background: currentColor; }
.icon-flag::after { left: 5px; top: 2px; width: 8px; height: 6px; border: 1px solid currentColor; border-left: 0; }
.icon-knight::before { left: 4px; top: 2px; width: 8px; height: 12px; border: 1px solid currentColor; border-radius: 60% 40% 25% 25%; transform: skew(-8deg); }
.icon-ghost::before { left: 3px; top: 2px; width: 10px; height: 12px; border: 1px solid currentColor; border-radius: 8px 8px 3px 3px; }
.icon-indie::before { inset: 3px; border: 1px solid currentColor; transform: rotate(45deg); }
.filter-search-wrap {
  display: flex;
  width: min(540px, 100%);
  min-height: 46px;
  border: 1px solid rgba(82, 104, 145, .34);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(12, 18, 32, .82);
  transition: border-color .18s, box-shadow .18s;
}
.filter-search-wrap:focus-within {
  border-color: var(--border3);
  box-shadow: 0 0 14px rgba(0, 229, 255, .07);
}
.filter-search {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 8px 14px;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: .82rem;
}
.filter-submit {
  width: 42px;
  flex: none;
  border: 0;
  border-left: 1px solid var(--border);
  background: rgba(0, 229, 255, .05);
  color: var(--cyan);
  cursor: pointer;
  font-size: 1.2rem;
  transition: background .16s, color .16s;
}
.filter-submit:hover,
.filter-submit:focus-visible {
  background: rgba(0, 229, 255, .14);
  color: #fff;
  outline: none;
}
.library-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; color: var(--text3); font-size: .82rem; }
.library-pager { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pager-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 294px;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
}
.pager-summary #libraryStatus {
  color: var(--text3);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.pager-summary #pageStatus {
  color: var(--text2);
  font-family: "Rajdhani", sans-serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}
.pager-summary small {
  color: var(--text3);
  font-family: "Rajdhani", sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.load-more-btn, .pager-btn, .detail-link, .steam-link, .pagination a, .search-btn, .site-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  padding: 0 14px;
  background: rgba(0, 229, 255, .08);
  color: var(--cyan);
  cursor: pointer;
  font-weight: 800;
}
.pager-btn:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.games-grid, .grid-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.game-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(70px, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-height: 154px;
  overflow: hidden;
  border: 1px solid rgba(78, 116, 179, .34);
  border-radius: 8px;
  padding: 8px;
  background:
    radial-gradient(circle at 18% 8%, rgba(56, 126, 255, .14), transparent 34%),
    linear-gradient(145deg, rgba(12, 21, 40, .95), rgba(6, 11, 21, .97));
  box-shadow: inset 0 0 26px rgba(255, 255, 255, .018), 0 18px 44px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(63, 130, 255, .44), transparent 38%) top left / 100% 1px no-repeat,
    radial-gradient(circle at 22% 0, rgba(0, 229, 255, .1), transparent 32%);
  opacity: .75;
}
.game-card.g-yes::before, .game-card.compat-yes::before { box-shadow: inset 0 -1px 0 rgba(67, 245, 138, .16); }
.game-card.g-mid::before, .game-card.compat-mid::before { box-shadow: inset 0 -1px 0 rgba(255, 171, 0, .16); }
.game-card.g-no::before, .game-card.compat-no::before { box-shadow: inset 0 -1px 0 rgba(255, 82, 82, .16); }
.game-card:hover {
  border-color: rgba(63, 130, 255, .7);
  transform: translateY(-2px);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, .025), 0 22px 52px rgba(0, 0, 0, .28), 0 0 28px rgba(63, 130, 255, .1);
}
.game-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.game-bookmark {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 20px;
  height: 26px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.game-bookmark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(189, 209, 244, .9);
  -webkit-mask: url("/static/favorite.svg") center / contain no-repeat;
  mask: url("/static/favorite.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .72)) drop-shadow(0 0 8px rgba(63, 130, 255, .16));
  transition: background .16s ease, filter .16s ease, transform .16s ease;
}
.game-bookmark:hover::before,
.game-bookmark.active::before {
  background: #ffd24a;
  filter: drop-shadow(0 0 10px rgba(255, 210, 74, .46));
  transform: translateY(-1px);
}
.game-bookmark.active::before { background: #ffca2f; }
.game-thumb, .thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 5;
  min-height: 70px;
  max-height: 88px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(8, 11, 20, .92);
  font-size: 1.35rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .34), 0 0 18px rgba(63, 130, 255, .08);
}
.game-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 38%), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.game-thumb-bg {
  position: absolute;
  inset: -12px;
  background-position: center;
  background-size: cover;
  filter: blur(12px) saturate(1.08);
  opacity: .48;
  transform: scale(1.08);
}
.game-thumb img, .thumb img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  filter: saturate(1.04) contrast(1.03);
}
.fallback-emoji, .emoji { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.game-info, .game-copy { min-width: 0; padding: 0 5px; }
.game-card-side { display: none; }
.game-name, .game-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: .95rem;
  font-weight: 900;
  line-height: 1.05;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.game-meta, .meta-line { margin-top: 5px; color: var(--text3); font-size: .74rem; }
.game-meta { color: #4f88ff; font-weight: 800; }
.game-req, .game-copy p {
  overflow: hidden;
  margin-top: 4px;
  color: var(--text2);
  font-size: .68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-card .game-req { display: none; }
.game-card-footer {
  display: grid;
  grid-template-columns: auto minmax(86px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 5px 1px;
}
.game-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  justify-self: end;
  min-width: 94px;
  min-height: 30px;
  border: 1px solid rgba(63, 130, 255, .56);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(9, 20, 43, .76);
  color: #4f88ff;
  font-family: "Rajdhani", sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  box-shadow: inset 0 0 18px rgba(63, 130, 255, .08);
}
.game-card:hover .game-action {
  border-color: rgba(63, 130, 255, .9);
  color: #77a5ff;
}
.game-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  color: #aeb9ce;
  font-size: .76rem;
  line-height: 1.1;
  min-width: 0;
}
.game-source-line {
  display: flex;
  align-items: center;
  min-height: 20px;
  margin-top: 5px;
}
.game-source-tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(199, 213, 224, .14));
}
.game-card-side .game-source-tag { margin-left: 0; }
.game-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 86px;
  margin-top: 0;
  border-radius: 6px;
  padding: 6px 9px;
  font-family: "Rajdhani", sans-serif;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .05em;
  white-space: nowrap;
}
.badge-yes, .game-badge.yes { border: 1px solid rgba(0, 230, 118, .44); background: rgba(0, 230, 118, .16); color: var(--green); box-shadow: 0 0 18px rgba(67, 245, 138, .13); }
.badge-mid, .game-badge.mid, .game-badge.pending { border: 1px solid rgba(255, 171, 0, .25); background: rgba(255, 171, 0, .1); color: var(--amber); }
.badge-no, .game-badge.no { border: 1px solid rgba(255, 82, 82, .25); background: rgba(255, 82, 82, .1); color: var(--red); }
.game-load-more-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 8px 0 2px;
}
.game-load-more {
  min-width: min(300px, 100%);
  gap: 10px;
  border-color: rgba(63, 130, 255, .48);
  background: rgba(10, 23, 51, .76);
  color: #4f88ff;
}
.empty-grid, .empty { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: var(--r); padding: 34px; background: var(--bg2); color: var(--text3); text-align: center; }

.ai-key-note { display: flex; gap: 10px; margin-bottom: 16px; border: 1px solid rgba(124, 58, 237, .25); border-radius: var(--r2); padding: 12px 16px; background: rgba(124, 58, 237, .08); color: #c4b5fd; font-size: .82rem; line-height: 1.6; }
.search-row { display: flex; gap: 8px; margin-bottom: 16px; }
.search-input { flex: 1; border: 1px solid var(--border2); border-radius: var(--r2); padding: 12px 18px; outline: none; background: var(--bg2); color: var(--text); }
.search-input:focus { border-color: var(--border3); box-shadow: 0 0 0 3px rgba(0, 229, 255, .08); }
.search-btn { min-height: auto; border: 0; padding: 0 24px; background: linear-gradient(135deg, var(--purple), #6d28d9); color: #fff; box-shadow: 0 0 20px rgba(124, 58, 237, .35); }
.ai-result-box { min-height: 160px; border: 1px solid var(--border); border-radius: var(--r); padding: 20px 22px; background: var(--bg2); }
.ai-placeholder { display: flex; align-items: center; justify-content: center; min-height: 120px; color: var(--text3); text-align: center; }
.ai-text { color: var(--text); font-size: .88rem; line-height: 1.75; white-space: pre-wrap; }

.detail-overlay { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-start; justify-content: center; padding: 22px; background: rgba(3, 7, 18, .78); backdrop-filter: blur(14px); opacity: 0; transition: opacity .2s ease; overflow-y: auto; }
.detail-overlay.open { display: flex; opacity: 1; }
.detail-dialog-shell { position: relative; width: min(1040px, calc(100% - 58px)); min-height: calc(100vh - 44px); transform: translateY(14px) scale(.98); transition: transform .2s ease; }
.detail-overlay.open .detail-dialog-shell { transform: translateY(0) scale(1); }
.detail-modal { position: relative; width: 100%; min-height: calc(100vh - 44px); overflow: hidden; border: 1px solid rgba(0, 229, 255, .25); border-radius: 14px; background: linear-gradient(145deg, rgba(13, 17, 32, .98), rgba(8, 11, 20, .98)); box-shadow: 0 28px 90px rgba(0, 0, 0, .55), 0 0 50px rgba(124, 58, 237, .14); }
.detail-close { position: sticky; top: 12px; order: 2; flex: 0 0 42px; align-self: flex-start; display: grid; place-items: center; z-index: 6; width: 42px; height: 42px; margin-left: 12px; border: 0; border-radius: 50%; padding: 0; background: rgba(8, 11, 20, .86); color: var(--text); cursor: pointer; line-height: 1; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.detail-close img { display: block; width: 40px; height: 40px; transition: filter .18s ease, transform .18s ease; }
.detail-close:hover { color: var(--cyan); }
.detail-close:hover img { filter: brightness(0) saturate(100%) invert(77%) sepia(81%) saturate(1649%) hue-rotate(138deg) brightness(104%); }
.detail-close:hover img { transform: scale(1.05); }
.detail-route-loading .wrapper { visibility: hidden; }
.detail-route-placeholder { min-height: calc(100vh - 46px); display: grid; place-items: center; padding: 32px; color: var(--cyan); font-family: "Rajdhani", sans-serif; font-size: 1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-hero { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; gap: 24px; min-height: 270px; border-bottom: 1px solid var(--border); padding: 24px; background: radial-gradient(circle at 30% 0%, rgba(0, 229, 255, .16), transparent 46%), radial-gradient(circle at 90% 15%, rgba(124, 58, 237, .16), transparent 42%); }
.detail-cover { position: relative; display: flex; align-items: center; justify-content: center; min-height: 240px; overflow: hidden; border: 1px solid var(--border2); border-radius: 12px; background: linear-gradient(135deg, var(--bg3), var(--bg)); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emoji-fallback { font-size: 5rem; filter: drop-shadow(0 0 20px rgba(0, 229, 255, .25)); }
.detail-main { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; padding-right: 34px; }
.detail-title { color: #fff; font-family: "Rajdhani", sans-serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; line-height: .95; letter-spacing: 0; }
.detail-subline { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text2); font-size: .88rem; }
.detail-pill, .detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--text2);
  cursor: pointer;
  font-size: .76rem;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.detail-tag:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, .09);
  color: var(--cyan);
  transform: translateY(-1px);
}
.detail-tag:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(0, 229, 255, .06);
  color: var(--cyan);
  font-family: "Rajdhani", sans-serif;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.detail-action.editorial-jump {
  background: rgba(53, 232, 255, .08);
  color: var(--cyan);
}

.preview-banner {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto 26px;
  border: 1px solid rgba(53, 232, 255, .28);
  border-radius: 12px;
  background: rgba(7, 11, 20, .74);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.preview-banner strong {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
}

.preview-banner span {
  flex: 1;
}

.preview-banner a {
  color: var(--green);
  text-decoration: none;
  font-weight: 800;
}

.editorial-compare-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.editorial-compare-meta span {
  border: 1px solid rgba(53, 232, 255, .18);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(53, 232, 255, .05);
  font-size: 12px;
}

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

.editorial-compare-grid article {
  border: 1px solid rgba(159, 176, 200, .12);
  border-radius: 12px;
  background: rgba(7, 11, 20, .4);
  padding: 14px;
}

.editorial-compare-grid h4 {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.editorial-compare-grid p {
  margin: 0 0 16px;
  color: #dbeafe;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .preview-banner,
  .editorial-compare-grid {
    grid-template-columns: 1fr;
  }

  .preview-banner {
    display: grid;
  }
}
.detail-action.primary {
  border-color: rgba(0, 229, 255, .55);
  background: linear-gradient(135deg, rgba(0, 229, 255, .22), rgba(0, 230, 118, .12));
  box-shadow: 0 0 22px rgba(0, 229, 255, .12);
}
.detail-action:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, .12);
}
.detail-desc { max-width: 66ch; color: var(--text); font-size: .94rem; line-height: 1.65; }
.detail-long { max-width: none; color: var(--text2); }
.detail-legal { max-width: none; color: var(--text3); font-size: .78rem; }
.detail-body { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; padding: 20px 24px 26px; }
.detail-card, .req-card, .compat-box, .facts, .checker-panel { border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: rgba(17, 24, 39, .72); }
.detail-card h3, .req-card h3, .compat-box h2 { margin-bottom: 12px; color: var(--cyan); font-family: "Rajdhani", sans-serif; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.detail-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spec-item { min-width: 0; border: 1px solid rgba(255, 255, 255, .06); border-radius: 8px; padding: 10px; background: rgba(0, 0, 0, .16); }
.spec-label { margin-bottom: 4px; color: var(--text3); font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; }
.spec-value { color: var(--text); font-size: .82rem; line-height: 1.35; word-break: break-word; }
.muted { color: var(--text3); font-size: .84rem; }
.detail-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-chip {
  border: 1px solid rgba(0, 229, 255, .16);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0, 229, 255, .055);
  color: var(--text2);
  font-size: .76rem;
}
.detail-media-group + .detail-media-group { margin-top: 14px; }
.detail-media-group h4 {
  margin: 0 0 8px;
  color: var(--text3);
  font-family: "Rajdhani", sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.detail-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
  aspect-ratio: 16 / 9;
  padding: 0;
  cursor: zoom-in;
}
.detail-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.gallery-thumb:hover img { transform: scale(1.04); filter: saturate(1.12); }
.gallery-video { cursor: pointer; }
.gallery-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, .05), rgba(0, 0, 0, .42));
  pointer-events: none;
}
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 50%;
  padding: 0;
  background: rgba(5, 10, 18, .58);
  box-shadow: 0 0 26px rgba(0, 229, 255, .18);
}
.play-badge::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid rgba(255, 255, 255, .95);
}
.video-empty {
  display: grid;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 12px;
  color: var(--text2);
  font-size: .86rem;
  text-align: center;
}
.gallery-thumb img {
  position: relative;
  z-index: 1;
}
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 7, 18, .9);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity .16s ease;
}
.image-viewer.open { display: flex; opacity: 1; }
.image-viewer-title {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 3;
  max-width: min(820px, calc(100vw - 150px));
  transform: translateX(-50%) translateY(-8px);
  border: 1px solid rgba(0, 229, 255, .2);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(8, 11, 20, .78);
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .04em;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 0 16px rgba(0, 229, 255, .2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: auto;
  transition: opacity .16s ease, transform .16s ease;
  user-select: text;
}
.image-viewer:hover .image-viewer-title {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.image-viewer:not(.open) .image-viewer-title,
.image-viewer:not(.open) .image-viewer-loop,
.image-viewer:not(.open) .image-viewer-game-link,
.image-viewer:not(.open) .image-viewer-quality,
.image-viewer:not(.open) .image-viewer-count {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.image-viewer-media {
  display: grid;
  place-items: center;
  max-width: min(1180px, 96vw);
  max-height: 86vh;
}
.image-viewer img,
.image-viewer-video,
.video-fallback {
  display: block;
  max-width: min(1180px, 96vw);
  max-height: 86vh;
  border: 1px solid rgba(0, 229, 255, .25);
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .65), 0 0 38px rgba(0, 229, 255, .12);
}
.image-viewer-video {
  width: min(1180px, 96vw);
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-fallback {
  width: min(720px, 92vw);
  padding: 18px;
  background: rgba(17, 24, 39, .92);
  color: var(--text2);
  text-align: center;
}
.video-fallback img {
  width: 100%;
  max-height: 340px;
  margin-bottom: 14px;
  box-shadow: none;
}
.video-fallback h3 { color: var(--text); margin-bottom: 8px; }
.video-fallback p { margin: 0 auto 14px; max-width: 54ch; line-height: 1.6; }
.video-retrying {
  display: grid;
  place-items: center;
  min-height: min(520px, 62vh);
}
.video-retrying p {
  color: var(--cyan);
  font-weight: 800;
}
.image-viewer-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}
.image-viewer-close img { display: block; width: 46px; height: 46px; transition: filter .18s ease, transform .18s ease; }
.image-viewer-close:hover { color: var(--cyan); }
.image-viewer-close:hover img { filter: brightness(0) saturate(100%) invert(77%) sepia(81%) saturate(1649%) hue-rotate(138deg) brightness(104%); }
.image-viewer-close:hover img { transform: scale(1.05); }
.image-viewer-nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  display: none;
  width: 72px;
  height: 92px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3f82ff;
  cursor: pointer;
  font-family: "Rajdhani", sans-serif;
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 18px rgba(63, 130, 255, .38), 0 4px 18px rgba(0, 0, 0, .7);
  transition: transform .15s ease, color .15s ease, opacity .15s ease;
}
.image-viewer-prev { left: max(18px, calc((100vw - 1280px) / 2 - 44px)); }
.image-viewer-next { right: max(18px, calc((100vw - 1280px) / 2 - 44px)); }
.image-viewer-nav:hover {
  transform: translateY(-50%) scale(1.1);
  color: var(--cyan);
}
.image-viewer-nav.is-load-more {
  color: #75a8ff;
  letter-spacing: -.14em;
}
.image-viewer-nav.loading {
  opacity: .55;
  pointer-events: none;
}
.image-viewer-loop {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 3;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
  color: var(--text2);
  cursor: pointer;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  place-items: center;
  text-align: center;
  transition: border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.image-viewer-loop:hover {
  color: var(--cyan);
  transform: translateY(-1px);
}
.image-viewer-loop.active {
  color: var(--green);
}
.image-viewer-loop img { display: block; width: 42px; height: 42px; filter: drop-shadow(0 0 10px rgba(63, 130, 255, .24)); transition: transform .16s ease, filter .16s ease; }
.image-viewer-loop:hover img { transform: scale(1.06); }
.image-viewer-loop.active img { filter: drop-shadow(0 0 11px rgba(47, 240, 110, .34)); }
.image-viewer-game-link {
  position: fixed;
  left: 50%;
  bottom: 58px;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  border: 1px solid rgba(0, 229, 255, .28);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(8, 28, 42, .82);
  color: var(--cyan);
  font-family: "Rajdhani", sans-serif;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}
.image-viewer-game-link:hover { border-color: rgba(0, 229, 255, .58); color: #fff; transform: translateX(-50%) translateY(-1px); }
.image-viewer-quality,
.trailer-quality {
  position: fixed;
  z-index: 3;
  display: none;
  min-width: 86px;
  border: 1px solid rgba(0, 229, 255, .28);
  border-radius: 999px;
  padding: 7px 28px 7px 12px;
  background: rgba(8, 16, 28, .76);
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  outline: 0;
  cursor: pointer;
}
.image-viewer-quality {
  right: 82px;
  bottom: 24px;
}
.trailer-quality {
  right: max(22px, calc((100vw - 1120px) / 2 + 22px));
  bottom: 104px;
}
.image-viewer-quality:hover,
.trailer-quality:hover {
  border-color: rgba(0, 229, 255, .58);
  color: #fff;
}
.image-viewer-count {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: none;
  transform: translateX(-50%);
  border: 1px solid rgba(0, 229, 255, .22);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(8, 11, 20, .78);
  color: var(--text2);
  font-family: "Rajdhani", sans-serif;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.image-viewer-queue {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  width: min(1020px, calc(100vw - 190px));
  transform: translateX(-50%);
  border: 1px solid rgba(0, 229, 255, .18);
  border-radius: 12px;
  padding: 8px 10px 10px;
  background: rgba(5, 10, 20, .88);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .38);
  backdrop-filter: blur(14px);
}
.image-viewer-queue[hidden] { display: none; }
.image-viewer-queue > strong {
  display: block;
  margin: 0 0 6px;
  color: var(--text2);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.image-viewer-queue-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.image-viewer-queue-item {
  display: grid;
  grid-template-columns: 84px minmax(100px, 1fr);
  flex: 0 0 230px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(92, 130, 185, .22);
  border-radius: 8px;
  padding: 4px;
  background: rgba(8, 15, 28, .9);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.image-viewer-queue-item:hover,
.image-viewer-queue-item.active {
  border-color: rgba(0, 229, 255, .62);
  background: rgba(10, 34, 50, .94);
}
.image-viewer-queue-item img {
  width: 84px;
  height: 48px;
  border: 0;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: none;
}
.image-viewer-queue-item span {
  display: -webkit-box;
  overflow: hidden;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.single-trailer-viewer:has(.image-viewer-queue:not([hidden])) .image-viewer-media,
.single-trailer-viewer:has(.image-viewer-queue:not([hidden])) .image-viewer-video,
.single-trailer-viewer:has(.image-viewer-queue:not([hidden])) .video-fallback {
  max-height: calc(100vh - 240px);
}
.single-trailer-viewer:has(.image-viewer-queue:not([hidden])) .image-viewer-media {
  transform: translateY(-42px);
}
.single-trailer-viewer:has(.image-viewer-queue:not([hidden])) .image-viewer-game-link {
  bottom: 124px;
}
.single-trailer-viewer:has(.image-viewer-queue:not([hidden])) .image-viewer-count {
  bottom: 132px;
}
.compare-row { margin-bottom: 14px; }
.compare-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--text2); font-size: .78rem; }
.compare-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background:
    repeating-linear-gradient(90deg, transparent 0 9%, rgba(255, 255, 255, .055) 9% 9.5%, transparent 9.5% 10%),
    rgba(255, 255, 255, .08);
}
.compare-user {
  min-width: 2px;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 14px rgba(0, 229, 255, .2);
}
.compare-mid .compare-user { background: linear-gradient(90deg, var(--cyan), var(--amber)); }
.compare-bad .compare-user { background: linear-gradient(90deg, #ff7a7a, var(--red)); }
.compare-req {
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  border-radius: 99px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 0 10px rgba(255, 255, 255, .25);
  transform: translateX(-50%);
}
.detail-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.detail-list li { display: flex; gap: 8px; color: var(--text2); font-size: .84rem; line-height: 1.45; }
.detail-list li::before { content: "-"; color: var(--cyan); }
.detail-wide { grid-column: 1 / -1; }
.detail-link { margin-top: 12px; }
.pcgc-ad-slot { grid-column: 1 / -1; width: 100%; margin: 16px 0; }
.trailer-only-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgba(23, 168, 255, .14), transparent 34%),
    linear-gradient(180deg, #020713, var(--bg) 48%, #030712);
}
.single-trailer-active .trailer-single-fallback,
.trailer-page-exiting .trailer-single-fallback {
  visibility: hidden;
}
.trailer-page-exiting,
.trailer-page-exiting body {
  background: #020713 !important;
}
.trailer-page { width: min(1180px, calc(100% - 32px)); margin: 32px auto 54px; }
.trailer-post { display: grid; gap: 20px; }
.trailer-page-copy {
  border-color: rgba(23, 168, 255, .32);
  border-radius: 0;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
  background:
    radial-gradient(circle at 0 0, rgba(23, 168, 255, .14), transparent 46%),
    linear-gradient(135deg, rgba(5, 18, 36, .92), rgba(5, 10, 20, .86));
}
.trailer-watch {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 168, 255, .42);
  border-radius: 0;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  background: #030712;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42), 0 0 32px rgba(23, 168, 255, .12);
}
.trailer-watch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), inset 0 0 48px rgba(23, 168, 255, .08);
}
.trailer-player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #030712; }
.trailer-copy {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  background: radial-gradient(circle at 0 0, rgba(0, 229, 255, .12), transparent 42%), rgba(17, 24, 39, .72);
}
.trailer-copy h1 {
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: .96;
  letter-spacing: 0;
}
.trailer-copy p { max-width: 82ch; color: var(--text2); line-height: 1.65; }
.trailer-detail-body { padding: 0; }
.trailer-single-action { display: flex; justify-content: center; padding-top: 4px; }
.trailer-main-action {
  min-width: min(320px, 100%);
  justify-content: center;
  text-align: center;
  border-radius: 0;
  clip-path: polygon(16px 0, 100% 0, calc(100% - 22px) 100%, 0 100%, 0 16px);
}

.trailers-page {
  --trailer-panel: rgba(8, 15, 29, .78);
  --trailer-line: rgba(126, 165, 224, .16);
  display: grid;
  gap: 34px;
  width: min(1460px, calc(100% - 48px)) !important;
  margin-top: 28px !important;
}
.trailers-hero {
  --trailer-hero-image: linear-gradient(135deg, rgba(24, 90, 155, .45), rgba(5, 10, 18, .95));
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 450px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 4vw, 54px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, .24);
  border-radius: 24px;
  padding: clamp(34px, 5vw, 58px);
  background:
    linear-gradient(120deg, rgba(5, 13, 29, .98), rgba(6, 14, 29, .92) 42%, rgba(6, 18, 35, .75)),
    radial-gradient(circle at 72% 48%, rgba(45, 134, 255, .16), transparent 34%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .36), inset 0 0 0 1px rgba(255, 255, 255, .025);
}
.trailers-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(108deg, transparent 0 35%, rgba(45, 134, 255, .18) 35.2%, transparent 36%),
    linear-gradient(108deg, transparent 0 38.2%, rgba(45, 134, 255, .06) 38.4%, transparent 39.2%);
  pointer-events: none;
}
.trailers-hero-copy {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 13px;
}
.trailers-hero h1 {
  color: #fff;
  font-family: "Highrise PCGC", "Rajdhani", sans-serif;
  font-size: var(--hero-title-size, clamp(2.65rem, 5.55vw, 5.25rem));
  font-weight: var(--hero-title-weight, 400);
  line-height: var(--hero-title-line, .9);
  letter-spacing: 0;
  text-transform: uppercase;
  overflow: hidden;
  max-width: var(--hero-title-max, 9.4ch);
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  text-shadow: 0 0 22px rgba(23, 168, 255, .09), 0 8px 28px rgba(0, 0, 0, .28);
}
.trailers-hero h2 {
  color: #2d86ff;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.28rem, 2.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.trailers-hero p:not(.eyebrow) {
  max-width: 520px;
  color: rgba(235, 244, 255, .82);
  line-height: 1.55;
}
.trailers-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.trailer-primary-action,
.trailer-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 22px;
  font-family: "Rajdhani", sans-serif;
  font-size: .98rem;
  font-weight: 900;
}
.trailer-primary-action {
  border: 0;
  background: linear-gradient(135deg, #1f6bff, #3c82ff);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(32, 100, 255, .36);
}
.trailer-primary-action::before {
  content: "";
  width: 0;
  height: 0;
  margin-right: 10px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}
.trailer-secondary-action {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(5, 10, 18, .46);
  color: #fff;
}
.trailer-secondary-action::after {
  content: "›";
  margin-left: 14px;
  color: #fff;
  font-size: 1.45rem;
  line-height: 0;
}
.trailers-hero-media {
  position: relative;
  z-index: 3;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  overflow: visible;
  border: 0;
  background: none;
  filter:
    drop-shadow(0 18px 44px rgba(0, 0, 0, .42))
    drop-shadow(-10px 0 24px rgba(45, 134, 255, .2))
    drop-shadow(0 0 34px rgba(45, 134, 255, .18));
  isolation: isolate;
}
.trailers-hero-media .hero-frame-line::before {
  content: none;
}
.trailers-hero-media::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  clip-path: polygon(15% 1%, 95.5% 1%, 98% 2.5%, 99% 6.5%, 99.6% 9.5%, 99.6% 90.5%, 98.6% 93.8%, 96.2% 99%, 7.5% 99%, 3.5% 97.6%, 1.6% 96%, 10.2% 7.8%);
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0 42%, rgba(3, 8, 18, .24) 72%, rgba(3, 8, 18, .72) 100%),
    linear-gradient(90deg, rgba(3, 8, 18, .46), transparent 18%, transparent 86%, rgba(3, 8, 18, .38)),
    linear-gradient(180deg, rgba(2, 8, 18, .18), rgba(2, 8, 18, .4)),
    var(--trailer-hero-image);
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 0 78px rgba(3, 8, 18, .78),
    inset 0 0 26px rgba(45, 134, 255, .2),
    inset 0 0 0 1px rgba(99, 179, 255, .1);
  pointer-events: none;
}
.trailers-hero-media::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  clip-path: polygon(15% 1%, 95.5% 1%, 98% 2.5%, 99% 6.5%, 99.6% 9.5%, 99.6% 90.5%, 98.6% 93.8%, 96.2% 99%, 7.5% 99%, 3.5% 97.6%, 1.6% 96%, 10.2% 7.8%);
  box-shadow:
    inset 0 0 96px rgba(3, 8, 18, .86),
    inset 0 0 28px rgba(45, 134, 255, .26),
    inset 0 0 0 1px rgba(122, 199, 255, .08);
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0 56%, rgba(3, 8, 18, .42) 100%),
    linear-gradient(90deg, rgba(3, 8, 18, .36), transparent 17%, transparent 84%, rgba(3, 8, 18, .28));
  pointer-events: none;
}
.hero-frame-line {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hero-frame-line path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.hero-frame-line .frame-glow {
  stroke: rgba(45, 134, 255, .42);
  stroke-width: 2.2;
  filter:
    drop-shadow(0 0 8px rgba(45, 134, 255, .56))
    drop-shadow(0 0 22px rgba(45, 134, 255, .34));
}
.hero-frame-line .frame-core {
  stroke: rgba(118, 202, 255, .92);
  stroke-width: .72;
  filter: drop-shadow(0 0 8px rgba(45, 134, 255, .5));
}
.trailers-hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  width: clamp(88px, 9vw, 122px);
  aspect-ratio: 1;
  border: 3px solid rgba(90, 165, 255, .78);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), rgba(29, 78, 216, .2) 45%, rgba(15, 23, 42, .58));
  cursor: pointer;
  box-shadow: 0 0 0 9px rgba(37, 99, 235, .12), 0 0 46px rgba(56, 189, 248, .58);
}
.trailers-hero-play::before {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-42%, -50%);
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 32px solid #fff;
}
.hero-corner {
  position: absolute;
  z-index: 5;
  width: 26px;
  height: 26px;
  border-color: rgba(99, 179, 255, .86);
  filter: drop-shadow(0 0 6px rgba(45, 134, 255, .32));
  pointer-events: none;
}
.hero-corner-a { left: clamp(104px, 17.2%, 158px); top: 46px; border-top: 3px solid; border-left: 3px solid; }
.hero-corner-b { right: 34px; top: 34px; border-top: 3px solid; border-right: 3px solid; }
.hero-corner-c { left: clamp(60px, 7.2%, 88px); bottom: 42px; border-bottom: 3px solid; border-left: 3px solid; }
.hero-corner-d { right: 34px; bottom: 34px; border-bottom: 3px solid; border-right: 3px solid; }
.trailer-hero-quality {
  position: absolute;
  right: 28px;
  bottom: 20px;
  z-index: 5;
  border: 1px solid rgba(45, 134, 255, .36);
  border-radius: 12px;
  padding: 10px 18px;
  background: rgba(5, 10, 18, .68);
  color: #2d86ff;
  font-family: "Rajdhani", sans-serif;
  font-weight: 900;
}
.trailers-hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.trailers-hero-dots button {
  width: 34px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  cursor: pointer;
  padding: 0;
}
.trailers-hero-dots button.active {
  background: #2d86ff;
  box-shadow: 0 0 16px rgba(45, 134, 255, .6);
}
.trailers-control-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 210px);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--trailer-line);
  border-radius: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(12, 22, 38, .66), rgba(7, 13, 24, .58));
  box-shadow: 0 12px 42px rgba(0, 0, 0, .2);
}
.trailer-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.trailer-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  color: rgba(226, 235, 248, .78);
  cursor: pointer;
  font-family: "Rajdhani", sans-serif;
  font-size: .88rem;
  font-weight: 800;
}
.trailer-filter-chip::before {
  content: none;
}
.trailer-filter-chip img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: invert(88%) sepia(10%) saturate(554%) hue-rotate(182deg) brightness(94%) contrast(91%);
  opacity: .78;
}
.trailer-filter-chip.active {
  border-color: rgba(59, 130, 246, .54);
  background: linear-gradient(135deg, rgba(37, 99, 235, .26), rgba(14, 165, 233, .1));
  color: #7fb6ff;
}
.trailer-filter-chip.active img {
  filter: invert(58%) sepia(77%) saturate(1390%) hue-rotate(192deg) brightness(104%) contrast(104%);
  opacity: 1;
}
.trailers-filter {
  display: grid;
  gap: 0;
  color: var(--text2);
  font-family: "Rajdhani", sans-serif;
  font-size: 0;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.trailers-filter select,
.trailers-filter input {
  min-height: 34px;
  border-radius: 7px;
  padding: 0 34px 0 12px;
  font-size: .86rem;
}

/* Trailer feature: layered HUD composition */
.trailers-feature-shell {
  --feature-blue: #17a8ff;
  --feature-blue-soft: rgba(23, 168, 255, .34);
  position: relative;
  display: grid;
  gap: 24px;
  overflow: hidden;
  padding: clamp(26px, 3vw, 36px) clamp(26px, 3.6vw, 48px) 28px;
  background:
    radial-gradient(circle at 74% 42%, rgba(28, 140, 255, .16), transparent 38%),
    linear-gradient(115deg, rgba(5, 16, 31, .98), rgba(3, 9, 19, .96) 44%, rgba(3, 10, 20, .9)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.022) 0 1px, transparent 1px 14px);
  border: 1px solid rgba(42, 165, 255, .72);
  clip-path: polygon(18px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .46),
    0 0 34px rgba(23, 168, 255, .2),
    inset 0 0 0 1px rgba(23, 168, 255, .28);
}
.trailers-feature-shell::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(23, 168, 255, .56);
  clip-path: polygon(22px 0, 42% 0, 44% 14px, 56% 14px, 58% 0, calc(100% - 28px) 0, 100% 28px, 100% 46%, calc(100% - 12px) 49%, 100% 52%, 100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 28px), 0 28px);
  box-shadow:
    inset 0 0 28px rgba(23, 168, 255, .08),
    0 0 18px rgba(23, 168, 255, .18);
}
.trailers-feature-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(23, 168, 255, .5) 0 1px, transparent 1.6px) 47% 8% / 10px 10px no-repeat,
    radial-gradient(circle, rgba(23, 168, 255, .42) 0 1px, transparent 1.6px) 43% 87% / 12px 12px no-repeat,
    linear-gradient(90deg, transparent 0 89%, rgba(23, 168, 255, .7) 89% 94%, transparent 94%) 96% 6% / 92px 5px no-repeat,
    linear-gradient(135deg, transparent 0 42%, rgba(23, 168, 255, .16) 42.2%, transparent 43%);
  opacity: .78;
}
.trailers-feature-shell .trailers-hero {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
  min-height: clamp(430px, 38vw, 560px);
  gap: clamp(20px, 3vw, 46px);
  border: 0;
  border-radius: 0;
  padding: clamp(38px, 4.2vw, 68px) clamp(28px, 4vw, 64px);
  background:
    linear-gradient(104deg, rgba(3, 12, 27, .98) 0 40%, rgba(4, 17, 34, .78) 40.2% 43%, transparent 43.2%),
    radial-gradient(circle at 18% 55%, rgba(23, 168, 255, .14), transparent 44%);
  box-shadow: none;
  overflow: hidden;
}
.trailers-feature-shell .trailers-hero::before {
  content: "";
  position: absolute;
  z-index: 7;
  top: -10%;
  bottom: -10%;
  left: 43%;
  width: clamp(34px, 4.2vw, 58px);
  transform: skewX(-23deg);
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(23, 168, 255, .7) 20% 28%, transparent 30% 45%, rgba(23, 168, 255, .95) 48% 56%, transparent 59%),
    repeating-linear-gradient(180deg, transparent 0 16px, rgba(23, 168, 255, .92) 16px 23px, transparent 23px 30px);
  box-shadow:
    -10px 0 24px rgba(23, 168, 255, .34),
    10px 0 36px rgba(23, 168, 255, .24);
  opacity: .92;
  pointer-events: none;
}
.trailers-feature-shell .trailers-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 10, 20, .42), transparent 28%, transparent 78%, rgba(3, 10, 20, .44)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 76px);
}
.trailers-feature-shell .trailers-hero-copy {
  z-index: 8;
  align-content: center;
  gap: 18px;
  max-width: min(500px, 35vw);
  padding-right: clamp(18px, 2.6vw, 42px);
}
.trailers-feature-shell.is-loading .trailers-hero-copy h1,
.trailers-feature-shell.is-loading .trailers-hero-copy h2,
.trailers-feature-shell.is-loading .trailers-hero-copy p:not(.eyebrow),
.trailers-feature-shell.is-loading .trailers-hero-actions,
.trailers-feature-shell.is-loading .trailers-hero-dots,
.trailers-feature-shell.is-loading .trailers-hero-media {
  opacity: 0;
}
.trailers-feature-shell.is-loading .trailers-hero-media {
  opacity: .7;
  background:
    linear-gradient(110deg, transparent 28%, rgba(48, 139, 255, .16) 44%, transparent 60%),
    radial-gradient(circle at 65% 45%, rgba(28, 139, 255, .2), transparent 42%);
  background-size: 220% 100%, 100% 100%;
  animation: trailer-shell-scan 1.8s linear infinite;
}
@keyframes trailer-shell-scan {
  to { background-position: -220% 0, 0 0; }
}
.trailers-feature-shell .trailers-hero .eyebrow {
  color: #19c1ff;
  font-size: 1.05rem;
  letter-spacing: .16em;
  text-shadow: 0 0 18px rgba(23, 168, 255, .34);
}
.trailers-feature-shell .trailers-hero h1 {
  max-width: var(--hero-title-max, min(470px, 33vw));
  font-size: var(--hero-title-size, clamp(3.15rem, 5.35vw, 5.85rem));
  font-weight: var(--hero-title-weight, 400);
  line-height: var(--hero-title-line, .88);
  color: #f8fbff;
  min-height: 0;
  text-shadow: 0 9px 0 rgba(255,255,255,.025), 0 0 24px rgba(23, 168, 255, .08);
}
.trailers-feature-shell .trailers-hero h2 {
  color: #2d86ff;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  letter-spacing: .18em;
}
.trailers-feature-shell .trailers-hero p:not(.eyebrow) {
  max-width: 500px;
  color: rgba(238, 247, 255, .82);
  font-size: clamp(.98rem, 1.3vw, 1.18rem);
}
.trailers-feature-shell .trailers-hero-actions {
  gap: 18px;
  margin-top: 16px;
}
.trailers-feature-shell .trailer-primary-action,
.trailers-feature-shell .trailer-secondary-action {
  min-width: 184px;
  min-height: 58px;
  border-radius: 0;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 20px) 100%, 0 100%, 0 16px);
  font-size: 1.08rem;
}
.trailers-feature-shell .trailer-primary-action {
  border: 1px solid rgba(77, 207, 255, .8);
  background:
    linear-gradient(135deg, rgba(20, 188, 255, .85), rgba(37, 99, 255, .94)),
    linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  box-shadow:
    0 0 24px rgba(23, 168, 255, .46),
    inset 0 0 18px rgba(255, 255, 255, .12);
}
.trailers-feature-shell .trailer-secondary-action {
  border: 1px solid rgba(23, 168, 255, .42);
  background: rgba(4, 12, 25, .58);
  box-shadow: inset 0 0 18px rgba(23, 168, 255, .08);
}
.trailers-feature-shell .trailers-hero-dots {
  gap: 14px;
  margin-top: 16px;
}
.trailers-feature-shell .trailers-hero-dots button {
  width: 44px;
  height: 5px;
  background: rgba(151, 172, 197, .32);
}
.trailers-feature-shell .trailers-hero-dots button.active {
  background: #19c1ff;
  box-shadow: 0 0 18px rgba(23, 168, 255, .9);
}
.trailers-feature-shell .trailers-hero-media {
  z-index: 3;
  min-height: 390px;
  align-self: stretch;
  aspect-ratio: auto;
  filter: none;
  overflow: visible;
}
.trailers-feature-shell .trailers-hero-media::before {
  inset: -26px -38px -30px -10px;
  z-index: 1;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%, 0 58%, 5% 52%, 0 46%);
  background:
    radial-gradient(ellipse at 55% 50%, transparent 0 34%, rgba(3, 10, 20, .18) 52%, rgba(3, 10, 20, .72) 82%, rgba(3, 10, 20, .96) 100%),
    radial-gradient(circle at 52% 52%, rgba(23, 168, 255, .12) 0 16%, transparent 17%),
    linear-gradient(90deg, rgba(3, 10, 20, .86), transparent 24%, transparent 70%, rgba(3, 10, 20, .72)),
    var(--trailer-hero-image);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 160px rgba(3, 10, 20, .82);
  -webkit-mask-image: radial-gradient(ellipse at 55% 50%, #000 0 38%, rgba(0,0,0,.86) 55%, rgba(0,0,0,.36) 76%, transparent 100%);
  mask-image: radial-gradient(ellipse at 55% 50%, #000 0 38%, rgba(0,0,0,.86) 55%, rgba(0,0,0,.36) 76%, transparent 100%);
}
.trailers-feature-shell .trailers-hero-media::after {
  inset: -26px -38px -30px -10px;
  z-index: 2;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%, 0 58%, 5% 52%, 0 46%);
  background:
    linear-gradient(90deg, rgba(3, 10, 20, .74), transparent 20%, transparent 76%, rgba(3, 10, 20, .58)),
    radial-gradient(ellipse at 55% 50%, transparent 0 42%, rgba(3, 10, 20, .22) 62%, rgba(3, 10, 20, .76) 100%),
    radial-gradient(circle at 52% 52%, transparent 0 13%, rgba(23, 168, 255, .18) 14%, transparent 17%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 42px);
  box-shadow:
    inset 0 0 70px rgba(23, 168, 255, .08),
    inset 0 0 180px rgba(3, 10, 20, .9);
}
.trailers-feature-shell .hero-frame-line {
  display: none;
}
.trailers-feature-shell .trailers-hero-play {
  z-index: 9;
  width: clamp(104px, 9vw, 148px);
  border-color: rgba(39, 192, 255, .92);
  background: radial-gradient(circle, rgba(36, 135, 255, .32), rgba(8, 16, 31, .56) 56%, rgba(7, 12, 22, .72));
  box-shadow:
    0 0 0 12px rgba(23, 168, 255, .08),
    0 0 34px rgba(23, 168, 255, .9),
    inset 0 0 26px rgba(23, 168, 255, .24);
}
.trailers-feature-shell .hero-corner {
  display: none;
}
.trailers-feature-shell .hero-corner-a { left: 15%; top: 34px; }
.trailers-feature-shell .hero-corner-b { right: 34px; top: 34px; }
.trailers-feature-shell .hero-corner-c { left: 13%; bottom: 34px; }
.trailers-feature-shell .hero-corner-d { right: 34px; bottom: 34px; }
.trailers-feature-shell .trailer-hero-quality {
  display: none;
  right: 38px;
  bottom: 34px;
  min-width: 92px;
  border-color: rgba(23, 168, 255, .72);
  border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  color: #19c1ff;
  background: rgba(4, 12, 25, .7);
  font-size: 1.35rem;
  text-align: center;
  box-shadow: 0 0 18px rgba(23, 168, 255, .2);
}
.trailers-feature-shell .trailers-control-bar {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr);
  border-color: rgba(42, 165, 255, .36);
  border-radius: 0;
  padding: 18px 28px;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  background: linear-gradient(180deg, rgba(6, 17, 34, .9), rgba(4, 10, 20, .82));
  box-shadow: inset 0 0 22px rgba(23, 168, 255, .08);
}
.trailers-feature-shell .trailer-category-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  justify-content: stretch;
  gap: 10px;
}
.trailers-feature-shell .trailer-filter-chip {
  min-height: 58px;
  min-width: 0;
  width: 100%;
  justify-content: center;
  gap: 9px;
  border-color: rgba(93, 120, 165, .36);
  border-radius: 0;
  padding: 0 12px;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  background: rgba(6, 13, 25, .76);
  color: #dce8f8;
  font-size: .98rem;
  white-space: nowrap;
}
.trailers-feature-shell .trailer-filter-chip img {
  width: 22px;
  height: 22px;
}
.trailers-feature-shell .trailer-filter-chip.active {
  border-color: rgba(42, 165, 255, .9);
  background: linear-gradient(135deg, rgba(28, 129, 255, .95), rgba(37, 113, 255, .84));
  color: #fff;
  box-shadow: 0 0 24px rgba(23, 168, 255, .34), inset 0 0 18px rgba(255, 255, 255, .08);
}
.trailers-section {
  display: grid;
  gap: 18px;
}
.trailers-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}
.trailers-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.trailers-section-head h2::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: #2d86ff;
}
.trailers-section-head p {
  margin-top: 4px;
  color: var(--text3);
  font-size: .92rem;
}
.trailers-feature-shell.is-loading .trailers-hero {
  opacity: 0;
}
.trailers-rail,
.trailers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.trailers-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.trailer-card { min-width: 0; }
.trailer-card-open {
  display: grid;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 165, 224, .14);
  border-radius: 8px;
  padding: 0;
  background: linear-gradient(180deg, rgba(11, 20, 36, .92), rgba(7, 13, 24, .98));
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.trailer-card-open:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, .46);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .42), 0 0 28px rgba(37, 99, 235, .1);
}
.trailer-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at 50% 44%, rgba(59, 130, 246, .18), transparent 36%), rgba(0, 0, 0, .28);
}
.trailer-card-thumb img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
  transition: transform .25s ease, opacity .25s ease;
}
.trailer-card-open:hover .trailer-card-thumb img { transform: scale(1.045); opacity: 1; }
.trailer-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 34%, rgba(5, 10, 18, .66));
}
.trailer-card-title-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--text2);
  font-family: "Rajdhani", sans-serif;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}
.trailer-card-thumb.has-poster .trailer-card-title-fallback,
.trailer-card-thumb:has(img) .trailer-card-title-fallback {
  display: none;
}
.trailer-play-icon {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: rgba(3, 8, 18, .54);
  backdrop-filter: blur(8px);
}
.trailer-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}
.trailer-card-favorite {
  position: absolute;
  z-index: 3;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(172, 192, 230, .44);
  border-radius: 7px;
  background: rgba(3, 8, 18, .52);
  color: rgba(210, 222, 245, .88);
  backdrop-filter: blur(8px);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.trailer-card-favorite::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: currentColor;
  -webkit-mask: url("/static/favorite.svg") center / contain no-repeat;
  mask: url("/static/favorite.svg") center / contain no-repeat;
}
.trailer-card-favorite:hover,
.trailer-card-favorite.active {
  color: #ffca2f;
  border-color: rgba(255, 202, 47, .72);
  background: rgba(255, 202, 47, .12);
  transform: translateY(-1px);
}
.trailer-favorites-chip {
  color: #ffca2f;
}
.trailer-favorites-chip[hidden] {
  display: none;
}
.trailer-filter-favorite-icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("/static/favorite.svg") center / contain no-repeat;
  mask: url("/static/favorite.svg") center / contain no-repeat;
}
.trailer-filter-count {
  display: inline-grid;
  min-width: 22px;
  min-height: 18px;
  place-items: center;
  border-radius: 999px;
  padding: 0 6px;
  background: rgba(255, 202, 47, .14);
  font-size: .7rem;
  line-height: 1;
}
.trailer-card-copy {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 13px 13px 15px;
}
.trailer-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.05;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.trailer-card-copy small {
  overflow: hidden;
  color: var(--text3);
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trailer-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.trailer-category-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid rgba(126, 165, 224, .18);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, .08), rgba(3, 8, 18, .78)),
    var(--category-image, linear-gradient(135deg, rgba(37, 99, 235, .32), rgba(5, 10, 18, .96)));
  background-position: center;
  background-size: cover;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.trailer-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 8, 18, .32), transparent);
}
.trailer-category-card > * { position: relative; z-index: 1; }
.trailer-category-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(59, 130, 246, .42);
}
.trailer-category-icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: invert(1);
}
.trailer-category-card strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 900;
}
.trailer-category-card small {
  margin-top: 2px;
  color: rgba(235, 244, 255, .72);
  font-size: .74rem;
}
.trailers-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 10px 0 24px;
  color: var(--text2);
}
.trailers-loading {
  display: grid;
  gap: 14px;
  place-items: center;
  grid-column: 1 / -1;
  border: 1px solid rgba(59, 130, 246, .18);
  border-radius: 8px;
  padding: 34px;
  color: var(--text2);
  background: rgba(8, 15, 29, .62);
  text-align: center;
}
.trailers-loading.slim { min-height: 150px; }
.trailers-sentinel { height: 1px; }

.site-header {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(94px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  width: min(1280px, calc(100% - 40px));
  margin: 10px auto 0;
  border: 1px solid rgba(53, 232, 255, .22);
  border-radius: 8px;
  padding: 10px 16px;
  background:
    linear-gradient(135deg, rgba(53, 232, 255, .06), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(124, 58, 237, .16), transparent 38%),
    rgba(7, 11, 22, .82);
  backdrop-filter: blur(16px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .025);
}
.site-header-lang {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; justify-content: center; width: fit-content; max-width: min(240px, 32vw); color: #fff; font-weight: 900; letter-spacing: .04em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--cyan), var(--green)); color: #001014; }
.brand-logo { display: block; width: auto; max-width: 100%; height: auto; max-height: 42px; object-fit: contain; }
.brand-text {
  overflow: hidden;
  color: #fff;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.site-header nav { display: flex; justify-content: flex-end; gap: 8px; }
.site-header nav a { position: relative; border-color: transparent; background: transparent; color: rgba(235, 244, 255, .72); }
.site-header nav a.active { border-color: transparent; background: transparent; color: #fff; }
.site-header nav a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -15px;
  height: 3px;
  border-radius: 999px;
  background: #2d86ff;
  box-shadow: 0 0 18px rgba(45, 134, 255, .72);
}
.site-header-tools { display: contents; }
.language-switcher {
  position: relative;
  width: 38px;
  color: rgba(235, 244, 255, .9);
}
.language-switcher summary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(126, 165, 224, .16);
  border-radius: 50%;
  padding: 0;
  background: rgba(5, 10, 18, .72);
  cursor: pointer;
  list-style: none;
  box-shadow: inset 0 0 0 1px rgba(53, 232, 255, .04);
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after {
  display: none;
}
.language-switcher b {
  font-size: .78rem;
  font-weight: 900;
  text-transform: lowercase;
  line-height: 1;
}
.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: grid;
  gap: 4px;
  min-width: 92px;
  border: 1px solid rgba(126, 165, 224, .16);
  border-radius: 8px;
  padding: 6px;
  background: rgba(5, 10, 18, .96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
}
.language-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 7px;
  padding: 5px 10px 5px 5px;
  color: rgba(235, 244, 255, .78);
  text-decoration: none;
}
.language-option:hover,
.language-option.active {
  color: #fff;
  background: rgba(45, 134, 255, .16);
}
.language-flag {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(#d9e4f2, #ffffff);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 2px 8px rgba(0, 0, 0, .24);
}
.header-search {
  display: grid;
  grid-template-columns: minmax(170px, 310px) 38px;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid rgba(126, 165, 224, .16);
  border-radius: 8px;
  background: rgba(5, 10, 18, .72);
}
.header-search input {
  min-height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}
.header-search span {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(235, 244, 255, .72);
}
.header-user {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(126, 165, 224, .18);
  border-radius: 50%;
  background: rgba(5, 10, 18, .62);
  color: #fff;
}
main:not(#mainSection) { width: min(1120px, calc(100% - 32px)); margin: 26px auto 56px; }
.library-head, .section-head, .mini-scan { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.library-copy, .compat-advice, dd, .facts span, .footer { color: var(--text2); }
.eyebrow { color: var(--cyan); font-size: .76rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.library-head h1, .game-hero h1 { margin-top: 4px; font-size: clamp(2rem, 5vw, 4rem); line-height: .95; }
.search-bar { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 8px; }
.search-bar.compact { grid-template-columns: minmax(220px, 1fr) 135px 150px auto; }
input, select { min-height: 42px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r2); padding: 0 12px; background: var(--bg3); color: var(--text); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 28px 0; color: var(--text2); }
.game-hero { display: grid; grid-template-columns: 1fr 320px; gap: 22px; min-height: 390px; border: 1px solid var(--border2); border-radius: var(--r); padding: 28px; background-size: cover; background-position: center; }
.game-hero p { max-width: 720px; margin-top: 12px; color: var(--text2); line-height: 1.65; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-row span { border: 1px solid var(--border2); border-radius: 999px; padding: 6px 10px; background: rgba(0, 229, 255, .06); font-size: 12px; }
.facts { align-self: end; }
.facts div { border-radius: 8px; padding: 11px; background: rgba(255, 255, 255, .04); }
.facts div + div { margin-top: 8px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin: 16px 0 48px; }
.req-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
dl { display: grid; grid-template-columns: 88px 1fr; gap: 10px; }
dd { margin: 0; line-height: 1.4; }
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.screens img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; }
.compat-result { margin: 12px 0; border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-align: center; font-weight: 900; }
.footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding: 26px clamp(16px, 4vw, 38px); font-size: 13px; }
.site-footer { align-items: center; flex-wrap: wrap; margin-top: 40px; background: rgba(5, 12, 25, .58); }
.footer-brand { display: grid; gap: 5px; color: var(--muted); max-width: 520px; }
.footer-brand strong { color: var(--text); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; }
.footer-links a { color: #9ec3ff; font-weight: 800; text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.legal-page { width: min(100% - 32px, 1080px); margin: 0 auto; padding-top: 24px; }
.legal-hero, .legal-card { border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, rgba(13, 24, 42, .92), rgba(12, 13, 30, .82)); box-shadow: var(--shadow); }
.legal-hero { padding: clamp(24px, 4vw, 46px); margin-bottom: 18px; }
.legal-hero h1 { margin: 8px 0 12px; font-size: clamp(2rem, 6vw, 4.4rem); line-height: .96; }
.legal-hero p { max-width: 780px; color: var(--muted); line-height: 1.65; }
.legal-hero span { display: inline-flex; margin-top: 12px; color: #9ec3ff; font-weight: 800; }
.legal-card { padding: clamp(20px, 4vw, 40px); }
.legal-card section + section { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(91, 140, 220, .18); }
.legal-card h2 { margin: 0 0 12px; color: var(--cyan); letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; }
.legal-card p { margin: 10px 0 0; color: #cdd8ea; line-height: 1.75; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin .8s linear infinite; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.slide-up { animation: slideUp .45s ease forwards; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--bg5); }

@media (max-width: 980px) {
  .hero { min-height: 660px; padding-top: 50px; background-position: center -116px; }
  .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-video-track { grid-auto-columns: calc((100% - 24px) / 3); }
  .site-header { grid-template-columns: 1fr; justify-items: center; }
  .site-header-lang, .site-header-right { justify-content: center; width: 100%; }
  .header-search { grid-template-columns: minmax(0, 1fr) 38px; width: min(100%, 420px); }
  .trailers-hero { grid-template-columns: 1fr; min-height: 0; }
  .trailers-hero h1 { max-width: 12ch; }
  .trailers-hero-media { min-height: 260px; width: 100%; }
  .trailers-control-bar { grid-template-columns: 1fr; }
  .trailers-feature-shell .trailer-category-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trailers-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trailers-grid, .trailer-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agent-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-panel, .detail-hero, .game-hero, .detail-layout { grid-template-columns: 1fr; }
  .grid-list, .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-bar.compact { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 660px) {
  .wrapper { padding-inline: 12px; }
  html.scan-restored .wrapper { padding-top: 18px; }
  .agent-strip { padding: 14px; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
  .agent-strip-head { align-items: flex-start; }
  .agent-strip-title { font-size: 1.16rem; }
  .agent-metrics { grid-template-columns: 1fr; }
  .agent-metric { min-height: 82px; }
  .hero { min-height: auto; padding-top: 36px; padding-bottom: 26px; background-position: center -48px; }
  .hero-logo { width: min(210px, 72vw); margin-bottom: 12px; }
  .hero-title { font-size: clamp(1.55rem, 8.8vw, 2.2rem); line-height: .96; }
  .hero-sub { font-size: .96rem; }
  .hero .scan-btn { width: min(100%, 330px); padding: 0 18px; font-size: 1rem; }
  .home-feature-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .home-feature-card { grid-template-columns: 54px 1fr; min-height: 82px; padding: 13px 14px; }
  .home-feature-icon { width: 46px; height: 46px; border-width: 2px; }
  .home-feature-card h2 { font-size: 1rem; }
  .home-feature-card p { font-size: .82rem; }
  .home-video-shell { grid-template-columns: 1fr; }
  .home-video-nav { display: none; }
  .home-video-track { grid-auto-columns: minmax(230px, 82vw); }
  .home-trust-row { flex-wrap: wrap; gap: 5px; font-size: .9rem; }
  .score-panel { padding: 18px; }
  .score-left { grid-template-columns: 1fr; }
  .score-big { margin: 4px auto 8px; }
  .score-desc, .score-track-wrap { grid-column: 1; }
  .score-desc { text-align: center; }
  .score-right { display: none; }
  .score-labels { display: none; }
  .stats-bar { grid-template-columns: 1fr; gap: 10px; }
  .stat-chip { min-height: 76px; grid-template-columns: 44px 1fr; padding: 12px 14px; }
  .stat-icon { width: 36px; height: 36px; }
  .chip-num { font-size: 1.9rem; }
  .tabs { gap: 8px; }
  .tab { flex: 1 1 180px; justify-content: center; min-height: 44px; padding: 9px 12px; font-size: .9rem; }
  .library-source-tabs { order: 3; width: 100%; }
  .source-filter-btn { flex: 1 1 100px; justify-content: center; min-width: 0; padding-inline: 8px; }
  .filter-bar { padding: 12px; gap: 8px; }
  .filter-btn { min-height: 34px; padding: 7px 10px; font-size: .74rem; }
  .filter-search-wrap, .search-row, .library-tools, .library-pager { width: 100%; margin-left: 0; }
  .library-pager { justify-content: space-between; }
  .pager-summary { min-width: 0; flex: 1; padding: 0 6px; }
  .pager-summary #libraryStatus { font-size: .72rem; }
  .search-row, .library-tools, .library-head, .section-head, .mini-scan, .footer { flex-direction: column; align-items: stretch; }
  .site-header { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .site-header nav { justify-content: center; flex-wrap: wrap; }
  .site-header-lang { justify-content: flex-start; }
  .site-header-right { flex-direction: column; align-items: stretch; }
  .language-switcher { align-self: flex-start; }
  .header-search { width: 100%; }
  .trailers-page { width: min(100% - 24px, 1460px) !important; gap: 24px; }
  .trailers-hero { min-height: auto; margin-inline: 0; padding: 24px 18px 22px; border-radius: 16px; }
  .trailers-hero h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .trailers-hero-media { min-height: 200px; }
  .trailers-hero-play { width: 76px; }
  .trailers-hero-play::before { border-top-width: 14px; border-bottom-width: 14px; border-left-width: 22px; }
  .hero-corner { width: 18px; height: 18px; }
  .hero-corner-a { left: 40px; top: 16px; }
  .hero-corner-b { right: 14px; top: 14px; }
  .hero-corner-c { left: 24px; bottom: 16px; }
  .hero-corner-d { right: 14px; bottom: 14px; }
  .trailer-hero-quality { right: 14px; bottom: 12px; padding: 7px 12px; }
  .trailers-feature-shell {
    padding: 16px 14px 18px;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  }
  .trailers-feature-shell::before { inset: 8px; }
  .trailers-feature-shell .trailers-hero {
    grid-template-columns: 1fr;
    padding: 28px 18px 22px;
    min-height: 0;
    border-radius: 0;
  }
  .trailers-feature-shell .trailers-hero::before {
    left: auto;
    right: 10%;
    opacity: .34;
  }
  .trailers-feature-shell .trailers-hero h1 {
    max-width: min(100%, var(--hero-title-max, 11ch));
    font-size: clamp(2.4rem, 14vw, 4.2rem);
  }
  .trailers-feature-shell .trailers-hero-media {
    min-height: 220px;
  }
  .trailers-feature-shell .trailers-hero-media::before,
  .trailers-feature-shell .trailers-hero-media::after {
    inset: 0;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 12%);
  }
  .trailers-feature-shell .trailers-hero-play { width: 78px; }
  .trailers-feature-shell .hero-corner-a { left: 28px; top: 20px; }
  .trailers-feature-shell .hero-corner-c { left: 24px; bottom: 20px; }
  .trailers-feature-shell .trailers-control-bar { padding: 12px; }
  .trailers-feature-shell .trailers-control-bar { grid-template-columns: 1fr; }
  .trailers-feature-shell .trailer-category-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 8px; }
  .trailers-feature-shell .trailer-filter-chip {
    min-width: auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: .9rem;
  }
  .trailers-feature-shell .trailer-filter-chip img {
    width: 18px;
    height: 18px;
  }
  .trailer-category-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trailers-section-head { align-items: flex-start; }
  .trailers-rail, .trailers-grid, .trailer-category-grid { grid-template-columns: 1fr; }
  .hw-grid, .games-grid, .grid-list, .detail-body, .detail-spec-grid, .detail-gallery, .req-grid, .screens, .search-bar, .search-bar.compact { grid-template-columns: 1fr; }
  .hw-card { min-height: 230px; }
  .game-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(66px, 1fr) auto; align-items: flex-start; }
  .game-thumb { width: 100%; height: auto; min-height: 68px; max-height: 86px; }
  .game-card-footer { grid-template-columns: auto minmax(86px, 1fr); }
  .game-card-side { position: absolute; top: 10px; right: 10px; align-items: flex-end; gap: 5px; min-width: 92px; flex: 0 0 auto; padding-top: 0; }
  .game-card-side .game-source-tag { min-width: 52px; }
  .game-info, .game-copy { padding-right: 18px; }
  .game-name, .game-copy h3, .game-req, .game-copy p { white-space: normal; }
  .detail-overlay { align-items: stretch; flex-direction: column; padding: 10px; }
  .detail-dialog-shell { order: 1; width: 100%; min-height: calc(100vh - 20px); padding-top: 0; transform: none; }
  .detail-overlay.open .detail-dialog-shell { transform: none; }
  .detail-modal { min-height: calc(100vh - 20px); border-radius: 12px; }
  .detail-close { position: sticky; top: 2px; order: 0; flex-basis: 42px; align-self: flex-end; margin: 2px 2px 10px; }
  .detail-hero { padding: 16px; }
  .detail-cover { min-height: 190px; }
  .image-viewer { padding: 12px; }
  .image-viewer-title { top: 14px; max-width: calc(100vw - 86px); font-size: .78rem; }
  .image-viewer-close { top: 12px; right: 12px; }
  .image-viewer-nav { width: 46px; height: 72px; font-size: 3.4rem; }
  .image-viewer-prev { left: 2px; }
  .image-viewer-next { right: 2px; }
  .image-viewer-loop { right: 12px; bottom: 12px; width: 42px; height: 42px; font-size: 1.35rem; }
  .image-viewer-game-link { bottom: 60px; max-width: calc(100vw - 32px); padding: 9px 12px; font-size: .78rem; }
  .image-viewer-quality { right: 58px; bottom: 17px; min-width: 74px; padding: 6px 22px 6px 10px; font-size: .76rem; }
  .image-viewer-queue { width: calc(100vw - 24px); bottom: 8px; }
  .image-viewer-queue-item { grid-template-columns: 68px minmax(90px, 1fr); flex-basis: 190px; }
  .image-viewer-queue-item img { width: 68px; height: 42px; }
  .single-trailer-viewer:has(.image-viewer-queue:not([hidden])) .image-viewer-media,
  .single-trailer-viewer:has(.image-viewer-queue:not([hidden])) .image-viewer-video,
  .single-trailer-viewer:has(.image-viewer-queue:not([hidden])) .video-fallback { max-height: calc(100vh - 220px); }
  .single-trailer-viewer:has(.image-viewer-queue:not([hidden])) .image-viewer-media { transform: translateY(-36px); }
  .single-trailer-viewer:has(.image-viewer-queue:not([hidden])) .image-viewer-game-link { bottom: 124px; }
  .single-trailer-viewer:has(.image-viewer-queue:not([hidden])) .image-viewer-count { display: none !important; }
.trailer-quality { right: 18px; bottom: 82px; min-width: 74px; padding: 6px 22px 6px 10px; font-size: .76rem; }
}

/* Shared library badges */
.filter-count {
  display: inline-grid;
  min-width: 24px;
  min-height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(24, 81, 148, .38);
  color: rgba(180, 212, 255, .88);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 6px;
}
.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.game-tag {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid rgba(142, 165, 205, .34);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(13, 22, 38, .74);
  color: #d5e1f4;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}
