:root {
    --bg: #faf9f6;
    --surface: #ffffff;
    --border: #e4e1d8;
    --text-primary: #232220;
    --text-secondary: #5c584f;
    --text-muted: #8b8779;
    --accent: #0f6e56;
    --accent-bg: #e1f5ee;
    --accent-text: #04342c;
    --pill-a: #eeedfe; --pill-a-text: #26215c;
    --pill-b: #faece7; --pill-b-text: #4a1b0c;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-primary);
    font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar .brand { font-weight: 600; font-size: 19px; color: var(--text-primary); }
.topbar nav { display: flex; gap: 18px; font-size: 16px; }
.topbar nav a { color: var(--text-secondary); }

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 640px;
    margin: 16px auto 8px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 17px;
    color: var(--text-primary);
}
.search-icon { font-size: 18px; opacity: 0.6; }

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 8px 16px 60px;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.post-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.post-card .summary {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
}
.post-card .summary a { color: var(--text-primary); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill {
    display: inline-block;
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--pill-a);
    color: var(--pill-a-text);
}
.pill.song, .pill.album { background: var(--accent-bg); color: var(--accent-text); }
.pill.artist { background: var(--pill-a); color: var(--pill-a-text); }

.platform-icons { margin-left: 4px; font-size: 16px; color: var(--text-muted); }

.load-more { text-align: center; padding: 20px; color: var(--text-secondary); }

.entity-header { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.entity-header img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.entity-header h1 { font-size: 26px; margin: 0 0 4px; }
.entity-type-badge { font-size: 14px; color: var(--text-muted); text-transform: capitalize; }

.links-row { display: flex; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.links-row a { font-size: 16px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); }

form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
form.stack label { font-size: 16px; font-weight: 600; }
form.stack input, form.stack textarea {
    font-size: 17px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
}
form.stack textarea { min-height: 220px; resize: vertical; }
form.stack button {
    align-self: flex-start;
    font-size: 16px;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

table.feed-table { width: 100%; border-collapse: collapse; font-size: 16px; }
table.feed-table td, table.feed-table th { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; }

.empty-state { text-align: center; color: var(--text-secondary); padding: 60px 20px; font-size: 17px; }
