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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #1a1a1a;
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tagline {
  font-size: 0.85rem;
  color: #888;
}

/* Update time */
.last-update {
  font-size: 0.8rem;
  color: #888;
  padding: 16px 0 8px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 16px;
}

/* News list */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}

.loading {
  text-align: center;
  padding: 60px 0;
  color: #aaa;
  font-size: 0.95rem;
}

/* Card */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s;
}

.card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-source {
  font-size: 0.75rem;
  color: #1da1f2;
  margin-bottom: 4px;
}

.card-source a {
  color: #1da1f2;
  text-decoration: none;
}

.card-text {
  font-size: 0.95rem;
  margin-bottom: 8px;
  word-break: break-word;
}

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

.card-meta .likes {
  color: #e0245e;
}

.card-meta .retweets {
  color: #17bf63;
}

/* Footer */
footer {
  text-align: center;
  padding: 32px 0;
  color: #aaa;
  font-size: 0.8rem;
}

/* Translate button */
.translate-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: #666;
  cursor: pointer;
  margin-bottom: 6px;
  transition: all 0.15s;
}

.translate-btn:hover {
  border-color: #1da1f2;
  color: #1da1f2;
  background: #f0f7ff;
}

.translate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.translated-tip {
  font-size: 0.7rem;
  color: #aaa;
  display: inline-block;
  margin-top: 4px;
}

/* Error */
.error {
  text-align: center;
  padding: 60px 0;
  color: #e0245e;
}
