@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500;700&display=swap");

:root {
    --vibe-bg: #030816;
    --vibe-bg-alt: #071124;
    --vibe-panel: rgba(7, 13, 28, 0.84);
    --vibe-panel-strong: rgba(5, 10, 21, 0.95);
    --vibe-line: rgba(127, 211, 255, 0.14);
    --vibe-line-strong: rgba(127, 211, 255, 0.26);
    --vibe-text: #ecf7ff;
    --vibe-muted: #94a8bf;
    --vibe-accent: #86f8ff;
    --vibe-accent-2: #ff9d4d;
    --vibe-accent-3: #9d7bff;
    --vibe-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --vibe-radius-xl: 28px;
    --vibe-radius-lg: 22px;
    --vibe-radius-md: 16px;
    --vibe-radius-sm: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--vibe-text);
    font-family: "Space Grotesk", sans-serif;
    background:
        radial-gradient(circle at 16% 12%, rgba(134, 248, 255, 0.14), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(255, 157, 77, 0.12), transparent 24%),
        radial-gradient(circle at 48% 100%, rgba(157, 123, 255, 0.1), transparent 28%),
        linear-gradient(155deg, #01040a 0%, var(--vibe-bg) 45%, #071226 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, #000 42%, transparent 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

code,
pre {
    font-family: "IBM Plex Mono", monospace;
}

.vibe-gallery-shell {
    position: relative;
    min-height: 100vh;
}

.vibe-gallery-page {
    width: min(1500px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 24px 0 72px;
}

.panel-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(127, 211, 255, 0.1);
    border-radius: var(--vibe-radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        var(--vibe-panel);
    box-shadow: var(--vibe-shadow);
}

.vibe-gallery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.95fr);
    gap: 20px;
    padding: clamp(22px, 3.5vw, 40px);
    margin-bottom: 22px;
}

.vibe-gallery-hero::after,
.vibe-gallery-spotlight::after,
.vibe-gallery-catalog::after {
    content: "";
    position: absolute;
    inset: auto -18% -28% 48%;
    height: 56%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(134, 248, 255, 0.18), transparent 74%);
}

.vibe-gallery-hero__copy h1 {
    margin: 0;
    max-width: 12ch;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 0.94;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.vibe-kicker,
.vibe-filter-label {
    margin: 0 0 10px;
    color: #7fe1ff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vibe-lede {
    margin: 18px 0 0;
    max-width: 60ch;
    color: var(--vibe-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.vibe-lede code {
    color: #e3f7ff;
}

.vibe-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.vibe-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(127, 211, 255, 0.16);
    background: rgba(2, 8, 18, 0.58);
}

.vibe-stat-chip strong {
    font-family: "Orbitron", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.vibe-stat-chip small {
    color: var(--vibe-muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vibe-gallery-hero__tools {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vibe-search {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vibe-search span {
    color: var(--vibe-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vibe-search input {
    border: 1px solid rgba(127, 211, 255, 0.18);
    border-radius: 16px;
    background: rgba(2, 8, 18, 0.72);
    color: var(--vibe-text);
    padding: 0.9rem 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.vibe-search input:focus {
    outline: none;
    border-color: rgba(134, 248, 255, 0.52);
    box-shadow: 0 0 0 4px rgba(134, 248, 255, 0.08);
}

.vibe-filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vibe-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vibe-chip-row--scroll {
    max-height: 11rem;
    overflow: auto;
    padding-right: 4px;
}

.vibe-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(127, 211, 255, 0.16);
    background: rgba(2, 8, 18, 0.58);
    color: var(--vibe-text);
    padding: 0.48rem 0.8rem;
    font-size: 0.78rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.vibe-chip small {
    color: var(--vibe-muted);
    font-size: 0.66rem;
}

.vibe-chip:hover,
.vibe-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(134, 248, 255, 0.34);
}

.vibe-chip.is-active {
    background: rgba(134, 248, 255, 0.12);
    border-color: rgba(134, 248, 255, 0.46);
    box-shadow: inset 0 0 0 1px rgba(134, 248, 255, 0.14);
}

.vibe-gallery-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.2fr);
    gap: 20px;
    align-items: start;
}

.vibe-gallery-spotlight {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.vibe-stage {
    position: relative;
    min-height: 66vh;
    border-radius: 24px;
    border: 1px solid rgba(127, 211, 255, 0.14);
    background:
        radial-gradient(circle at 20% 10%, rgba(134, 248, 255, 0.1), transparent 28%),
        radial-gradient(circle at 80% 0%, rgba(255, 157, 77, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(2, 8, 18, 0.96), rgba(6, 13, 28, 0.92));
    overflow: hidden;
}

.vibe-stage iframe,
.vibe-stage pre,
.vibe-stage-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.vibe-stage iframe {
    border: 0;
    background: #02060d;
}

.vibe-stage pre {
    margin: 0;
    padding: 20px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: #d9ecff;
    background: linear-gradient(180deg, rgba(2, 8, 18, 0.98), rgba(2, 8, 18, 0.92));
}

.vibe-stage-placeholder {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
}

.vibe-stage-placeholder__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(134, 248, 255, 0.12);
    color: #8ef7ff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.vibe-stage-placeholder h2 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.vibe-stage-placeholder p {
    margin: 10px auto 0;
    max-width: 36ch;
    color: var(--vibe-muted);
    line-height: 1.7;
}

.vibe-spotlight-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vibe-spotlight-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.vibe-spotlight-head h2,
.vibe-gallery-catalog__head h2 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.vibe-active-kind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(127, 211, 255, 0.18);
    background: rgba(2, 8, 18, 0.62);
    color: #a8e9ff;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vibe-active-path,
.vibe-active-summary {
    margin: 0;
    color: var(--vibe-muted);
    line-height: 1.65;
}

.vibe-active-path {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
}

.vibe-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vibe-mini-tag,
.vibe-spotlight-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.36rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(127, 211, 255, 0.12);
    background: rgba(2, 8, 18, 0.58);
    color: #d7f2ff;
    font-size: 0.7rem;
}

.vibe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.vibe-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(127, 211, 255, 0.16);
    background: rgba(2, 8, 18, 0.72);
    color: var(--vibe-text);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.vibe-action-btn:hover,
.vibe-action-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(134, 248, 255, 0.42);
    background: rgba(134, 248, 255, 0.1);
}

.vibe-action-btn--primary {
    border-color: rgba(134, 248, 255, 0.5);
    color: #8ef7ff;
}

.vibe-gallery-catalog {
    padding: 16px;
}

.vibe-gallery-catalog__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vibe-catalog-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    color: var(--vibe-muted);
    font-size: 0.8rem;
}

.vibe-empty-state {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed rgba(127, 211, 255, 0.18);
    background: rgba(2, 8, 18, 0.42);
    color: var(--vibe-muted);
}

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

.vibe-card {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(127, 211, 255, 0.12);
    background:
        radial-gradient(circle at 20% 0%, hsla(var(--item-hue), 84%, 60%, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(10, 18, 34, 0.92), rgba(2, 8, 18, 0.95));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

.vibe-card.is-active {
    border-color: hsla(var(--item-hue), 84%, 60%, 0.64);
    box-shadow: 0 0 0 1px hsla(var(--item-hue), 84%, 60%, 0.18) inset, 0 22px 50px rgba(0, 0, 0, 0.28);
}

.vibe-card__select {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.vibe-card__media {
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, hsla(var(--item-hue), 84%, 60%, 0.22), rgba(2, 8, 18, 0.88)),
        rgba(2, 8, 18, 0.92);
    overflow: hidden;
}

.vibe-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vibe-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Orbitron", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vibe-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.vibe-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.vibe-card__family,
.vibe-card__kind {
    margin: 0;
    color: var(--vibe-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vibe-card__body h3 {
    margin: 4px 0 0;
    font-size: 1rem;
    line-height: 1.25;
}

.vibe-card__kind {
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(127, 211, 255, 0.12);
    background: rgba(2, 8, 18, 0.58);
    white-space: nowrap;
}

.vibe-card__summary {
    margin: 0;
    color: var(--vibe-muted);
    line-height: 1.6;
    min-height: 3.2em;
}

.vibe-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(148, 168, 191, 0.9);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
}

.vibe-card__meta span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vibe-card__actions {
    display: flex;
    gap: 10px;
    padding: 0 14px 14px;
}

.vibe-card__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(127, 211, 255, 0.12);
    background: rgba(2, 8, 18, 0.58);
    color: var(--vibe-muted);
    font-size: 0.74rem;
}

.vibe-card__actions a:hover,
.vibe-card__actions a:focus-visible {
    border-color: rgba(134, 248, 255, 0.4);
    color: var(--vibe-text);
}

.vibe-card.is-hidden {
    display: none;
}

.vibe-card.is-picked {
    transform: translateY(-1px);
}

@media (max-width: 1080px) {
    .vibe-gallery-hero,
    .vibe-gallery-layout {
        grid-template-columns: 1fr;
    }

    .vibe-gallery-spotlight {
        position: static;
    }
}

@media (max-width: 720px) {
    .vibe-gallery-page {
        width: min(100vw - 18px, 100%);
        padding: 10px 0 40px;
    }

    .vibe-gallery-hero,
    .vibe-gallery-catalog {
        padding: 16px;
    }

    .vibe-gallery-hero__copy h1 {
        max-width: none;
        font-size: clamp(1.8rem, 9vw, 3rem);
    }

    .vibe-stage {
        min-height: 52vh;
    }

    .vibe-gallery-catalog__head {
        align-items: flex-start;
        flex-direction: column;
    }
}
