/* Module "clips" (clips, src/modules.js): lobby tile "Latest clips" and the player window (public/js/modules/clips/). Pages
   only get this file when the module is on (src/routes/pages.js). The button in the room is in altar.css. */

.clip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.clip-list > .empty { grid-column: 1 / -1; }
.clip-card {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  border-radius: var(--r); padding: 4px; transition: background .15s;
}
.clip-card:hover, .clip-card:focus-visible { background: rgba(180, 120, 232, .08); }
.clip-card:focus-visible { outline: 2px solid var(--loa-lit); outline-offset: 1px; }
.clip-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--r) - 2px);
  background: #06040a; border: var(--hairline);
}
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-dur, .clip-kept {
  position: absolute; bottom: 4px; padding: 1px 6px; border-radius: 4px; background: rgba(6, 4, 10, .82);
  font: .68rem/1.4 var(--data); color: var(--ui-text);
}
.clip-dur { right: 4px; }
.clip-kept { left: 4px; color: var(--gold); }
.clip-meta { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-sub { font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Abspielfenster (.overlay aus voodoo.css) */
.clip-overlay { z-index: 60; }
.clip-sheet { width: min(960px, 94vw); display: flex; flex-direction: column; gap: 10px; }
.clip-video { width: 100%; max-height: 70vh; background: #000; border-radius: calc(var(--r) - 2px); }
.clip-foot { flex-wrap: wrap; gap: 8px; align-items: center; font-size: .78rem; }
.clip-keep-note { font-size: .74rem; }

/* clip in the room chat (2.79.1, public/js/chat.js) */
.chat-clip {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; margin-top: 4px;
  max-width: 100%; padding: 6px; border: var(--hairline); border-radius: var(--r); background: rgba(6, 4, 10, .35);
  transition: background .15s;
}
.chat-clip:hover, .chat-clip:focus-visible { background: rgba(180, 120, 232, .1); }
.chat-clip:focus-visible { outline: 2px solid var(--loa-lit); outline-offset: 1px; }
.chat-clip-thumb {
  position: relative; flex: none; width: 112px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--r) - 2px);
  background: #06040a; display: grid; place-items: center;
}
.chat-clip-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chat-clip-play {
  position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(6, 4, 10, .7); color: #fff; font-size: .7rem; padding-left: 2px; box-sizing: border-box;
}
.chat-clip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .8rem; line-height: 1.3; }
.chat-clip-text .muted { font: .7rem/1.3 var(--data); }
