/* Eventliste (Startseite, Benutzerprofil) — Core-CSS lädt header.html parallel */
.cc-events-panel {
  width: 95%;
  max-width: none;
  margin: 22px auto 8px;
  text-align: left;
  box-sizing: border-box;
}

.cc-events-panel--profile {
  width: 600px;
  max-width: 100%;
}

.cc-events-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.cc-events {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-event {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cc-event-avatar {
  flex: 0 0 56px;
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--inset);
  line-height: 0;
}

.body_mc .cc-event-avatar img {
  display: block;
  width: 56px;
  height: 56px;
  max-width: none;
  object-fit: cover;
  object-position: center 20%;
}

.cc-event-main {
  min-width: 0;
  flex: 1 1 auto;
}

.cc-event-main p {
  margin: 0 0 6px;
}

.cc-event-nick {
  font-weight: 700;
}

.cc-event-quote {
  color: var(--text);
}

.cc-event-mood {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.body_mc .cc-event-moodicon {
  display: block;
  width: auto;
  height: 16px;
  max-width: none;
  object-fit: contain;
}

.cc-event-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.cc-event-photos a {
  display: block;
  line-height: 0;
}

.body_mc .cc-event-photo {
  display: block;
  width: 96px;
  height: 96px;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.cc-event-game {
  display: inline-block;
  margin: 4px 0 6px;
  line-height: 0;
}

.body_mc .cc-event-game img {
  display: block;
  width: 60px;
  height: 60px;
  max-width: none;
  object-fit: contain;
  border-radius: 6px;
}

.cc-event-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.cc-event-time {
  color: var(--muted);
  font-size: 0.8rem;
}

.cc-event-delete {
  display: inline-flex;
  cursor: pointer;
  line-height: 0;
  opacity: 0.75;
}

.cc-event-delete:hover {
  opacity: 1;
}

.body_mc .cc-event-delete img {
  display: block;
  width: 12px;
  height: 12px;
  max-width: none;
  object-fit: contain;
}

@media (max-width: 640px) {
  .cc-event {
    gap: 10px;
    padding: 10px;
  }

  .body_mc .cc-event-photo {
    width: 76px;
    height: 76px;
  }
}
