
:root {
    --vibe-accent: #006aff;
    --vibe-canvas: #f3f4f6;
    --vibe-surface: #ffffff;
    --vibe-ink-dark: #0f172a;
    --vibe-ink-soft: #475569;
    --vibe-line: #e2e8f0;
    --vibe-pane-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body {
    background-color: var(--vibe-canvas);
    color: var(--vibe-ink-dark);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    line-height: 1.5;
}

.vibe-shell { max-width: var(--vibe-pane-w); margin: 0 auto; padding: 0 16px; }

/* --- Global Masthead Bar --- */
header.vibe-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--vibe-line);
    position: sticky; top: 0; z-index: 1000; height: 70px; display: flex; align-items: center;
}
.vibe-nav-core { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 12px; }
.vibe-title { font-size: 20px; font-weight: 800; text-decoration: none; color: var(--vibe-ink-dark); letter-spacing: -0.5px; flex-shrink: 0; }
.vibe-title span { color: var(--vibe-accent); }

.vibe-search-bay {
    flex: 1; max-width: 400px; background: #e2e8f0; height: 40px; border-radius: 20px;
    display: flex; align-items: center; padding: 0 14px;
}
.vibe-search-bay input { border: none; background: transparent; width: 80%; outline: none; font-size: 14px; margin-left: 6px; color: var(--vibe-ink-dark); }
.vibe-search-bay i { color: #64748b; font-size: 14px; }

/* --- Filter Segments Controller --- */
.vibe-filter-zone { padding: 16px 0 8px; }

.vibe-selector-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: var(--vibe-surface); border: 1px solid var(--vibe-line);
    padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 700;
    color: var(--vibe-ink-dark); cursor: pointer;
}
.vibe-selector-trigger i { transition: transform 0.2s; }
.vibe-selector-trigger.vibe-active i { transform: rotate(180deg); }

.vibe-stack-dropdown {
    display: none; list-style: none; background: var(--vibe-surface);
    border: 1px solid var(--vibe-line); border-radius: 12px; margin-top: 6px;
    overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); z-index: 10; position: relative;
}
.vibe-stack-dropdown.vibe-visible { display: block; }
.vibe-stack-dropdown li a {
    display: block; padding: 12px 16px; text-decoration: none;
    color: var(--vibe-ink-soft); font-size: 14px; font-weight: 600;
    border-bottom: 1px solid var(--vibe-line);
}
.vibe-stack-dropdown li:last-child a { border-bottom: none; }
.vibe-stack-dropdown li a.vibe-current { background: rgba(0, 106, 255, 0.08); color: var(--vibe-accent); font-weight: 700; }

.vibe-flat-tabs { display: none; }

/* --- Content Mesh Grid Layout --- */
.vibe-hub-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 8px 0 60px; }
.vibe-caption { font-size: 13px; font-weight: 800; color: var(--vibe-accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }

.vibe-stream-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }

/* Full Card Link Mechanics */
.vibe-deck-link {
    background: var(--vibe-surface); border: 1px solid var(--vibe-line); border-radius: 16px;
    padding: 14px; display: flex; align-items: center; text-decoration: none; color: inherit;
    transition: all 0.2s; cursor: pointer;
}
.vibe-deck-link:hover { border-color: var(--vibe-accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.02); }

/* Rigid Image Dimensions Constraints */
.vibe-media-box {
    width: 80px; height: 80px; border-radius: 12px; overflow: hidden;
    flex-shrink: 0; background: #e2e8f0; border: 1px solid rgba(0,0,0,0.04);
}
.vibe-media-box img { width: 100%; height: 100%; object-fit: cover; }

.vibe-info-box { flex: 1; padding: 0 14px; min-width: 0; }
.vibe-info-box h3 { font-size: 15px; font-weight: 700; color: var(--vibe-ink-dark); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vibe-info-box p { font-size: 13px; color: var(--vibe-ink-soft); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }

.vibe-stats-row { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; color: var(--vibe-ink-soft); flex-wrap: wrap; }
.vibe-badge { background: rgba(0, 106, 255, 0.08); color: var(--vibe-accent); padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.vibe-live { color: #10b981; display: flex; align-items: center; gap: 3px; }
.vibe-stars { color: #f59e0b; }

.vibe-action-dock { flex-shrink: 0; position: relative; z-index: 5; }
.vibe-node-share {
    background: #f1f5f9; border: 1px solid var(--vibe-line); color: var(--vibe-ink-soft);
    width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s;
}
.vibe-node-share:hover { background: var(--vibe-accent); color: #fff; border-color: var(--vibe-accent); }

/* Sidebar Blueprint Defaults */
.vibe-panel-aside { display: none; }

/* --- Footer Base Layout --- */
footer.vibe-footer { background: #ffffff; border-top: 1px solid var(--vibe-line); padding: 50px 0 30px; margin-top: 40px; }

.vibe-footer-about h2 { font-size: 18px; margin-bottom: 12px; color: var(--vibe-ink-dark); }
.vibe-footer-about p { font-size: 14px; color: var(--vibe-ink-soft); line-height: 1.7; }

.vibe-footer-links h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 12px; }
.vibe-footer-links ul { list-style: none; }
.vibe-footer-links ul li { margin-bottom: 8px; }
.vibe-footer-links ul a { color: var(--vibe-ink-soft); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.vibe-footer-links ul a:hover { color: var(--vibe-accent); }

.vibe-footer-base { border-top: 1px solid var(--vibe-line); padding-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 12px; color: #64748b; text-align: center; }
.vibe-legal-links { display: flex; gap: 20px; }
.vibe-legal-links a { color: #64748b; text-decoration: none; font-weight: 500; }
.vibe-legal-links a:hover { color: var(--vibe-accent); }

/* --- Floating Scroll to Top Target --- */
#vibeScrollTop {
    position: fixed; bottom: 24px; right: 20px; width: 44px; height: 44px;
    background: var(--vibe-ink-dark); color: #fff; border-radius: 50%;
    display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 1001; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Advanced Adaptive Breakpoints Engagements --- */
@media (min-width: 900px) {
    .vibe-title { font-size: 22px; }

    .vibe-selector-trigger, .vibe-stack-dropdown.vibe-visible { display: none; }
    .vibe-flat-tabs { display: flex; gap: 8px; }
    .vibe-pill {
        background: var(--vibe-surface); padding: 10px 22px; border-radius: 20px;
        border: 1px solid var(--vibe-line); font-size: 13px; font-weight: 700;
        text-decoration: none; color: var(--vibe-ink-soft); white-space: nowrap; transition: 0.2s;
    }
    .vibe-pill:hover, .vibe-pill.vibe-current { background: var(--vibe-accent); color: #fff; border-color: var(--vibe-accent); }

    .vibe-hub-layout { grid-template-columns: 2fr 1.1fr; gap: 30px; }
    .vibe-stream-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .vibe-panel-aside { display: block; }
    .vibe-ranking-deck { list-style: none; background: var(--vibe-surface); border: 1px solid var(--vibe-line); border-radius: 16px; padding: 20px; }

    .vibe-footer-grid { grid-template-columns: 2.5fr 1fr; }
    .vibe-footer-base { flex-direction: row; justify-content: space-between; text-align: left; }
}
