.upload-panel { margin-bottom: 30px; }
.upload-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.upload-row .field { flex: 1; min-width: 200px; margin-bottom: 0; }
.upload-row input[type=file] {
  background: #0d0d0d; border: 1px solid #2c2c2a; color: #e9e9e4; padding: 9px 10px;
  border-radius: 2px; font-size: 12px; width: 100%;
}

.person-section { margin-bottom: 34px; }
.person-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  border-bottom: 1px solid #2c2c2a; padding-bottom: 8px;
}
.person-header .person-name { font-size: 16px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.person-header .person-count { color: #9a9a92; font-size: 12px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #2c2c2a;
  border-radius: 2px;
  cursor: pointer;
  background: #111;
}
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.05); }
.gallery-item .gallery-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10,10,10,.7); border: 1px solid rgba(255,255,255,.5);
  color: #e9e9e4; font-size: 15px; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.gallery-item .gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  color: #e9e9e4; font-size: 11px; padding: 16px 8px 6px;
  opacity: 0; transition: opacity .15s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-item .gallery-remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(122,31,31,.85); color: #fff; font-size: 12px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-remove { display: flex; }

#stock-lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center;
}
#stock-lightbox img, #stock-lightbox video { max-width: 88vw; max-height: 80vh; border-radius: 2px; }
#stock-lightbox .lb-caption { position: absolute; bottom: 60px; left: 0; right: 0; text-align: center; color: #c9c9bd; font-size: 13px; }
#stock-lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: #e9e9e4; font-size: 26px; cursor: pointer; }

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 6px; }
  .gallery-item .gallery-remove { display: flex; }
  .upload-row { flex-direction: column; align-items: stretch; }
  .upload-row .btn { width: 100%; }
}
