:root {
    --bg: #0b0f14;
    --panel: #111822;
    --panel2: #0f1620;
    --text: #e7eef7;
    --muted: #9fb0c3;
    --border: #233041;
    --link: #7cc4ff;
    --btn: #162233;
    --btnHover: #1b2a40;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background: radial-gradient(1200px 600px at 20% 0%, rgba(124, 196, 255, .12), transparent 60%),
        radial-gradient(900px 500px at 80% 10%, rgba(255, 125, 125, .10), transparent 55%),
        var(--bg);
    color: var(--text);
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 22px 18px;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    box-shadow: var(--shadow);
    font-size: 20px;
}

h1 {
    margin: 0 0 2px 0;
    font-size: 22px;
    letter-spacing: .2px;
}

h2 {
    margin: 0 0 10px 0;
    font-size: 16px;
    letter-spacing: .2px;
}

p {
    margin: 6px 0 0 0;
}

.muted {
    color: var(--muted);
}

.nav {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--btn);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}

.btn:hover {
    background: var(--btnHover);
    text-decoration: none;
}

.panel {
    margin-top: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(17, 24, 34, .92), rgba(15, 22, 32, .92));
    box-shadow: var(--shadow);
}

.feed {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(10, 14, 20, .55);
    padding: 12px 12px 10px 12px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.author strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author span {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.time {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.35;
    white-space: pre-wrap;
}

.thumb {
    margin-top: 10px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.footer-note {
    margin-top: 12px;
    font-size: 12px;
}

.nav-sep {
    opacity: 0.4;
    margin: 0 6px;
    user-select: none;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 10px;
}

/* Team selector grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    /* 8 across */
    gap: 10px;
    margin-bottom: 14px;
}

/* Fixed-ish uniform buttons inside the grid */
.team-grid .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    /* consistent height */
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}