/* Community media is progressively enhanced after the canonical SSR response. */
.poster-preview-frame,
.community-preview-video {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #05070a;
  pointer-events: none;
}

.has-community-preview::after {
  content: 'COMMUNITY TRAILER';
  position: absolute;
  z-index: 4;
  right: 9px;
  bottom: 9px;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  background: rgba(5,7,10,.68);
  backdrop-filter: blur(7px);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .72;
  transition: opacity .2s ease;
}

.has-community-preview.is-previewing::after { opacity: 0; }

.community-meta [data-community-year],
.community-meta [data-community-platform],
.community-peer-chip {
  color: #d7e9ff;
  border-color: rgba(102,184,255,.22);
  background: rgba(102,184,255,.07);
}

.community-peer-chip {
  color: #7be7af !important;
  border-color: rgba(91,232,157,.24) !important;
  background: rgba(91,232,157,.07) !important;
}

.community-trailer-section { padding-bottom: 72px; }
.community-trailer-stage,
.community-detail-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #05070a;
}

.community-trailer-stage {
  position: relative;
  padding: 0;
  color: #fff;
  cursor: pointer;
}

.community-trailer-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
  transition: transform .28s ease, opacity .28s ease;
}

.community-trailer-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,7,10,.72), rgba(5,7,10,.05) 62%);
}

.community-trailer-stage span {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(5,7,10,.72);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.community-trailer-stage:hover img { transform: scale(1.015); opacity: .9; }
.community-detail-player { border: 0; }
.peek-embed { border: 0; }

/* -------------------------------------------------------------------------- */
/* Cinematic Game Storefront                                                   */
/* This layer is loaded last on every public HTML page by server-v4/v5.        */
/* -------------------------------------------------------------------------- */

:root {
  --showcase-bg: #070a10;
  --showcase-panel: rgba(12,17,26,.94);
  --showcase-panel-soft: rgba(16,22,34,.78);
  --showcase-border: rgba(190,216,255,.13);
  --showcase-border-hot: rgba(184,243,63,.42);
  --showcase-blue: #6cc7ff;
  --showcase-violet: #a58cff;
  --showcase-magenta: #f08cff;
  --showcase-shadow: 0 32px 80px rgba(0,0,0,.42);
  --showcase-shadow-hover: 0 42px 110px rgba(0,0,0,.58), 0 0 44px rgba(113,184,255,.08);
}

body {
  background:
    radial-gradient(circle at 12% -5%, rgba(111,199,255,.095), transparent 34rem),
    radial-gradient(circle at 88% 9%, rgba(165,140,255,.085), transparent 31rem),
    radial-gradient(circle at 54% 78%, rgba(184,243,63,.035), transparent 38rem),
    var(--showcase-bg);
}

.site-header {
  background: rgba(6,9,14,.78);
  border-bottom-color: rgba(190,216,255,.09);
  backdrop-filter: blur(26px) saturate(170%);
}

.site-header.is-scrolled {
  background: rgba(6,9,14,.95);
  box-shadow: 0 18px 55px rgba(0,0,0,.36);
}

.primary-navigation a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(108,199,255,.13), rgba(165,140,255,.09));
  box-shadow: inset 0 0 0 1px rgba(108,199,255,.12);
}

.primary-navigation a.active span::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  vertical-align: 2px;
}

.section { padding-block: clamp(62px, 7vw, 112px); }
.section-heading { margin-bottom: 30px; }
.section-heading h2 {
  font-size: clamp(29px, 3.2vw, 46px);
  letter-spacing: -.045em;
}
.section-heading .eyebrow { color: #8fd4ff; }

/* Hero = storefront billboard */
.hero {
  min-height: 760px;
  grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
  gap: clamp(48px, 6vw, 96px);
}
.hero-copy h1 {
  max-width: 920px;
  font-size: clamp(58px, 6.7vw, 102px);
  line-height: .91;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.hero-copy h1 em {
  background: linear-gradient(100deg, var(--accent) 5%, #d9ff8d 42%, #8edaff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy > p { max-width: 760px; color: #aeb9c8; }
.hero-search {
  border-color: rgba(143,212,255,.2);
  background: rgba(12,17,26,.86);
  box-shadow: 0 28px 90px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.035);
}
.hero-search:focus-within {
  border-color: rgba(184,243,63,.42);
  box-shadow: 0 28px 90px rgba(0,0,0,.4), 0 0 0 4px rgba(184,243,63,.055);
}
.quick-filters a {
  background: rgba(255,255,255,.025);
  border-color: rgba(190,216,255,.1);
}
.quick-filters a:hover {
  transform: translateY(-1px);
  border-color: rgba(108,199,255,.4);
  color: #fff;
  background: rgba(108,199,255,.07);
}

.featured-signal {
  min-height: 620px;
  border-color: rgba(190,216,255,.18);
  border-radius: 30px;
  background: #090d14;
  box-shadow: 0 45px 120px rgba(0,0,0,.54), 0 0 70px rgba(108,199,255,.065);
  transform: translateZ(0);
}
.featured-signal::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 70px rgba(4,7,12,.18);
}
.featured-signal .game-cover img,
.featured-signal .poster-preview-video,
.featured-signal .community-preview-video { transition: transform .55s cubic-bezier(.2,.75,.2,1), opacity .2s ease; }
.featured-signal:hover .game-cover img,
.featured-signal:hover .poster-preview-video,
.featured-signal:hover .community-preview-video { transform: scale(1.035); }
.featured-overlay {
  background:
    linear-gradient(180deg, rgba(4,7,12,.02) 0%, rgba(4,7,12,.08) 27%, rgba(4,7,12,.62) 62%, rgba(4,7,12,.98) 100%),
    linear-gradient(90deg, rgba(4,7,12,.52), transparent 58%);
}
.featured-content { left: 34px; right: 34px; bottom: 32px; }
.featured-content h2 { font-size: clamp(38px, 4vw, 62px); letter-spacing: -.055em; }
.featured-content p { max-width: 650px; color: rgba(236,242,249,.78); font-size: 14px; line-height: 1.55; }
.score-ring {
  width: 70px;
  height: 70px;
  border-color: rgba(184,243,63,.7);
  background: rgba(5,8,12,.72);
  box-shadow: 0 0 28px rgba(184,243,63,.11), inset 0 0 20px rgba(184,243,63,.045);
}

/* Secondary page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  right: -12rem;
  top: -17rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,199,255,.095), rgba(165,140,255,.035) 45%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { letter-spacing: -.06em; }
.page-search {
  border-color: rgba(143,212,255,.16);
  background: rgba(12,17,26,.83);
}

/* Storefront grids */
.game-grid { gap: 22px; }
.upcoming-grid { gap: 20px; }
.upcoming-grid-page { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }

.game-card,
.upcoming-card {
  isolation: isolate;
  border: 1px solid var(--showcase-border);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(18,24,36,.98), rgba(8,12,19,.98));
  box-shadow: 0 18px 52px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.025);
  transition: transform .28s cubic-bezier(.2,.75,.2,1), border-color .28s ease, box-shadow .28s ease;
}
.game-card::before,
.upcoming-card::before {
  content: '';
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
}
.game-card:hover,
.upcoming-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108,199,255,.34);
  box-shadow: var(--showcase-shadow-hover);
}
.game-card.is-observation { border-style: solid; border-color: rgba(165,140,255,.2); }

.card-cover-link,
.upcoming-cover {
  position: relative;
  display: block;
  overflow: hidden;
}
.game-card .game-cover,
.upcoming-card .game-cover {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 78% 12%, rgba(108,199,255,.18), transparent 40%),
    linear-gradient(145deg, #1a2332, #080c12);
}
.game-card .game-cover::after,
.upcoming-card .game-cover::after {
  content: '';
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 38%, rgba(6,9,14,.18) 58%, rgba(6,9,14,.92) 100%);
}
.game-card .game-cover[data-preview-video]::before,
.upcoming-card .game-cover[data-preview-video]::before,
.featured-signal .game-cover[data-preview-video]::before {
  content: '▶  TRAILER';
  position: absolute;
  z-index: 6;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(4,7,11,.64);
  backdrop-filter: blur(10px);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .11em;
  transition: opacity .2s ease, transform .2s ease;
}
.game-card:hover .game-cover[data-preview-video]::before,
.upcoming-card:hover .game-cover[data-preview-video]::before,
.featured-signal:hover .game-cover[data-preview-video]::before { transform: translateY(-2px); }
.poster-preview.is-previewing::before { opacity: 0 !important; }

.game-card .game-cover img,
.upcoming-card .game-cover img {
  transition: transform .55s cubic-bezier(.2,.75,.2,1), filter .35s ease, opacity .18s ease;
}
.game-card:hover .game-cover img,
.upcoming-card:hover .game-cover img {
  transform: scale(1.065);
  filter: saturate(1.12) contrast(1.035) brightness(1.04);
}

.card-cover-link::after,
.upcoming-cover::after {
  content: 'Открыть игру  ↗';
  position: absolute;
  z-index: 7;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #091009;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(184,243,63,.16);
  font-size: 8px;
  font-weight: 950;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .2s ease, transform .2s ease;
}
.game-card:hover .card-cover-link::after,
.upcoming-card:hover .upcoming-cover::after { opacity: 1; transform: translateY(0); }

.game-card-body,
.upcoming-body {
  position: relative;
  z-index: 4;
  margin-top: -54px;
  padding: 72px 20px 20px;
  background: linear-gradient(180deg, rgba(8,12,19,0) 0%, rgba(10,14,22,.88) 29%, rgba(10,14,22,.985) 58%, rgba(8,12,19,.995) 100%);
}
.game-card-body { min-height: 300px; }
.upcoming-body { min-height: 270px; }
.upcoming-card-compact .upcoming-body { min-height: 250px; }

.card-topline { min-height: 34px; align-items: center; }
.game-card .badges,
.upcoming-card .badges { gap: 6px; }
.game-card .badge,
.upcoming-card .badge {
  min-height: 23px;
  padding: 4px 8px;
  border-color: rgba(190,216,255,.11);
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(8px);
}
.game-card .radar-score {
  min-width: 56px;
  min-height: 42px;
  padding: 6px 9px;
  border: 1px solid rgba(184,243,63,.19);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(184,243,63,.055);
}
.game-card .radar-score span { font-size: 23px; }
.game-card .radar-score small { margin-top: 2px; }

.game-card h3,
.upcoming-card h3 {
  margin-top: 14px;
  font-size: clamp(20px, 1.65vw, 27px);
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.game-card h3 a,
.upcoming-card h3 a { transition: color .16s ease; }
.game-card h3 a:hover,
.upcoming-card h3 a:hover { color: #fff; text-shadow: 0 0 22px rgba(108,199,255,.18); }

.game-card .tag-chips,
.upcoming-card .tag-chips { gap: 5px; }
.game-card .tag-chip,
.upcoming-card .tag-chip {
  background: rgba(255,255,255,.04);
  border-color: rgba(190,216,255,.08);
}

.game-card .game-intel-strip,
.upcoming-card .game-intel-strip {
  margin-block: 10px 4px;
  border-radius: 12px;
  border-color: rgba(190,216,255,.1);
  background: linear-gradient(135deg, rgba(108,199,255,.06), rgba(165,140,255,.04));
}

.card-description {
  min-height: 48px;
  margin-top: 5px;
  color: #96a3b4;
  -webkit-line-clamp: 2;
}

.card-footer,
.upcoming-footer {
  min-height: 51px;
  margin-top: auto;
  border-top-color: rgba(190,216,255,.085);
}
.game-card .price strong,
.upcoming-card .price strong { font-size: 17px; }
.game-card .version,
.upcoming-card .upcoming-footer > a { color: #c7d1dd; }
.upcoming-card .upcoming-footer > a {
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}
.upcoming-card .upcoming-footer > a:hover { color: #081000; background: var(--accent); }

.upcoming-date {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(108,199,255,.16);
  border-radius: 999px;
  background: rgba(108,199,255,.065);
}
.upcoming-date strong { color: #a6dcff; font-size: 10px; }
.upcoming-date span { color: #7f91a8; }

/* Quick actions look like game-store utilities */
.game-card > .game-quick-actions,
.upcoming-card > .game-quick-actions,
.featured-signal > .game-quick-actions {
  right: 13px;
  top: 13px;
  gap: 7px;
}
.game-card > .game-quick-actions .game-action,
.upcoming-card > .game-quick-actions .game-action,
.featured-signal > .game-quick-actions .game-action {
  width: 38px;
  height: 38px;
  border-color: rgba(255,255,255,.19);
  border-radius: 11px;
  background: rgba(5,8,12,.7);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  backdrop-filter: blur(14px) saturate(145%);
}
.game-card > .game-quick-actions .game-action:hover,
.upcoming-card > .game-quick-actions .game-action:hover,
.featured-signal > .game-quick-actions .game-action:hover {
  color: #081000;
  border-color: var(--accent);
  background: var(--accent);
}

/* Rows become visual mini-store cards instead of utility-table rows. */
.release-list,
.event-list,
.community-list { gap: 11px; }
.release-row,
.event-row,
.community-row,
.availability-row {
  border-color: rgba(190,216,255,.1);
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(16,22,32,.9), rgba(9,13,20,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.release-row:hover,
.event-row:hover,
.community-row:hover,
.availability-row:hover {
  transform: translateX(4px);
  border-color: rgba(108,199,255,.27);
  background: linear-gradient(100deg, rgba(19,27,40,.96), rgba(10,15,23,.97));
  box-shadow: 0 16px 46px rgba(0,0,0,.22);
}
.game-mention-poster {
  border: 1px solid rgba(190,216,255,.1);
  border-radius: 11px;
  box-shadow: 0 9px 26px rgba(0,0,0,.23);
}
.release-heading a,
.event-heading a,
.community-heading a { font-size: 16px; letter-spacing: -.02em; }
.release-meta span,
.community-meta span,
.upcoming-meta span {
  border: 1px solid rgba(190,216,255,.07);
  background: rgba(255,255,255,.035);
}

/* Availability Hub inherits storefront richness. */
.availability-row {
  padding: 15px;
  background:
    radial-gradient(circle at 2% 20%, rgba(165,140,255,.065), transparent 18rem),
    linear-gradient(100deg, rgba(16,22,32,.92), rgba(9,13,20,.96));
}
.availability-source {
  border-color: rgba(190,216,255,.1);
  background: rgba(255,255,255,.025);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
a.availability-source:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.055);
}

/* Detail page feels like a premium game PDP. */
.game-detail-hero {
  position: relative;
  grid-template-columns: minmax(390px, .9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 6vw, 94px);
  padding-block: clamp(58px, 7vw, 100px);
}
.game-detail-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  left: -18rem;
  top: -18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,199,255,.095), rgba(165,140,255,.04) 45%, transparent 70%);
  pointer-events: none;
}
.detail-cover .game-cover {
  min-height: 430px;
  border-color: rgba(190,216,255,.18);
  border-radius: 28px;
  box-shadow: 0 42px 110px rgba(0,0,0,.52), 0 0 55px rgba(108,199,255,.055);
}
.detail-cover .game-cover::after {
  content: '';
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(5,8,13,.4) 100%);
}
.detail-score {
  right: 22px;
  bottom: 22px;
  width: 86px;
  height: 86px;
  border-color: rgba(184,243,63,.7);
  box-shadow: 0 12px 40px rgba(0,0,0,.36), 0 0 30px rgba(184,243,63,.08);
}
.detail-score strong { font-size: 30px; }
.detail-copy h1 {
  font-size: clamp(48px, 5.5vw, 82px);
  letter-spacing: -.07em;
  text-wrap: balance;
}
.detail-copy > p { max-width: 880px; color: #aeb9c8; font-size: 17px; }
.detail-meta { gap: 10px; }
.detail-meta > div {
  min-height: 86px;
  padding: 15px;
  border-color: rgba(190,216,255,.1);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.014));
}
.detail-actions .primary-button {
  min-height: 46px;
  padding-inline: 19px;
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(184,243,63,.1);
}
.radar-card,
.sources-block {
  border-color: rgba(190,216,255,.11);
  background: linear-gradient(160deg, rgba(16,22,32,.94), rgba(9,13,20,.96));
  box-shadow: 0 20px 54px rgba(0,0,0,.2);
}

.media-trailer,
.media-shot,
.community-trailer-stage {
  border-color: rgba(190,216,255,.12);
  box-shadow: 0 16px 50px rgba(0,0,0,.2);
}
.media-shot { overflow: hidden; }
.media-shot img { transition: transform .35s cubic-bezier(.2,.75,.2,1), filter .25s ease; }
.media-shot:hover img { transform: scale(1.055); filter: saturate(1.1) brightness(1.04); }

/* Status / source chips become compact trust badges. */
.source-presence {
  border-radius: 999px;
  padding-inline: 9px;
  background: rgba(255,255,255,.025);
}
.source-presence.is-present { box-shadow: inset 0 0 16px rgba(112,230,165,.025); }

/* Mobile keeps the media-first hierarchy without hover dependence. */
@media (max-width: 1180px) {
  .upcoming-grid-page { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { grid-template-columns: minmax(0,1fr) minmax(390px,.9fr); }
}

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .featured-signal { min-height: 560px; }
  .game-detail-hero { grid-template-columns: 1fr; }
  .detail-cover { max-width: 820px; }
  .detail-cover .game-cover { min-height: 390px; }
}

@media (max-width: 620px) {
  .upcoming-grid-page { grid-template-columns: 1fr; }
  .game-grid,
  .upcoming-grid { gap: 16px; }
  .game-card,
  .upcoming-card { border-radius: 20px; }
  .game-card-body,
  .upcoming-body { margin-top: -44px; padding: 62px 17px 17px; }
  .game-card-body { min-height: 270px; }
  .featured-signal { min-height: 470px; border-radius: 23px; }
  .featured-content { left: 20px; right: 20px; bottom: 20px; }
  .featured-content h2 { font-size: clamp(32px, 10vw, 46px); }
  .card-cover-link::after,
  .upcoming-cover::after { display: none; }
  .game-card .game-cover[data-preview-video]::before,
  .upcoming-card .game-cover[data-preview-video]::before { bottom: 11px; left: 11px; }
  .release-row:hover,
  .event-row:hover,
  .community-row:hover,
  .availability-row:hover { transform: none; }
  .detail-cover .game-cover { min-height: 260px; border-radius: 20px; }
  .detail-score { width: 68px; height: 68px; right: 13px; bottom: 13px; }
  .detail-score strong { font-size: 23px; }
  .detail-copy h1 { font-size: clamp(40px, 13vw, 58px); }
}

@media (hover: none) {
  .card-cover-link::after,
  .upcoming-cover::after { display: none; }
  .game-card:hover,
  .upcoming-card:hover { transform: none; box-shadow: 0 18px 52px rgba(0,0,0,.25); }
}

@media (max-width: 760px) {
  .community-trailer-section { padding-bottom: 56px; }
  .has-community-preview::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .has-community-preview::after,
  .community-trailer-stage img,
  .game-card,
  .upcoming-card,
  .release-row,
  .event-row,
  .community-row,
  .availability-row,
  .game-cover img,
  .media-shot img,
  .card-cover-link::after,
  .upcoming-cover::after { transition: none !important; }
}
