.media-page {
  background: #070b12;
  color: #fff;
  padding: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.media-hero {
  position: relative;
  min-height: 430px;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-bottom: 28px;
}

.media-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.25), rgba(0,0,0,.15));
}

.media-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 80px 55px;
}

.media-hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 20px;
}

.media-hero p {
  font-size: 18px;
  color: #e5e7eb;
  margin-bottom: 28px;
}

.media-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.btn-dark {
  background: rgba(31, 41, 55, .85);
  border: 1px solid rgba(255,255,255,.12);
}

.media-hero__credit {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 2;
  font-size: 14px;
}

.media-hero__credit span {
  display: block;
  color: #cbd5e1;
}

.media-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  background: linear-gradient(180deg, #151b26, #111722);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.05);
}

.stat-card strong {
  display: block;
  font-size: 26px;
}

.stat-card span {
  color: #cbd5e1;
}

.media-section {
  margin-bottom: 36px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: 22px;
  margin: 0;
}

.section-header a {
  color: #c084fc;
  text-decoration: none;
}

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

.category-card {
  position: relative;
  min-height: 185px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
}

.category-card::before,
.collection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
}

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

.category-card span {
  font-size: 18px;
  font-weight: 700;
}

.category-card small {
  color: #e5e7eb;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.collection-card {
  position: relative;
  min-height: 260px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
}

.collection-card div {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
}

.collection-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.collection-card p,
.collection-card small {
  margin: 0;
  color: #e5e7eb;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.recent-card img,
.timelapse-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.recent-card span {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #c084fc;
}

.recent-card h3,
.timelapse-card h3 {
  font-size: 15px;
  margin: 6px 0 3px;
}

.recent-card p,
.timelapse-card p {
  color: #9ca3af;
  margin: 0;
  font-size: 13px;
}

.media-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 24px;
}

.location-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #111722;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

.map-placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  background: #0d131d;
}

.location-card ul {
  list-style: none;
  padding: 22px;
  margin: 0;
}

.location-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.location-card a {
  color: #c084fc;
  text-decoration: none;
}

.location-card span {
  color: #9ca3af;
  font-size: 13px;
}

.timelapse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.random-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #151b26, #111722);
  padding: 32px 42px;
  border-radius: 18px;
  margin-top: 20px;
}

.random-card h2 {
  margin: 0 0 8px;
}

.random-card p {
  color: #cbd5e1;
  margin: 0;
}

@media (max-width: 1100px) {
  .media-stats,
  .category-grid,
  .recent-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .collection-grid,
  .media-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .media-page {
    padding: 14px;
  }

  .media-hero__content {
    padding: 55px 26px;
  }

  .media-stats,
  .category-grid,
  .recent-grid,
  .timelapse-grid {
    grid-template-columns: 1fr 1fr;
  }

  .collection-grid,
  .location-card {
    grid-template-columns: 1fr;
  }

  .random-card {
    flex-direction: column;
    align-items: flex-start;
  }
}