* { box-sizing: border-box; }

body {
  margin: 0;
  background: #0d0e15;
  color: #f5f3ff;
  font-family: system-ui, sans-serif;
}

main {
  max-width: 1050px;
  margin: auto;
  padding: 22px 16px 100px;
}

a { color: #c5a2ff; }

h1 { margin-bottom: 6px; }

.sub { color: #aaa5b9; }

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

button, .upload {
  border: 1px solid #40384f;
  border-radius: 14px;
  background: #211c2d;
  color: white;
  padding: 12px 16px;
  cursor: pointer;
}

button.active { background: #7840d8; }

.upload {
  display: block;
  text-align: center;
  border-style: dashed;
  padding: 24px;
}

.upload input { display: none; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}

.item {
  background: #1c1a26;
  border-radius: 16px;
  overflow: hidden;
}

.item img, .item video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.item audio {
  width: 100%;
  padding: 10px;
}

.item p {
  padding: 0 12px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.item button {
  margin: 0 12px 12px;
}

@media(min-width:750px) {
  .gallery {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
}
