body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #1b1b1b;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #080808;
    overflow: hidden;
}

.page-bg__grain {
    position: absolute;
    inset: 0;
    opacity: 0.055;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background: #262626;
}
::-webkit-scrollbar-thumb:hover {
    background: #404040;
}

.link-preview {
    position: fixed;
    width: 200px;
    height: 280px;
    background: #0a0a0a;
    border: 1px solid #333333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 100;
    overflow: hidden;
    transform: translate(-50%, -110%);
}
.link-preview.active {
    opacity: 1;
}
.link-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: none;
}
.link-preview img.loaded {
    display: block;
}
.link-preview .preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #e5e5e5;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.15s;
}
.link-preview img.loaded + .preview-label {
    opacity: 1;
}
.link-preview .preview-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.link-preview img.loaded ~ .preview-status {
    display: none;
}
.link-preview:not(.has-image) .preview-label,
.link-preview:not(.has-image) img {
    display: none;
}
