.gc-media-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 220px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(145deg, rgba(20, 24, 38, 0.92), rgba(35, 42, 62, 0.88));
  border-radius: 12px 12px 0 0;
  font-size: 0.92rem;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
}
.gc-media-processing i {
  font-size: 1.35rem;
  animation: gc-media-spin 1.1s linear infinite;
}
@keyframes gc-media-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.gc-root {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  outline: none;
  touch-action: pan-y;
}
.gc-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px 12px 0 0;
}
.gc-track {
  display: flex;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.gc-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}
.gc-slide.is-media-loading .gallery-img {
  opacity: 0;
}
.gc-slide.is-media-loaded .gallery-img,
.gc-slide.is-media-error .gallery-img {
  opacity: 1;
  transition: opacity 0.2s ease;
}
.gc-media-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 30, 0.55);
  z-index: 3;
  pointer-events: none;
}
.gc-slide.is-media-loaded .gc-media-spinner,
.gc-slide.is-media-error .gc-media-spinner {
  display: none;
}
.gc-media-error-icon {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  z-index: 2;
  pointer-events: none;
}
.gc-slide.is-media-error .gc-media-error-icon {
  display: flex;
}
.gc-slide .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}
.gc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 12, 20, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
}
.gc-nav:hover {
  background: rgba(138, 92, 255, 0.35);
  transform: translateY(-50%) scale(1.04);
}
.gc-prev {
  left: 8px;
}
.gc-next {
  right: 8px;
}
.gc-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
  pointer-events: none;
}
.gc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.gc-dot.active {
  background: linear-gradient(135deg, #8a5cff, #e94c5a);
  transform: scale(1.15);
}

/* Custom Video Player (.gc-vp) */
.gc-vp {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  outline: none;
}
.gc-vp video.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
  border-radius: inherit;
}
.gc-vp video.gallery-img.enlarge {
  cursor: pointer;
}
.gc-vp video.gallery-img.enlarge:hover {
  filter: none;
}
.gc-vp-big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(196, 181, 255, 0.55);
  background: linear-gradient(145deg, rgba(138, 92, 255, 0.55), rgba(12, 14, 22, 0.75));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(138, 92, 255, 0.25),
    0 6px 28px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(138, 92, 255, 0.45);
  transition: transform 0.2s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  animation: gc-vp-pulse 2.4s ease-in-out infinite;
}
.gc-vp-big-play i {
  margin-left: 3px;
}
.gc-vp-big-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 0 0 1px rgba(138, 92, 255, 0.4),
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 44px rgba(138, 92, 255, 0.65);
}
.gc-vp.is-playing .gc-vp-big-play {
  opacity: 0;
  pointer-events: none;
  animation: none;
}
@keyframes gc-vp-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(138, 92, 255, 0.25), 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 28px rgba(138, 92, 255, 0.35); }
  50% { box-shadow: 0 0 0 1px rgba(138, 92, 255, 0.45), 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 48px rgba(138, 92, 255, 0.55); }
}
.gc-vp-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 28px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 18, 0.55) 35%, rgba(8, 10, 18, 0.88));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.gc-vp.is-controls-visible .gc-vp-controls,
.gc-vp:not(.is-playing) .gc-vp-controls,
.gc-vp:hover .gc-vp-controls,
.gc-vp:focus-within .gc-vp-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.gc-vp-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(10, 12, 20, 0.62);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.gc-vp-btn:hover {
  background: rgba(138, 92, 255, 0.42);
  border-color: rgba(196, 181, 255, 0.45);
  transform: scale(1.05);
}
.gc-vp-progress-wrap {
  flex: 1 1 auto;
  position: relative;
  min-width: 0;
  height: 18px;
  display: flex;
  align-items: center;
}
.gc-vp-progress-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  pointer-events: none;
}
.gc-vp-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6d28d9, #8a5cff 55%, #c084fc);
  box-shadow: 0 0 10px rgba(138, 92, 255, 0.65);
  transition: width 0.08s linear;
}
.gc-vp-seek {
  position: relative;
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.gc-vp-seek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #8a5cff;
  box-shadow: 0 0 10px rgba(138, 92, 255, 0.75);
}
.gc-vp-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #8a5cff;
  box-shadow: 0 0 10px rgba(138, 92, 255, 0.75);
}
.gc-vp-time {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  min-width: 72px;
  text-align: center;
}
.gc-vp--lightbox {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
}
.gc-vp--lightbox video.gallery-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(138, 92, 255, 0.12);
}
.gallery-lightbox .gc-vp-controls {
  padding: 36px 16px 16px;
  gap: 10px;
}
.gallery-lightbox .gc-vp-btn {
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
}
.gallery-lightbox .gc-vp-big-play {
  width: 76px;
  height: 76px;
  font-size: 2rem;
}

/* Feed */
.feed-img-wrap .gc-root {
  min-height: 240px;
  max-height: 600px;
}
.feed-img-wrap .gc-slide .gallery-img {
  object-fit: contain;
  max-height: 600px;
  border-radius: 0;
}

/* Upload Hub (Profil Galerie-Tab) */
.gal-upload-hub {
  margin-bottom: 0.5rem;
}
.gal-upload-dropzone {
  position: relative;
  border: 2px dashed rgba(138, 92, 255, 0.42);
  border-radius: 16px;
  background: rgba(10, 12, 22, 0.72);
  min-height: 140px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.gal-upload-dropzone:hover,
.gal-upload-dropzone:focus-within,
.gal-upload-dropzone.gal-upload-dropzone--active {
  border-color: rgba(233, 76, 90, 0.65);
  background: rgba(138, 92, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(138, 92, 255, 0.12);
}
.gal-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.gal-upload-inner {
  pointer-events: none;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.35rem 1rem;
  min-height: 140px;
}
.gal-upload-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, #8a5cff, #e94c5a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.35rem;
}
.gal-upload-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(244, 245, 250, 0.96);
}
.gal-upload-sub {
  font-size: 0.78rem;
  color: rgba(186, 194, 220, 0.78);
  margin-top: 0.35rem;
  max-width: 420px;
  line-height: 1.35;
}

/* Vorschau gewählter Dateien (Galerie-Upload) */
.gal-upload-preview[data-gal-preview][hidden] {
  display: none !important;
}
.gal-upload-preview.has-files {
  display: block;
  margin-top: 0.75rem;
}
.gal-upload-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.gal-upload-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(138, 92, 255, 0.35);
  background: rgba(10, 12, 20, 0.85);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.gal-upload-thumb img,
.gal-upload-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal-upload-thumb-idx {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  line-height: 1;
  pointer-events: none;
}
.gal-upload-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(233, 76, 90, 0.92);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
  transition: transform 0.15s, filter 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.gal-upload-thumb-remove:hover {
  filter: brightness(1.08);
  transform: scale(1.06);
}

/* Galerie-Upload: Tageskontingent (auch in studio_artist_profile.css — hier primär geladen) */
.gal-upload-quota {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(12, 14, 27, 0.55);
  border: 1px solid rgba(138, 92, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.gal-upload-quota-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.gal-upload-quota-line {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(196, 204, 230, 0.92);
}
.gal-upload-quota-line strong {
  color: #e8e6ff;
  font-weight: 700;
}
.gal-upload-quota-unlimited {
  color: rgba(138, 92, 255, 0.85);
  font-size: 0.78rem;
}
.gal-upload-quota-bar {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(138, 92, 255, 0.18);
}
.gal-upload-quota-bar-fill {
  height: 100%;
  min-height: 7px;
  border-radius: inherit;
  background: linear-gradient(90deg, #6d28d9 0%, #8a5cff 55%, #c084fc 100%);
  box-shadow: 0 0 12px rgba(138, 92, 255, 0.45);
  transition: width 0.35s ease;
}
.gal-upload-quota-bar-label {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(186, 194, 220, 0.75);
}
.gal-upload-quota-blocked-msg {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffb4b4;
}
.gal-upload-quota-upgrade-link {
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gal-upload-quota-upgrade-link:hover {
  color: #e9d5ff;
}
.gal-upload-card-wrap--blocked {
  border-color: rgba(255, 152, 152, 0.28) !important;
}
.gal-upload-dropzone--disabled,
.gal-upload-form--blocked .gal-upload-dropzone {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  filter: saturate(0.65);
}
.gal-upload-form--blocked .form-control,
.gal-upload-form--blocked .form-check-input,
.gal-upload-form--blocked button[type="submit"] {
  pointer-events: none;
}

/* Galerie-Lightbox (Klick auf .gallery-img.enlarge) */
.gallery-img.enlarge {
  cursor: pointer;
  transition: filter 0.2s ease;
}
.gallery-img.enlarge:hover {
  filter: brightness(1.08);
}
#img-modal.gallery-lightbox,
#img-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: none;
  justify-content: center;
  align-items: center;
  background: #232326ee;
  z-index: var(--ink-z-modal, 1060);
  --gl-close-top: max(56px, calc(env(safe-area-inset-top, 0px) + 12px));
  --gl-close-right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px));
}
#img-modal.gallery-lightbox--open {
  display: flex;
  background:
    radial-gradient(ellipse 85% 55% at 50% 38%, rgba(138, 92, 255, 0.14), transparent 58%),
    rgba(35, 35, 38, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#img-modal img,
#img-modal video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(138, 92, 255, 0.12);
}
#img-modal .gc-vp {
  max-width: 90vw;
  max-height: 85vh;
}
#img-modal .gc-vp video {
  box-shadow: none;
}
#img-modal .close,
#img-modal .gallery-lightbox-close {
  position: absolute;
  /* absolute = Viewport-Top, nicht Modal-Padding — min. 56px unter Statusleiste */
  top: var(--gl-close-top);
  right: var(--gl-close-right);
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(196, 181, 255, 0.48);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(138, 92, 255, 0.38), rgba(12, 14, 22, 0.82));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(138, 92, 255, 0.18),
    0 4px 22px rgba(0, 0, 0, 0.48),
    0 0 26px rgba(138, 92, 255, 0.38),
    0 0 52px rgba(138, 92, 255, 0.14);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  z-index: 10;
}
#img-modal .gallery-lightbox-close i {
  font-size: 1.2rem;
  line-height: 1;
  pointer-events: none;
}
#img-modal .close:hover,
#img-modal .gallery-lightbox-close:hover,
#img-modal .close:focus-visible,
#img-modal .gallery-lightbox-close:focus-visible {
  transform: scale(1.07);
  border-color: rgba(220, 210, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(138, 92, 255, 0.4),
    0 6px 28px rgba(0, 0, 0, 0.52),
    0 0 36px rgba(138, 92, 255, 0.58),
    0 0 72px rgba(180, 77, 255, 0.28);
  outline: none;
}
#img-modal .close:active,
#img-modal .gallery-lightbox-close:active {
  transform: scale(0.95);
}

@media (max-width: 767.98px) {
  #img-modal {
    --gl-close-top: max(58px, calc(env(safe-area-inset-top, 0px) + 14px));
    --gl-close-right: max(14px, calc(env(safe-area-inset-right, 0px) + 14px));
  }

  #img-modal img,
  #img-modal video {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 120px);
    border-radius: 12px;
  }

  #img-modal .gc-vp,
  #img-modal .gc-vp--lightbox video.gallery-img {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 120px);
    border-radius: 12px;
  }

  #img-modal .close,
  #img-modal .gallery-lightbox-close {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }

  #img-modal .gallery-lightbox-close i {
    font-size: 1.35rem;
  }
}
