/* /u/feed — Portfolio-Wand (MyInkConnect Glass/Glow, kein IG-Timeline-Look) */

.u-feed-page {
  color: var(--ink-txt, #e9efff);
}

.u-feed-wrap {
  max-width: 1280px;
  margin: 24px auto 64px;
  padding: 0 16px;
}

.u-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-border, rgba(120, 130, 170, 0.22));
}

.u-feed-head-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.u-feed-head-sub {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted, #9aa3b2);
}

.u-feed-head-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ── INK-Storys: kompakte Update-Pills (keine IG-Ringe) ── */
.u-feed-updates {
  margin-bottom: 28px;
}

.u-feed-updates-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted, #9aa3b2);
  margin-bottom: 10px;
}

.u-feed-updates-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 92, 255, 0.45) transparent;
}

.u-feed-update-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 12px;
  border: 1px solid var(--ink-border, rgba(120, 130, 170, 0.22));
  background: var(--ink-panel, rgba(12, 18, 32, 0.65));
  backdrop-filter: blur(8px);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
}

.u-feed-update-pill:hover {
  border-color: rgba(138, 92, 255, 0.45);
  box-shadow: 0 0 20px rgba(138, 92, 255, 0.15);
  transform: translateY(-1px);
}

.u-feed-update-pill.seen {
  opacity: 0.72;
}

.u-feed-update-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  background: linear-gradient(145deg, #152238, #0c1524);
  border: 1px solid rgba(138, 92, 255, 0.35);
}

.u-feed-update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.u-feed-update-name {
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.u-feed-update-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-accent, #8a5cff);
  box-shadow: 0 0 8px rgba(138, 92, 255, 0.8);
}

.u-feed-updates-empty {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(138, 92, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(138, 92, 255, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(24, 28, 38, 0.65), rgba(12, 18, 32, 0.5));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28), 0 0 16px rgba(138, 92, 255, 0.08);
  color: var(--ink-muted, #9aa3b2);
  font-size: 0.88rem;
  text-align: center;
}

/* ── Portfolio-Wand ── */
.u-feed-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted, #9aa3b2);
  margin-bottom: 14px;
}

.u-feed-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 18px;
  align-items: stretch;
}

.u-feed-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(138, 92, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(24, 28, 38, 0.95), rgba(14, 16, 22, 0.98));
  border: 1px solid rgba(90, 96, 120, 0.35);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.u-feed-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(138, 92, 255, 0.7), transparent);
  z-index: 2;
  pointer-events: none;
}

.u-feed-tile:hover {
  border-color: rgba(138, 92, 255, 0.45);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4), 0 0 28px rgba(138, 92, 255, 0.18);
  transform: translateY(-3px);
}

.u-feed-tile--discover::before {
  background: linear-gradient(90deg, transparent, rgba(29, 209, 161, 0.75), transparent);
}

.u-feed-tile--discover {
  border-color: rgba(29, 209, 161, 0.28);
}

.u-feed-tile--discover:hover {
  border-color: rgba(29, 209, 161, 0.5);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(29, 209, 161, 0.15);
}

.u-feed-tile--own::before {
  background: linear-gradient(90deg, transparent, rgba(138, 92, 255, 0.75), transparent);
}

.u-feed-tile--own {
  border-color: rgba(138, 92, 255, 0.32);
}

.u-feed-tile--own:hover {
  border-color: rgba(138, 92, 255, 0.55);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(138, 92, 255, 0.2);
}

.u-feed-tile-media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(72vw, 480px);
  overflow: hidden;
  contain: layout paint;
  background:
    linear-gradient(145deg, rgba(138, 92, 255, 0.12), rgba(14, 18, 28, 0.94) 48%, rgba(29, 209, 161, 0.07));
}

.u-feed-tile-media > .gc-root {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  max-height: 100%;
  flex: none;
  display: flex;
  flex-direction: column;
}

.u-feed-tile-media .gc-root,
.u-feed-tile-media .gc-viewport,
.u-feed-tile-media .gc-track,
.u-feed-tile-media .gc-slide {
  height: 100%;
  min-height: 0;
}

.u-feed-tile-media .gc-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.u-feed-tile-media .gc-slide-bg {
  position: absolute;
  inset: -28px;
  background-size: cover;
  background-position: center;
  filter: blur(32px) saturate(1.2) brightness(0.72);
  opacity: 0.72;
  transform: scale(1.12);
  pointer-events: none;
}

.u-feed-tile-media .gc-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.15), rgba(8, 10, 18, 0.45));
}

.u-feed-tile-media .gc-slide img,
.u-feed-tile-media .gc-slide video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
}

.u-feed-tile-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(29, 209, 161, 0.15);
  border: 1px solid rgba(29, 209, 161, 0.4);
  color: rgba(29, 209, 161, 0.95);
}

.u-feed-tile-badge--own {
  background: rgba(138, 92, 255, 0.15);
  border-color: rgba(138, 92, 255, 0.45);
  color: rgba(190, 165, 255, 0.98);
}

.u-feed-tile-price {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.92);
  color: #1a1a1a;
}

.u-feed-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--ink-border, rgba(120, 130, 170, 0.18));
  background: linear-gradient(180deg, rgba(16, 21, 36, 0.96), rgba(10, 14, 24, 0.92));
  flex-shrink: 0;
}

.u-feed-tile-artist-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 120px);
}

.u-feed-tile-artist-row:hover .u-feed-tile-artist {
  color: var(--ink-accent, #8a5cff);
}

.u-feed-tile-artist-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(145deg, rgba(138, 92, 255, 0.45), rgba(108, 62, 225, 0.35));
  border: 1px solid rgba(138, 92, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.u-feed-tile-artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.u-feed-tile-artist {
  font-weight: 800;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.u-feed-tile-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 46%;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.u-feed-tile-media .gc-dots {
  top: 10px;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.u-feed-tile-media .gc-nav {
  z-index: 5;
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}

.u-feed-tile-media .gc-prev {
  left: 6px;
}

.u-feed-tile-media .gc-next {
  right: 6px;
}

.u-feed-tile-media .gc-slide:has(video) video {
  max-height: 100%;
  object-fit: contain;
}

.u-feed-tile-media .gc-vp {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.u-feed-tile-media .gc-vp-big-play {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  z-index: 3;
}

.u-feed-tile-media .gc-vp-controls {
  z-index: 3;
  padding: 22px 8px 8px;
  gap: 6px;
}

.u-feed-tile-media .gc-vp-btn {
  width: 30px;
  height: 30px;
  font-size: 0.82rem;
}

.u-feed-tile-media .gc-vp-time {
  font-size: 0.62rem;
  min-width: 62px;
}

.u-feed-tile-media .gc-vp-progress-bg {
  height: 3px;
}

.u-feed-tile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--ink-border, rgba(120, 130, 170, 0.22));
  background: linear-gradient(180deg, rgba(18, 24, 40, 0.88), rgba(10, 14, 24, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.u-feed-tile-actions__group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.u-feed-tile-actions__group--end {
  margin-left: auto;
}

.u-feed-follow-form {
  display: inline;
  margin: 0;
}

.u-feed-like-btn,
.u-feed-comment-btn,
.u-feed-report-btn {
  border: 1px solid rgba(120, 130, 170, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(8, 12, 22, 0.45));
  color: var(--ink-muted, #9aa3b2);
  border-radius: 999px;
  padding: 6px 14px;
  min-width: 44px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.u-feed-like-btn i,
.u-feed-comment-btn i {
  font-size: 1rem;
  line-height: 1;
}

.u-feed-like-btn:hover,
.u-feed-comment-btn:hover,
.u-feed-report-btn:hover {
  border-color: rgba(138, 92, 255, 0.5);
  color: #fff;
  box-shadow: 0 0 14px rgba(138, 92, 255, 0.18);
  transform: translateY(-1px);
}

.u-feed-like-btn.active {
  border-color: rgba(255, 92, 124, 0.55);
  color: var(--ink-danger, #ff5c7c);
  background: linear-gradient(145deg, rgba(255, 92, 124, 0.18), rgba(12, 16, 26, 0.5));
  box-shadow: 0 0 14px rgba(255, 92, 124, 0.22);
}

.u-feed-comment-btn.is-open {
  border-color: rgba(138, 92, 255, 0.55);
  color: #fff;
  background: linear-gradient(145deg, rgba(138, 92, 255, 0.2), rgba(12, 16, 26, 0.5));
  box-shadow: 0 0 14px rgba(138, 92, 255, 0.2);
}

.u-feed-report-btn {
  padding: 6px 11px;
  min-width: 38px;
}

.u-feed-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  min-width: 44px;
  border-radius: 999px;
  border: 1px solid rgba(120, 130, 170, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-muted, #9aa3b2);
  font-size: 0.78rem;
  font-weight: 700;
}

.u-feed-stat i {
  font-size: 1rem;
}

.u-feed-icon-btn {
  border: 1px solid rgba(120, 130, 170, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(8, 12, 22, 0.45));
  color: var(--ink-muted, #9aa3b2);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.u-feed-icon-btn i {
  font-size: 1.05rem;
}

.u-feed-icon-btn--edit:hover {
  border-color: rgba(138, 92, 255, 0.5);
  color: var(--ink-accent, #8a5cff);
  box-shadow: 0 0 12px rgba(138, 92, 255, 0.2);
}

.u-feed-icon-btn--danger:hover {
  border-color: rgba(255, 92, 124, 0.5);
  color: var(--ink-danger, #ff5c7c);
  box-shadow: 0 0 12px rgba(255, 92, 124, 0.18);
}

/* Galerie: Owner-Toolbar — nur Icons, kompakte Segment-Pill */
.u-feed-tile-actions__group--owner {
  margin-left: auto;
  flex-shrink: 0;
}

.u-feed-owner-toolbar {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--ink-border, rgba(120, 130, 170, 0.28));
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(8, 12, 22, 0.52));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.u-feed-owner-delete-form {
  display: inline-flex;
  margin: 0;
  height: 100%;
}

.gallery-item-actions .gallery-delete-form,
.gallery-item-actions .u-feed-owner-delete-form {
  margin-top: 0;
}

.u-feed-owner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.u-feed-owner-btn i {
  font-size: 1.12rem;
  line-height: 1;
}

.u-feed-owner-toolbar > .u-feed-owner-delete-form,
.u-feed-owner-toolbar > * + * {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.u-feed-owner-btn--edit {
  color: rgba(167, 139, 250, 0.88);
}

.u-feed-owner-btn--edit:hover,
.u-feed-owner-btn--edit:focus-visible {
  background: rgba(138, 92, 255, 0.22);
  color: var(--ink-accent, #8a5cff);
  outline: none;
  box-shadow: inset 0 0 18px rgba(138, 92, 255, 0.2);
}

.u-feed-owner-btn--danger {
  color: rgba(255, 120, 150, 0.88);
}

.u-feed-owner-btn--danger:hover,
.u-feed-owner-btn--danger:focus-visible {
  background: rgba(255, 92, 124, 0.2);
  color: var(--ink-danger, #ff5c7c);
  outline: none;
  box-shadow: inset 0 0 18px rgba(255, 92, 124, 0.16);
}

.u-feed-owner-btn:active {
  transform: scale(0.96);
}

/* Kommentar-Vorschau unter Actions */
.u-feed-tile-cmt-preview {
  flex-shrink: 0;
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 12, 22, 0.55);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.u-feed-tile.is-comments-open .u-feed-tile-cmt-preview {
  display: none;
}

.u-feed-cmt-preview-more {
  align-self: flex-start;
  border: none;
  background: none;
  color: rgba(138, 92, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 0;
  cursor: pointer;
}

.u-feed-cmt-preview-more:hover {
  color: #b89cff;
  text-decoration: underline;
}

.u-feed-tile-cmt-panel {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 12, 22, 0.72);
  animation: u-feed-cmt-open 0.22s ease-out;
}

.u-feed-tile-cmt-panel[hidden] {
  display: none !important;
}

@keyframes u-feed-cmt-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.u-feed-tile-cmt-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 12px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 92, 255, 0.35) transparent;
}

.u-feed-tile-cmt-empty {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.45;
}

.u-feed-cmt-card {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 130, 170, 0.14);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.u-feed-cmt-card:hover {
  border-color: rgba(138, 92, 255, 0.28);
  box-shadow: 0 0 16px rgba(138, 92, 255, 0.08);
}

.u-feed-cmt-card--reply {
  margin-left: 28px;
  background: rgba(138, 92, 255, 0.05);
  border-color: rgba(138, 92, 255, 0.18);
}

.u-feed-cmt-card--compact {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.u-feed-cmt-card--compact .cmt-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.u-feed-cmt-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, rgba(138, 92, 255, 0.45), rgba(108, 62, 225, 0.35));
  border: 1px solid rgba(138, 92, 255, 0.35);
}

.u-feed-cmt-card--compact .u-feed-cmt-avatar {
  width: 26px;
  height: 26px;
  font-size: 0.68rem;
}

.u-feed-cmt-card-body {
  flex: 1;
  min-width: 0;
}

.u-feed-cmt-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.u-feed-cmt-card-head .cmt-name,
.u-feed-cmt-card-head .u-feed-cmt-profile-link {
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  text-decoration: none;
}

.u-feed-cmt-profile-link:hover,
.u-feed-cmt-avatar-link:hover .u-feed-cmt-avatar {
  color: #c9adff;
  border-color: rgba(138, 92, 255, 0.55);
}

.u-feed-cmt-avatar-link {
  flex-shrink: 0;
  text-decoration: none;
}

.u-feed-cmt-head-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.u-feed-cmt-card-head .cmt-time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
}

.u-feed-cmt-report-btn {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.28);
  padding: 2px 4px;
  cursor: pointer;
  line-height: 1;
  border-radius: 6px;
  font-size: 0.72rem;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.u-feed-cmt-report-btn--mini {
  padding: 2px 6px;
  font-size: 0.62rem;
}

.u-feed-cmt-report-btn--action {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.u-feed-cmt-report-btn:hover,
.u-feed-cmt-report-btn--action:hover {
  color: #e94c5a;
  background: rgba(233, 76, 90, 0.12);
  border-color: rgba(233, 76, 90, 0.35);
}

.u-feed-cmt-card.is-reported {
  opacity: 0.72;
}

.u-feed-cmt-card.is-reply-target {
  border-color: rgba(138, 92, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(138, 92, 255, 0.25);
}

.u-feed-cmt-card .cmt-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

.cmt-mention {
  color: #b89cff;
  font-weight: 700;
}

.u-feed-cmt-reply-btn {
  margin-top: 6px;
  border: 1px solid rgba(138, 92, 255, 0.22);
  background: rgba(138, 92, 255, 0.08);
  color: rgba(200, 175, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.u-feed-cmt-reply-btn:hover {
  color: #fff;
  background: rgba(138, 92, 255, 0.22);
  border-color: rgba(138, 92, 255, 0.45);
}

.u-feed-cmt-reply-slot {
  width: 100%;
}

.u-feed-cmt-reply-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 10px 28px;
}

.u-feed-cmt-reply-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.u-feed-cmt-reply-label {
  font-size: 0.68rem;
  color: rgba(200, 175, 255, 0.85);
}

.u-feed-cmt-reply-label strong {
  color: #fff;
}

.u-feed-cmt-reply-close {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.u-feed-cmt-reply-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.u-feed-cmt-reply-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.u-feed-cmt-reply-input input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(138, 92, 255, 0.35);
  background: rgba(12, 14, 27, 0.75);
  color: #fff;
  font-size: 0.78rem;
  padding: 6px 12px;
  outline: none;
}

.u-feed-cmt-reply-input input:focus {
  border-color: rgba(138, 92, 255, 0.6);
}

.u-feed-cmt-reply-send {
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(138, 92, 255, 0.55), rgba(108, 62, 225, 0.5));
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.u-feed-cmt-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.u-feed-cmt-like-btn {
  border: 1px solid rgba(233, 76, 90, 0.18);
  background: rgba(233, 76, 90, 0.06);
  color: rgba(255, 180, 190, 0.85);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.u-feed-cmt-like-btn:hover,
.u-feed-cmt-like-btn.active {
  color: #fff;
  background: rgba(233, 76, 90, 0.18);
  border-color: rgba(233, 76, 90, 0.4);
}

.u-feed-cmt-like-btn--mini {
  padding: 2px 7px;
  font-size: 0.62rem;
}

.u-feed-cmt-delete-btn {
  border: 1px solid rgba(233, 76, 90, 0.2);
  background: rgba(233, 76, 90, 0.08);
  color: rgba(233, 76, 90, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.u-feed-cmt-delete-btn:hover {
  color: #fff;
  background: rgba(233, 76, 90, 0.22);
  border-color: rgba(233, 76, 90, 0.45);
}

.u-feed-tile-cmt-input-row {
  display: flex;
  gap: 8px;
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.u-feed-tile-cmt-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(120, 130, 170, 0.25);
  background: rgba(12, 14, 27, 0.7);
  color: #fff;
  font-size: 0.8rem;
  padding: 7px 12px;
  outline: none;
}

.u-feed-tile-cmt-input:focus {
  border-color: rgba(138, 92, 255, 0.5);
}

.u-feed-tile-cmt-send {
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, rgba(138, 92, 255, 0.55), rgba(108, 62, 225, 0.5));
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

/* Legacy modal item styles */
.u-feed-cmt-item {
  padding: 8px 0;
  font-size: 0.84rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.u-feed-report-btn {
  margin-left: auto;
  padding: 5px 8px;
  border: none;
  background: transparent;
}

.u-feed-report-btn:hover {
  color: var(--ink-danger, #ff5c7c);
}

.u-feed-follow-btn {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(138, 92, 255, 0.5);
  background: rgba(138, 92, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.u-feed-tile-desc {
  padding: 0 12px 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Empty + Load more */
.u-feed-empty {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 56px 28px;
  border-radius: 18px;
  border: 1px solid rgba(138, 92, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(138, 92, 255, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, rgba(24, 28, 38, 0.72), rgba(12, 18, 32, 0.55));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(138, 92, 255, 0.1);
}

.u-feed-empty::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(138, 92, 255, 0.65), transparent);
  pointer-events: none;
}

.u-feed-empty h3 {
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 800;
}

.u-feed-empty .text-muted {
  position: relative;
  color: var(--ink-muted, #9aa3b2) !important;
}

.u-feed-empty > .btn-outline-light {
  position: relative;
  border: 1px solid rgba(138, 92, 255, 0.35);
  background: rgba(138, 92, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.u-feed-empty > .btn-outline-light:hover {
  background: rgba(138, 92, 255, 0.22);
  border-color: rgba(138, 92, 255, 0.55);
  box-shadow: 0 0 16px rgba(138, 92, 255, 0.2);
  color: #fff;
}

.u-feed-empty-icon {
  position: relative;
  font-size: 2.5rem;
  color: rgba(167, 139, 250, 0.75);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(138, 92, 255, 0.35));
}

.u-feed-load-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 10px;
  margin: 8px 0 28px;
  min-height: 0;
  height: auto;
  width: 100%;
}

.u-feed-load-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

.u-feed-load-status {
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  min-height: 1.25em;
}

.u-feed-load-status.is-loading {
  color: rgba(167, 139, 250, 0.9);
}

.u-feed-load-status.is-loading .bi-arrow-repeat {
  animation: u-feed-spin 0.75s linear infinite;
}

.u-feed-end-msg {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 36px;
  padding: 16px 20px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(138, 92, 255, 0.2);
  background: rgba(138, 92, 255, 0.06);
}

.u-feed-end-msg__icon {
  font-size: 1.5rem;
  color: rgba(167, 139, 250, 0.75);
}

.u-feed-end-msg__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.u-feed-end-msg__text {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 28rem;
}

@keyframes u-feed-spin {
  to { transform: rotate(360deg); }
}

/* Kommentar-Modal */
.u-feed-cmt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--ink-z-page-overlay, 1048);
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.u-feed-cmt-overlay.active {
  display: flex;
}

.u-feed-cmt-panel {
  width: min(100%, 440px);
  max-height: min(85vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--ink-border, rgba(120, 130, 170, 0.22));
  background: linear-gradient(180deg, rgba(24, 28, 38, 0.98), rgba(14, 16, 22, 0.99));
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(138, 92, 255, 0.12);
}

.u-feed-cmt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.u-feed-cmt-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.u-feed-cmt-close {
  border: none;
  background: transparent;
  color: var(--ink-muted, #9aa3b2);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

.u-feed-cmt-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px;
  min-height: 80px;
}

.u-feed-cmt-item {
  padding: 8px 0;
  font-size: 0.84rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.u-feed-cmt-item .cmt-name {
  font-weight: 700;
  color: #fff;
  margin-right: 6px;
}

.u-feed-cmt-item .cmt-time {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 8px;
}

.u-feed-cmt-reply {
  padding-left: 16px;
  margin-top: 4px;
  border-left: 2px solid rgba(138, 92, 255, 0.3);
  font-size: 0.8rem;
}

.u-feed-cmt-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.u-feed-cmt-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(120, 130, 170, 0.25);
  background: rgba(12, 14, 27, 0.7);
  color: #fff;
  font-size: 0.84rem;
  padding: 8px 14px;
  outline: none;
}

.u-feed-cmt-input:focus {
  border-color: rgba(138, 92, 255, 0.5);
}

.u-feed-cmt-send {
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(138, 92, 255, 0.55), rgba(108, 62, 225, 0.5));
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

/* Report modal (shared) */
.u-feed-report-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--ink-z-page-overlay, 1048);
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.u-feed-report-overlay.active {
  display: flex;
}

.u-feed-report-panel {
  width: min(100%, 420px);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--ink-border, rgba(120, 130, 170, 0.22));
  background: var(--ink-panel, rgba(12, 18, 32, 0.85));
}

.u-feed-report-panel h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.u-feed-report-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.88rem;
  cursor: pointer;
}

.u-feed-report-panel textarea {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 14, 27, 0.7);
  color: #fff;
  font-size: 0.85rem;
  min-height: 60px;
}

.u-feed-report-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.u-feed-report-cancel {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.u-feed-report-submit {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #e94c5a, #d43f4d);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.u-feed-tile.is-reported {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 992px) {
  .u-feed-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .u-feed-tile-media {
    max-height: min(45vw, 400px);
  }
  .gallery-grid .u-feed-tile-media {
    max-height: min(45vw, 400px);
  }
}

@media (max-width: 576px) {
  .u-feed-wrap {
    padding: 0 10px;
  }
  .u-feed-wall {
    grid-template-columns: 1fr;
  }
  .u-feed-tile-media {
    max-height: min(85vw, 360px);
  }
  .gallery-grid .u-feed-tile-media {
    max-height: min(85vw, 360px);
  }
  .u-feed-head-nav {
    width: 100%;
  }
}

/* Galerie-Profil: Feed-Kommentar-UX in gallery-grid */
.gallery-item {
  position: relative;
  display: flex;
  width: 100%;
}

.gallery-item > .u-feed-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
}

.gallery-grid .u-feed-tile-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: none;
  height: auto;
}

.gallery-item.is-comments-open .u-feed-tile-cmt-preview {
  display: none;
}

.gallery-item .u-feed-tile-cmt-preview {
  margin-top: 0;
  padding-left: 0;
  padding-right: 0;
  border-top: none;
  background: transparent;
}

.gallery-item .u-feed-tile-cmt-panel {
  margin-top: 0.25rem;
  border-radius: 8px;
  overflow: hidden;
}

/* Galerie: ab Tablet Modal statt Inline (Grid-Höhe bleibt stabil) */
@media (min-width: 768px) {
  .gallery-item .u-feed-cmt-panel-host:empty {
    display: none;
  }

  .gallery-item:not(.is-comments-open) .u-feed-cmt-panel-host .u-feed-tile-cmt-panel[hidden] {
    display: none !important;
  }
}

.u-feed-gallery-cmt-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--ink-z-modal, 1060);
  box-sizing: border-box;
  padding:
    calc(var(--ink-navbar-stack, calc(62px + env(safe-area-inset-top, 0px))) + 16px)
    16px
    max(16px, env(safe-area-inset-bottom, 0px))
    16px;
}

.u-feed-gallery-cmt-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.u-feed-gallery-cmt-dialog {
  width: min(96vw, 920px);
  max-height: min(
    calc(100vh - var(--ink-navbar-stack, 62px) - 48px),
    720px
  );
  margin: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(138, 92, 255, 0.35);
  background: linear-gradient(165deg, rgba(28, 32, 48, 0.98), rgba(12, 14, 22, 0.99));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(138, 92, 255, 0.18);
  overflow: hidden;
  animation: u-feed-gallery-cmt-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes u-feed-gallery-cmt-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.u-feed-gallery-cmt-layout {
  display: flex;
  flex-direction: row;
  min-height: 0;
  flex: 1;
  max-height: min(90vh, 720px);
}

.u-feed-gallery-cmt-media {
  flex: 0 0 42%;
  max-width: 380px;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.u-feed-gallery-cmt-media[hidden] {
  display: none !important;
}

.u-feed-gallery-cmt-media img {
  width: 100%;
  height: 100%;
  max-height: min(90vh, 720px);
  object-fit: cover;
  display: block;
}

.u-feed-gallery-cmt-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.u-feed-gallery-cmt-head {
  flex-shrink: 0;
}

.u-feed-gallery-cmt-slot {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.u-feed-gallery-cmt-slot .u-feed-tile-cmt-panel.is-gallery-modal-panel {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  animation: none;
  margin: 0;
}

.u-feed-gallery-cmt-slot .u-feed-tile-cmt-panel.is-gallery-modal-panel .u-feed-tile-cmt-list {
  max-height: none;
  flex: 1;
  min-height: 120px;
  max-height: min(52vh, 420px);
}

.u-feed-gallery-cmt-slot .u-feed-tile-cmt-panel.is-gallery-modal-panel .u-feed-tile-cmt-input-row {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 22, 0.85);
}

body.u-feed-gallery-cmt-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .u-feed-gallery-cmt-overlay {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .u-feed-gallery-cmt-dialog {
    width: min(94vw, 720px);
  }

  .u-feed-gallery-cmt-media {
    flex: 0 0 36%;
    max-width: 280px;
  }
}

.u-feed-tile-cmt-input-row--guest {
  justify-content: center;
  padding: 10px 12px;
}

.u-feed-tile-cmt-guest-hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.u-feed-tile-cmt-guest-hint a {
  color: #e94c5a;
  text-decoration: none;
  font-weight: 600;
}

.u-feed-tile-cmt-guest-hint a:hover {
  text-decoration: underline;
}
