.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.media-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-pvp);
}

.media-card.hidden {
  display: none;
}

.media-thumb {
  position: relative;
  height: 200px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.12) 0%, #0b0d11 90%);
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-thumb.contain-mode img {
  object-fit: contain;
  padding: 18px;
}

.media-card:hover .media-thumb img {
  transform: scale(1.04);
}

.media-zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 17, 21, 0.88);
  border: 1px solid var(--panel-border);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
}

.media-caption {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.media-caption h3 {
  font-size: 18px;
}

.media-res {
  font-size: 11px;
  color: var(--text-muted);
}

/* ПРЕСС-КИТ И ФАКТ-ЛИСТ */
.presskit-workbench {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .presskit-workbench {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.presskit-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.presskit-box h3 {
  font-size: 24px;
}

.presskit-box p {
  font-size: 14px;
  color: var(--text-muted);
}

.press-items-list {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #e2e6ec;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  padding: 14px;
  border-radius: 3px;
}

.factsheet-grid {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fact-k { color: var(--text-muted); }
.fact-v { color: #fff; font-weight: 600; text-align: right; }

/* LIGHTBOX ПРОСМОТРЩИК */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.92);
  backdrop-filter: blur(8px);
  z-index: 2600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-window {
  width: 100%;
  max-width: 980px;
  overflow: hidden;
  border-color: var(--accent-pvp);
}

.lightbox-img-wrap {
  background: #080a0e;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 72vh;
  overflow: hidden;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.lightbox-bar {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--panel-border);
}
#copy-factsheet {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid var(--accent-pvp);
  color: #ffffff;
  padding: 13px 18px;
  font-size: 13px;
  width: 100%;
}

#copy-factsheet:hover {
  background: var(--accent-pvp);
  color: #0b0e13;
}
.media-thumb.is-placeholder::after {
  content: 'SCREENSHOT SLOT // AWAITING CAPTURE';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-pvp);
  background: rgba(11, 14, 19, 0.75);
  text-align: center;
  padding: 8px;
}

.media-thumb.is-placeholder img {
  opacity: 0;
}
