:root {
    --theme-scrollbar-size: 10px;
    --theme-scrollbar-track: rgba(15, 23, 42, 0.55);
    --theme-scrollbar-thumb: #6366f1;
    --theme-scrollbar-thumb-hover: #818cf8;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--theme-scrollbar-thumb) var(--theme-scrollbar-track);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--theme-scrollbar-thumb) var(--theme-scrollbar-track);
}

*::-webkit-scrollbar {
    width: var(--theme-scrollbar-size);
    height: var(--theme-scrollbar-size);
}

*::-webkit-scrollbar-track {
    background: var(--theme-scrollbar-track);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.45);
    background: linear-gradient(180deg, #a5b4fc 0%, #6366f1 48%, #4f46e5 100%);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c7d2fe 0%, #818cf8 45%, #6366f1 100%);
    box-shadow: 0 0 14px rgba(129, 140, 248, 0.5);
}

*::-webkit-scrollbar-corner {
    background: var(--theme-scrollbar-track);
}

html:has(.feed-container),
html:has(.feed-container) body {
    scrollbar-width: none;
}

html:has(.feed-container)::-webkit-scrollbar,
html:has(.feed-container) body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.feed-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feed-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
