﻿.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.media-card {
  overflow: hidden;
}

.media-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 16%, rgba(75, 167, 255, 0.2), transparent 44%),
    linear-gradient(160deg, rgba(14, 26, 48, 0.92), rgba(7, 14, 27, 0.95));
  display: grid;
  place-items: center;
  color: var(--muted);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.media-card h3 {
  margin-top: 0.65rem;
  font-size: 1.05rem;
}

.media-card p {
  margin-top: 0.3rem;
  color: var(--muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #03070f;
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #03070f;
}

.video-card h3 {
  margin-top: 0.55rem;
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.short-card {
  min-height: 120px;
  text-decoration: none;
}

.short-card h4 {
  margin-bottom: 0.3rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  place-items: center;
  background: rgba(3, 8, 16, 0.85);
  backdrop-filter: blur(5px);
  padding: 1rem;
}

.lightbox.open {
  display: grid;
}

.lightbox-content {
  width: min(980px, 92vw);
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: #02060d;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid rgba(122, 190, 255, 0.2);
  background: rgba(10, 19, 36, 0.95);
}

.lightbox-title {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .media-grid,
  .shorts-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}
