/* ============================================
   COMMUNITY PAGE — Reddit-style mixed feed
   ============================================ */

.community-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 24px 60px;
    min-height: 100vh;
}

/* Two-column layout: feed + sidebar */
.community-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

/* ==========================================
   FEED HEADER
   ========================================== */

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.feed-header h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feed-sort {
    display: flex;
    gap: 4px;
}

.sort-btn {
    padding: 6px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.sort-btn:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}
.sort-btn.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

/* ==========================================
   FEED TABS — underline style content type filter
   ========================================== */

.feed-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.feed-tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    bottom: -1px;
}
.feed-tab:hover {
    color: var(--text-secondary);
}
.feed-tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
    font-weight: 600;
}

/* ==========================================
   CREATE BAR — compact search + action icons
   ========================================== */

.feed-create-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.feed-create-bar .create-search {
    flex: 1;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.15s;
}
.feed-create-bar .create-search::placeholder { color: var(--text-muted); }
.feed-create-bar .create-search:focus {
    border-color: rgba(var(--primary-rgb), 0.4);
}

.feed-create-bar .create-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.15s;
    flex-shrink: 0;
}
.feed-create-bar .create-btn:hover {
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.1);
}
.feed-create-bar .create-btn svg { width: 18px; height: 18px; }

/* (filter pills removed — using .feed-tabs above) */

/* ==========================================
   FEED LIST
   ========================================== */

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-loading, .feed-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   FEED CARD — Base
   ========================================== */

.feed-card {
    text-decoration: none;
    color: inherit;
}

/* Load More */
.feed-load-more {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.feed-load-more:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.04);
}

/* ==========================================
   SIDEBAR
   ========================================== */

/* Highlights toggle — hidden on desktop */
.highlights-toggle { display: none; }
/* Highlights body — transparent wrapper on desktop */
.highlights-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.community-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 100px;
}

.sidebar-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px;
}

.sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sidebar-title h3 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0;
}

.sidebar-more {
    font-size: 0.7rem;
    color: #71717a;
    transition: color 0.15s;
}
.sidebar-more:hover { color: var(--primary-light); }

.sidebar-loading {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Sidebar items */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.sidebar-item:hover { background: rgba(255, 255, 255, 0.04); }

.sidebar-item-rank {
    font-size: 0.7rem;
    font-weight: 700;
    color: #71717a;
    min-width: 16px;
    text-align: center;
}

.sidebar-item-body {
    flex: 1;
    min-width: 0;
}

.sidebar-item-title {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.sidebar-item-meta {
    font-size: 0.66rem;
    color: #71717a;
}

.sidebar-item-stat {
    font-size: 0.7rem;
    color: #71717a;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}
.sidebar-item-stat svg {
    width: 11px;
    height: 11px;
    opacity: 0.7;
}

/* Sidebar empty */
.sidebar-empty {
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ==========================================
   CONTEST FEATURED CARD (inline in feed)
   ========================================== */

.ch-feat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.ch-feat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.15), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}
.ch-feat:hover::before { opacity: 1; }
.ch-feat:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.06) 100%);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.12);
}
.ch-feat + .ch-feat { margin-top: -2px; }

/* Cover thumbnails — overlapping strip */
.ch-feat-covers {
    display: flex;
    flex-shrink: 0;
}
.ch-feat-covers img {
    width: 40px;
    height: 57px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--bg-surface);
    margin-left: -10px;
    position: relative;
    transition: transform 0.2s;
}
.ch-feat-covers img:first-child { margin-left: 0; }
.ch-feat:hover .ch-feat-covers img { transform: translateY(-2px); }

.ch-feat-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ch-feat-top {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ch-feat-label {
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.ch-feat-tags { display: flex; gap: 4px; }
.ch-feat-tag {
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    font-size: 0.56rem;
    font-weight: 500;
}
.ch-feat-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ch-feat-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ch-feat-stats {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.ch-feat-countdown {
    padding: 1px 8px;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    font-size: 0.62rem;
    font-weight: 700;
}

.ch-feat-cta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.2s;
    white-space: nowrap;
}
.ch-feat:hover .ch-feat-cta {
    background: rgba(139, 92, 246, 0.25);
    color: #ddd6fe;
}
.ch-feat-cta svg { width: 14px; height: 14px; }

/* ==========================================
   CONTESTS TAB — grid cards
   ========================================== */

.ch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.ch-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
}
.ch-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Cover thumbnails — horizontal strip */
.ch-card-covers {
    display: flex;
    gap: 0;
    height: 100px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}
.ch-card-covers img {
    flex: 1;
    min-width: 0;
    height: 100%;
    object-fit: cover;
}
.ch-card-covers--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.ch-card-covers--empty svg { width: 28px; height: 28px; opacity: 0.3; }

.ch-card-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.ch-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ch-card-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.ch-card-status--active {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
}
.ch-card-status--ended {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.ch-card-tags { display: flex; gap: 4px; }
.ch-card-tag {
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    font-size: 0.58rem;
    font-weight: 500;
}
.ch-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.ch-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ch-card-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 4px;
}
.ch-card-bottom span + span::before {
    content: '·';
    margin-right: 8px;
    opacity: 0.4;
}
.ch-card-countdown {
    padding: 1px 7px;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    font-size: 0.62rem;
    font-weight: 700;
}

/* ==========================================
   STYLE TOGGLE BUTTON
   ========================================== */

.style-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-left: 8px;
}
.style-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.style-toggle-btn svg { width: 16px; height: 16px; }
.style-toggle-btn:hover { color: var(--text-secondary); }
.style-toggle-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* ==========================================
   STYLE A — Single-column cards (same card design, no masonry)
   ========================================== */
.feed-list:not(.style-b) {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.feed-list:not(.style-b) .b-card {
    animation: none;
    transform-style: flat;
    will-change: auto;
}
.feed-list:not(.style-b) .b-card-shine { display: none; }
.feed-list:not(.style-b) .b-card::after { display: none; }

/* List view meta adjustments */
.feed-list:not(.style-b) .b-meta {
    flex-wrap: wrap;
    gap: 6px 10px;
}
.feed-list:not(.style-b) .b-actions {
    flex-wrap: nowrap;
    gap: 4px;
}
.feed-list:not(.style-b) .b-rating {
    margin-left: 0;
    margin-right: 8px;
    order: 10; /* Push to end before actions */
}
.feed-list:not(.style-b) .b-actions {
    order: 11;
}
/* Hide tier preview in list view (but keep review cover) */
.feed-list:not(.style-b) .b-mini-tierlist {
    display: none;
}
/* In list view, don't reserve extra space for tier preview */
.feed-list:not(.style-b) .feed-card--tierlist .b-body {
    padding-right: 16px;
}
/* In list view, keep meta content away from review cover image */
.feed-list:not(.style-b) .feed-card--review .b-meta {
    padding-right: 108px;
}
/* Slightly larger review cover in list view to balance margins */
.feed-list:not(.style-b) .b-review-cover {
    width: 88px;
    height: 123px;
}

/* ==========================================
   STYLE B — Masonry glass cards
   ========================================== */

/* Avatar initial — hidden in Style A */
.feed-card-avatar { display: none; }

/* Staggered two-column layout */
.feed-list.style-b {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.b-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    perspective: 800px;
}
.b-col-right {
    margin-top: 60px;
}

/* ---- Entrance animation ---- */
@keyframes bCardEnter {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.feed-card.b-card {
    animation: bCardEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.b-col .b-card:nth-child(1) { animation-delay: 0.0s; }
.b-col .b-card:nth-child(2) { animation-delay: 0.08s; }
.b-col .b-card:nth-child(3) { animation-delay: 0.16s; }
.b-col .b-card:nth-child(4) { animation-delay: 0.24s; }
.b-col .b-card:nth-child(5) { animation-delay: 0.32s; }
.b-col .b-card:nth-child(6) { animation-delay: 0.40s; }
.b-col .b-card:nth-child(7) { animation-delay: 0.48s; }
.b-col .b-card:nth-child(8) { animation-delay: 0.56s; }
/* Right column starts slightly later */
.b-col-right .b-card:nth-child(1) { animation-delay: 0.06s; }
.b-col-right .b-card:nth-child(2) { animation-delay: 0.14s; }
.b-col-right .b-card:nth-child(3) { animation-delay: 0.22s; }
.b-col-right .b-card:nth-child(4) { animation-delay: 0.30s; }
.b-col-right .b-card:nth-child(5) { animation-delay: 0.38s; }
.b-col-right .b-card:nth-child(6) { animation-delay: 0.46s; }
.b-col-right .b-card:nth-child(7) { animation-delay: 0.54s; }
.b-col-right .b-card:nth-child(8) { animation-delay: 0.62s; }

/* ---- Card base ---- */
.feed-card.b-card {
    display: block;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.03, 0.98, 0.52, 0.99),
                border-color 0.3s,
                box-shadow 0.6s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

/* Hover — border brightens (tilt + shadow handled by JS) */
.feed-card.b-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Cursor-following shine overlay — uses accent color */
.b-card-shine {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.4s;
    background: radial-gradient(
        500px circle at var(--shine-x, 50%) var(--shine-y, 50%),
        rgba(var(--primary-rgb), 0.12) 0%,
        rgba(var(--primary-rgb), 0.03) 25%,
        transparent 50%
    );
}
.feed-card.b-card:hover .b-card-shine {
    opacity: 1;
}

/* Edge glow on hover — accent colored */
.feed-card.b-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.1),
                0 0 24px rgba(var(--primary-rgb), 0.08),
                0 0 60px rgba(var(--primary-rgb), 0.03);
}
.feed-card.b-card:hover::after {
    opacity: 1;
}

/* ---- Card body ---- */
.b-body {
    padding: 16px 16px 8px;
    min-height: 100px;
}

.b-type {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.b-type.type-discussion { color: #60a5fa; }
.b-type.type-tier-list { color: #a78bfa; }
.b-type.type-review { color: #34d399; }

.b-contest-tag {
    display: inline;
    padding: 1px 6px;
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
    vertical-align: middle;
}
.b-contest-tag:hover {
    background: rgba(139, 92, 246, 0.22);
    color: #ddd6fe;
}

.b-card .b-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating badge for review cards - adaptive colors */
.b-card .b-rating {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    /* Default style if no score class applied */
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    white-space: nowrap;
    margin-left: auto;
    margin-right: 8px;
}
/* Review score colors - matching anime page */
.b-card .b-rating.score-red { background: rgba(248, 113, 113, 0.2); color: #f87171; }
.b-card .b-rating.score-orange { background: rgba(251, 146, 60, 0.2); color: #fb923c; }
.b-card .b-rating.score-yellow { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.b-card .b-rating.score-green { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.b-card .b-rating.score-blue { background: rgba(96, 165, 250, 0.2); color: #60a5fa; }
.b-card .b-rating.score-purple { background: rgba(192, 132, 252, 0.2); color: #c084fc; }

.b-card .b-preview {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.b-card .b-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 4px;
    float: right;
}

/* Review thumbnail — floated right */
.b-card .b-thumb {
    width: 46px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    float: right;
    margin: 0 0 6px 12px;
    background: rgba(255, 255, 255, 0.03);
}
.b-card .b-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Card meta (bottom bar) ---- */
.b-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px 14px;
}

.b-meta .b-avatar-wrap {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
/* Remove border for avatars without frames */
.b-meta .b-avatar-wrap.has-avatar:not(.has-frame) {
    border: none !important;
    background: transparent !important;
}
.b-meta .b-avatar-wrap.has-frame {
    border: 2px solid #fff;
}
.b-meta .b-avatar-wrap.frame-gold { border-color: #fbbf24; }
.b-meta .b-avatar-wrap.frame-cyan { border-color: #22d3ee; }
.b-meta .b-avatar-wrap.frame-pink { border-color: #f472b6; }
.b-meta .b-avatar-wrap.frame-red { border-color: #ef4444; }
.b-meta .b-avatar-wrap.frame-custom-color { border-color: var(--frame-color); }
.b-meta .b-avatar-wrap.frame-gradient {
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-surface), var(--bg-surface)),
                      linear-gradient(135deg, var(--frame-g1), var(--frame-g2), var(--frame-g3));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
.b-meta .b-avatar-wrap.frame-animated {
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-surface), var(--bg-surface)),
                      conic-gradient(from var(--frame-angle, 0deg), var(--frame-g1), var(--frame-g2), var(--frame-g3), var(--frame-g1));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: frameAngle 4s linear infinite;
}
.b-meta .b-avatar {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 700;
    color: #fff;
    object-fit: cover;
}
.b-meta img.b-avatar {
    object-fit: cover;
}

.b-meta .b-author {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    z-index: 1;
}
.b-meta .b-author:hover {
    color: var(--text-primary);
}

.b-meta .supporter-tier-badge {
    font-size: 0.6rem;
    vertical-align: middle;
}

.b-meta .b-time {
    font-size: 0.72rem;
    color: #71717a;
    margin-right: auto;
}
.b-meta .b-time::before {
    content: '\00b7';
    margin-right: 6px;
    color: #52525b;
}

/* ---- Inline actions (votes + stats) ---- */
.b-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.b-actions .vote-arrow {
    padding: 3px;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.b-actions .vote-arrow svg { width: 14px; height: 14px; }
.b-actions .vote-arrow:hover { color: var(--primary-light); background: rgba(var(--primary-rgb), 0.1); }
.b-actions .vote-arrow.voted[data-vote="1"] { color: #10b981; }
.b-actions .vote-arrow.voted[data-vote="-1"] { color: #ef4444; }

/* Heart button for tier list likes */
.b-actions .vote-heart {
    padding: 3px;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.b-actions .vote-heart svg { width: 16px; height: 16px; }
.b-actions .vote-heart:hover { color: #f472b6; background: rgba(244, 114, 182, 0.1); }
.b-actions .vote-heart.liked { color: #ec4899; }
.b-actions .vote-heart.liked:hover { color: #db2777; }

.b-actions .vote-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: #9ca3af;
    min-width: 14px;
    text-align: center;
}
.b-actions .vote-count.positive { color: #10b981; }
.b-actions .vote-count.negative { color: #ef4444; }

.b-actions .b-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: #6b7280;
    margin-left: 8px;
}
.b-actions .b-stat svg {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

/* ---- Tier list / review card body — keep text clear of preview ---- */
.feed-card--tierlist .b-body,
.feed-card--review .b-body {
    padding-right: 140px;
}

/* ---- Review cover (top-right, like tier grid) ---- */
.b-review-cover {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 80px;
    height: 112px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.b-review-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feed-card.b-card:hover .b-review-cover {
    opacity: 0.85;
}

/* ---- Tier list mini preview (blurred thumbnail, top-right) ---- */
.b-mini-tierlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-radius: 6px;
    overflow: hidden;
    filter: blur(0.6px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s, filter 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.feed-card.b-card:hover .b-mini-tierlist {
    opacity: 0.7;
    filter: blur(0.3px);
}
.mini-tier-row {
    display: flex;
    min-height: 14px;
}
.mini-tier-label {
    width: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.4rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
}
.mini-tier-items {
    flex: 1;
    display: flex;
    gap: 1px;
    padding: 1px;
    background: rgba(0, 0, 0, 0.25);
    min-height: 14px;
}
.mini-tier-items img {
    width: 18px;
    height: 14px;
    object-fit: cover;
    flex-shrink: 0;
}
