:root {
  color-scheme: dark;
  --bg: #101113;
  --panel: #191b1f;
  --panel-2: #22252b;
  --text: #f2f2ee;
  --muted: #a8adaf;
  --line: #30343b;
  --accent: #44c2a4;
  --accent-2: #f2b84b;
  --danger: #ef6b6b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button,
a {
  min-height: 44px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 19, 0.94);
  backdrop-filter: blur(16px);
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.eyebrow,
.meta {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
}

main {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(320px, 100%);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.tab.active {
  background: var(--panel-2);
  color: var(--text);
}

button,
.source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.primary {
  border-color: transparent;
  background: var(--accent);
  color: #06241d;
  font-weight: 800;
}

.ghost {
  background: transparent;
}

.feed-manager {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--text);
}

.feed-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.feed {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px 6px 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
}

.feed span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed button {
  min-height: 30px;
  padding: 2px 8px;
  border-color: transparent;
  background: transparent;
  color: var(--danger);
}

.status {
  min-height: 22px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.articles {
  display: grid;
  gap: 12px;
}

.article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.article-main {
  padding: 15px;
}

h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.summary {
  margin: 0 0 14px;
  color: #d7d9d6;
  line-height: 1.55;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.play {
  grid-column: span 2;
  border-color: transparent;
  background: var(--accent-2);
  color: #281b02;
  font-size: 18px;
  font-weight: 900;
}

@media (min-width: 680px) {
  .topbar {
    padding: 18px 28px;
  }

  form {
    grid-template-columns: 1fr auto;
  }

  .actions {
    display: flex;
    flex-wrap: wrap;
  }

  .play {
    grid-column: auto;
    min-width: 118px;
  }
}
