:root {
  --bg:           #0d0f14;
  --surface:      rgba(255,255,255,0.04);
  --surface-hover:rgba(99,179,237,0.06);
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(99,179,237,0.3);
  --accent:       #63b3ed;
  --text:         #e0e6f0;
  --text-muted:   #8899b0;
  --radius:       14px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  font-size: 18px;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */

header {
  background: radial-gradient(ellipse at top, #1a2540 0%, #0d0f14 70%);
  border-bottom: 1px solid var(--border);
  padding: 2rem 2.5rem 2.25rem;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo-link { display: flex; flex-shrink: 0; }

.logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 28%;
  box-shadow: 0 6px 24px rgba(99,179,237,0.2), 0 2px 8px rgba(0,0,0,0.5);
}

.header-text { display: flex; flex-direction: column; }

h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #63b3ed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.date-label {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Layout ──────────────────────────────────────────────────────────────────── */

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 3rem;
}

.divider { background: var(--border); }

.column { min-width: 0; }

/* ── Column headers ──────────────────────────────────────────────────────────── */

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.lang-header {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.flag { font-size: 1.4rem; }

.rss-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(99,179,237,0.08);
  border: 1px solid rgba(99,179,237,0.2);
  border-radius: 20px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}

.rss-btn:hover {
  background: rgba(99,179,237,0.15);
  border-color: rgba(99,179,237,0.4);
}

/* ── Article list ────────────────────────────────────────────────────────────── */

.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.article:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.rank {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 2.5rem;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.rank.top3 { color: var(--accent); font-size: 1.1rem; }

.thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}

.content { flex: 1; min-width: 0; }

.title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}

.article:hover .title { color: var(--accent); }

.meta {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sep { margin: 0 0.35rem; }

/* ── States ──────────────────────────────────────────────────────────────────── */

.state-msg {
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .columns { grid-template-columns: 1fr; gap: 3rem 0; }
  .divider { display: none; }
  main { padding: 1.5rem; }
  header { padding: 1.5rem; }
}
