.file-share-wrapper {
  margin-bottom: 24px;
}

.file-share-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(40, 48, 63, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.file-share-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-share-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4e7cf5, #4ff5cf);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 20px;
}

.file-share-card__info {
  flex: 1;
}

.file-share-card__name {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.file-share-card__meta {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.file-share-card__status {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.file-share-card__status--success {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}

.file-share-card__status--error {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
}

.file-share-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.file-share-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-share-card__download-btn,
.file-share-card__open-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.file-share-card__download-btn {
  background: #4e7cf5;
  color: #fff;
}

.file-share-card__open-btn {
  background: rgba(78, 124, 245, 0.12);
  color: #365ac5;
}

.file-share-card__footer-meta {
  font-size: 13px;
  color: #888;
}

.file-share-card--media {
  gap: 0;
  overflow: hidden;
}

.file-share-card__preview {
  margin: 0 -20px;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  background: #f5f7fb;
}

.file-share-card__preview img,
.file-share-card__preview video {
  display: block;
  width: 100%;
  height: auto;
}

.file-share-card__preview video {
  background: #000;
  max-height: 320px;
}

.file-share-loading,
.file-share-error {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: #555;
  font-size: 14px;
}

.file-share-empty {
  color: #999;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 480px) {
  .file-share-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-share-card__actions {
    width: 100%;
    justify-content: stretch;
  }

  .file-share-card__download-btn,
  .file-share-card__open-btn {
    width: 100%;
    justify-content: center;
  }
}