* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: #333;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.filters {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filters select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.link-info {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-weight: 600;
  margin-bottom: 4px;
  word-break: break-word;
}

.link-title a {
  color: #2980b9;
  text-decoration: none;
}

.link-title a:hover {
  text-decoration: underline;
}

.link-url {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.link-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 12px;
}

.link-meta .nickname {
  background: #e8f4fd;
  color: #2980b9;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.delete-btn {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.delete-btn:hover {
  background: #fde8e8;
}

.loading, .empty {
  text-align: center;
  color: #999;
  padding: 40px;
}
