.github-channel {
    --gh-ink: #1e1830;
    --gh-muted: #6f6a7c;
    --gh-line: #e8e3f0;
    --gh-soft: #faf8ff;
    --gh-purple: #6f4bf2;
    --gh-purple-dark: #4e32b8;
    color: var(--gh-ink);
}

.github-hero {
    padding: 4.5rem 0 3rem;
    background: radial-gradient(circle at 82% 0, rgba(124, 77, 255, .18), transparent 28rem), linear-gradient(135deg, #fbf9ff, #fff 70%);
    border-bottom: 1px solid var(--gh-line);
}

.github-hero h1,
.github-project-hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.github-kicker {
    margin: 0 0 .65rem;
    color: var(--gh-purple-dark);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.github-lead {
    max-width: 780px;
    margin: 1.1rem 0 0;
    color: var(--gh-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.github-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-top: 1.6rem;
    color: var(--gh-muted);
}

.github-stat-row strong {
    display: block;
    color: var(--gh-ink);
    font-size: 1.3rem;
}

.github-body { padding: 2rem 0 5rem; }

.github-category-bar {
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: thin;
}

.github-category-bar a {
    flex: 0 0 auto;
    padding: .58rem .85rem;
    border: 1px solid var(--gh-line);
    border-radius: 999px;
    background: #fff;
    color: var(--gh-muted);
    font-size: .82rem;
    text-decoration: none;
}

.github-category-bar a span { margin-left: .25rem; color: var(--gh-purple); font-weight: 700; }
.github-category-bar a.is-active { border-color: var(--gh-purple); background: #f0ebff; color: var(--gh-purple-dark); }

.github-filter {
    max-width: 720px;
    margin: 1.25rem 0 0;
    padding: 1rem;
    border: 1px solid var(--gh-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(66, 42, 120, .06);
}

.github-filter label { display: block; margin-bottom: .4rem; color: var(--gh-muted); font-size: .78rem; font-weight: 700; }
.github-filter-row { display: flex; gap: .6rem; }
.github-filter input { min-width: 0; flex: 1; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--gh-line); border-radius: 10px; }
.github-filter button, .github-button { min-height: 44px; padding: .6rem 1rem; border: 0; border-radius: 10px; background: var(--gh-purple); color: #fff; font-weight: 700; text-decoration: none; }
.github-filter button:hover, .github-button:hover { background: var(--gh-purple-dark); color: #fff; }

.github-section { margin-top: 3rem; }
.github-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.github-section-heading h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.02em; }
.github-section-heading a { color: var(--gh-purple-dark); font-weight: 700; text-decoration: none; }
.github-muted { color: var(--gh-muted); font-size: .84rem; }

.github-featured-grid, .github-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.github-featured-card, .github-project-card { display: flex; min-width: 0; flex-direction: column; padding: 1.2rem; border: 1px solid var(--gh-line); border-radius: 16px; background: #fff; color: inherit; box-shadow: 0 8px 26px rgba(66, 42, 120, .05); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.github-featured-card:hover, .github-project-card:hover { border-color: #cfc1ff; box-shadow: 0 14px 32px rgba(66, 42, 120, .1); transform: translateY(-2px); }
.github-featured-card h3, .github-project-card h3 { margin: .55rem 0 .35rem; font-size: 1.18rem; line-height: 1.3; }
.github-featured-card p, .github-project-card p { display: -webkit-box; margin: .35rem 0 1rem; overflow: hidden; color: var(--gh-muted); line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.github-project-card h3 a { color: inherit; text-decoration: none; }
.github-card-label { color: var(--gh-purple-dark); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.github-card-metrics, .github-project-fullname { color: var(--gh-muted); font-size: .78rem; }
.github-project-card__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.github-featured-badge { padding: .2rem .45rem; border-radius: 999px; background: #eee8ff; color: var(--gh-purple-dark); font-size: .68rem; font-weight: 700; }
.github-metric-line, .github-project-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: auto; color: var(--gh-muted); font-size: .76rem; }
.github-project-meta { justify-content: space-between; padding-top: .7rem; border-top: 1px solid var(--gh-line); }
.github-empty { padding: 2rem; border: 1px dashed var(--gh-line); border-radius: 14px; color: var(--gh-muted); text-align: center; }

.github-secondary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.github-mini-item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--gh-line); color: inherit; text-decoration: none; }
.github-mini-item strong, .github-mini-item small { display: block; }
.github-mini-item small { margin-top: .2rem; color: var(--gh-muted); font-size: .75rem; }
.github-mini-item b { color: var(--gh-purple-dark); white-space: nowrap; font-size: .78rem; }
.github-pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 1.6rem; }
.github-pagination a, .github-pagination span { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--gh-line); border-radius: 10px; color: var(--gh-ink); text-decoration: none; }
.github-pagination span { border-color: var(--gh-purple); background: #f0ebff; color: var(--gh-purple-dark); font-weight: 700; }

.github-breadcrumb { display: flex; gap: .55rem; margin-bottom: 1.4rem; color: var(--gh-muted); font-size: .82rem; }
.github-breadcrumb a { color: var(--gh-purple-dark); text-decoration: none; }
.github-project-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 2rem; padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--gh-line); }
.github-project-hero__main .github-project-fullname { margin-top: .45rem; }
.github-action-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.github-button:not(.github-button--primary) { border: 1px solid var(--gh-line); background: #fff; color: var(--gh-purple-dark); }
.github-project-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; align-self: start; }
.github-project-stats div { padding: .8rem; border: 1px solid var(--gh-line); border-radius: 12px; background: var(--gh-soft); }
.github-project-stats strong, .github-project-stats span { display: block; }
.github-project-stats strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.github-project-stats span { margin-top: .25rem; color: var(--gh-muted); font-size: .72rem; }
.github-detail-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr); gap: 2rem; margin-top: 2.5rem; }
.github-detail-section { margin-bottom: 2.2rem; }
.github-detail-section h2, .github-side-card h2 { margin: 0 0 .75rem; font-size: 1.25rem; }
.github-detail-section p, .github-detail-section li, .github-prose { color: #494354; line-height: 1.8; }
.github-detail-section ul { padding-left: 1.2rem; }
.github-prose { white-space: normal; }
.github-risk-note { padding: .8rem 1rem; border-left: 3px solid #e3a23c; background: #fff8ea; }
.github-screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.github-screenshot-grid img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--gh-line); border-radius: 12px; background: var(--gh-soft); }
.github-side-card { margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--gh-line); border-radius: 14px; background: #fff; }
.github-facts { display: grid; grid-template-columns: 1fr 1.5fr; gap: .5rem .7rem; margin: 0; font-size: .8rem; }
.github-facts dt { color: var(--gh-muted); }
.github-facts dd { margin: 0; overflow-wrap: anywhere; }
.github-facts a, .github-link-list a { color: var(--gh-purple-dark); text-decoration: none; }
.github-link-list { display: grid; gap: .65rem; margin: 0; padding-left: 1rem; font-size: .84rem; }
.github-link-list small { display: block; color: var(--gh-muted); font-size: .72rem; }

@media (max-width: 900px) {
    .github-featured-grid, .github-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .github-project-hero, .github-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .github-hero { padding: 3rem 0 2rem; }
    .github-body { padding-top: 1.2rem; }
    .github-filter-row { flex-direction: column; }
    .github-filter button { width: 100%; }
    .github-featured-grid, .github-project-grid, .github-secondary-grid { grid-template-columns: 1fr; }
    .github-project-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .github-screenshot-grid { grid-template-columns: 1fr; }
    .github-section-heading { align-items: start; flex-direction: column; }
}
