/* UPLINK // files.css — File cards, progress bars, drag-and-drop zone. */

/* file cards */
.fcard {
  margin-top: 6px;
  width: min(380px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.fcard.s-send,
.fcard.s-recv {
  border-color: #ff6a1355;
}
.fc-top {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.fc-ic {
  flex: none;
  width: 44px;
  height: 50px;
  display: grid;
  place-items: end center;
  padding-bottom: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%);
  position: relative;
}
.fc-ic::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 22%;
  background: var(--line);
}
.fc-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fc-info b {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-info small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-bar {
  height: 6px;
  margin-top: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.fc-bar i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 6px, #ff8a45 6px 12px);
  background-size: 17px 17px;
  animation: barRoll 0.6s linear infinite;
  transition: width 0.15s;
}
@keyframes barRoll {
  to {
    background-position: 17px 0;
  }
}
.fc-st {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin-top: 7px;
  text-transform: uppercase;
}
.fc-st.ok {
  color: var(--ok);
  margin: 0;
}
.fc-st.bad {
  color: var(--bad);
}
.fc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.fc-dl {
  padding: 8px 12px;
  font-size: 11px;
  text-decoration: none;
}
.mb .fc-prev {
  display: block;
  max-width: 100%;
  max-height: 300px;
  margin: 10px 0 0;
  border: 1px solid var(--line);
  background: #000;
}
.mb img.fc-prev {
  cursor: zoom-in;
}
.fc-aud {
  display: block;
  width: 100%;
  margin-top: 10px;
  height: 36px;
}

/* drop zone */
.dropzone {
  position: absolute;
  inset: 8px;
  z-index: 20;
  display: grid;
  place-items: center;
  background: #0b0b0ce6;
  border: 2px dashed var(--accent);
  pointer-events: none;
  animation: glitchIn 0.3s steps(1);
}
.dropzone div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px;
}
.dropzone b {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.9;
  color: var(--accent);
}
.dropzone span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mute);
}
