/* Texture assets — fit thumbnails (no watermark), watermarked preview only */

.mp-card--texture .mp-card__media--texture {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: clamp(140px, 22vw, 200px);
  max-height: clamp(180px, 36vw, 260px);
  background: rgba(8, 10, 16, 0.55);
  overflow: hidden;
  cursor: default;
}

.mp-card--texture .mp-card__media--texture img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.mp-card--texture:hover .mp-card__media--texture img {
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-out);
}

.mp-card--texture .mp-card__shield--texture {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: auto;
  cursor: default;
  background: transparent;
}

/* Watermark — preview modal only */
.mp-tx-watermark {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.mp-tx-watermark--tile {
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-around;
  gap: 0;
  opacity: 0.9;
}

.mp-tx-watermark--center {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.mp-tx-watermark__center {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(13px, 2.8vw, 20px);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
  transform: rotate(-24deg);
  white-space: nowrap;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

.mp-tx-watermark__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  transform: rotate(-26deg);
  opacity: 0.14;
}

.mp-tx-watermark__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(9px, 1.6vw, 12px);
  letter-spacing: 0.14em;
  color: #fff;
  white-space: nowrap;
}

.mp-as-modal--texture .mp-as-modal__panel,
.mp-as-modal__inner--texture .mp-as-modal__stage--texture {
  max-width: min(96vw, 920px);
}

.mp-as-modal__frame--texture {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(6, 8, 14, 0.65);
  border-radius: 8px;
  cursor: default;
}

.mp-as-modal__frame--texture .mp-as-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.mp-as-modal__frame--texture .mp-as-modal__shield--texture {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: auto;
  cursor: default;
  background: transparent;
}

.mp-as-modal__frame--texture .mp-tx-watermark--tile .mp-tx-watermark__cell {
  opacity: 0.12;
}

.mp-as-modal__frame--texture .mp-tx-watermark__center {
  font-size: clamp(15px, 3vw, 22px);
}

@media (min-width: 1024px) {
  .mp-grid.mp-grid--asset-textures {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .mp-card--texture {
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(20, 20, 24, 0.96) 0%, rgba(10, 10, 12, 0.94) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }

  .mp-card--texture .mp-card__media--texture {
    aspect-ratio: 4 / 3;
    min-height: 0;
    max-height: none;
    border-radius: 14px 14px 0 0;
  }

  .mp-card--texture .mp-card__body--template {
    padding: 10px 11px 12px;
  }

  .mp-card--texture .mp-tpl-name {
    font-size: clamp(11px, 3.1vw, 13px);
  }

  .mp-card--texture .mp-card__actions {
    margin-top: 8px;
    gap: 6px;
  }

  .mp-card--texture .mp-card__btn {
    min-height: 40px;
    font-size: 9px;
    border-radius: 9px;
  }
}
