::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(120, 120, 120, 0.5);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(160, 160, 160, 0.7);
}
::-webkit-scrollbar-button {
  display: none;
}

@-moz-document url-prefix() {
  .sidebar-links,
  #sidebar-links-container,
  #sidebar-creators-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 120, 120, 0.5) transparent;
  }
}

 .sidebar-links {
     position: fixed;
     left: 20px;
     top: 50%;
     transform: translateY(-50%);
     width: auto;
     max-width: 290px;
     box-sizing: border-box;
     padding: 3px 15px 20px 15px;
     background-color: rgba(18, 18, 18, 0.85);
     backdrop-filter: blur(5px);
     border-radius: 8px;
     border: 1px solid rgba(255,255,255,0.1);
     z-index: 1000;
     pointer-events: auto;
     max-height: 85vh;
     overflow-y: auto;
     overflow-x: hidden;
     transition: transform 0.3s, opacity 0.3s;
     display: block;
}
 .sidebar-links.right {
     left: auto;
     right: 20px;
}

 .link-group {
     margin-bottom: 20px;
}
 .link-group:last-child {
     margin-bottom: 0;
}
 .link-group h2 {
     font-family: 'FontinSmallCaps', sans-serif;
     font-size: 1.02em;
     color: #c4ba9b;
     font-weight: 500;
     text-align: center;
     letter-spacing: 0.04em;
     margin-top: 24px;
     margin-bottom: 13px;
}
 .link-group:first-child h2 {
     margin-top: 21px;
}

 .grid-container, .grid-container.creators-grid {
     display: grid;
     grid-template-columns: repeat(3, 70px);
     gap: 10px;
     justify-content: center;
     align-items: start;
     margin: 0 auto 22px auto;
     position: relative;
     z-index: 0;
}
.grid-item {
	position: relative;
    width: 70px;
    height: 70px;
    padding: 0;
	box-sizing: border-box;

	background-color: rgba(30, 30, 30, 0.8);
    background: #282828;
    border: 1px solid #3a3a3a;
	border-radius: 6px;
	transition: transform 0.2s ease-in-out, background-color 0.2s;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.grid-item:hover {
    transition: transform 0.1s;
    background: #383838;
    border-color: #555;
    transform: translateY(-2px);
}

.grid-item-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;

	text-decoration: none;
	color: inherit;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	padding: 4px;
	box-sizing: border-box;
}
.grid-item-content .icon-wrapper {
	flex-shrink: 0;
}

.grid-item-content .icon {
	display: block;
	width: 36px;
	height: 36px;
}

.grid-item-content .name {
	text-align: center;
	line-height: 1.2;
	font-size: 11px;
	display: block;
}

 .grid-item img.icon {
     width: 30px;
     height: 30px;
     margin-bottom: 4px;
     object-fit: contain;
}
 .grid-item .name {
    font-size: 11px;
    line-height: 13px;
    text-align: center;
    width: 100%;
    color: #e0e0e0;
    font-family: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.grid-item .name.visible {
  opacity: 1;
}

 .grid-item.grid-item--hovered {
     z-index: 1002;
}

.grid-item .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 33px;
  width: 100%;
}

.grid-item .icon-wrapper .icon {
  display: block;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
}

.grid-item .icon-wrapper .name-initials {
  font-size: 16px;
  font-weight: bold;
  color: #888;
}

 .grid-item .tooltiptext {
     background: #1e1e1e;
     color: #fff;
     text-align: center;
     border-radius: 6px;
     padding: 8px 12px;
     position: absolute;
     z-index: 1001;
     font-size: 11px;
     font-family: Verdana, sans-serif;
     box-shadow: 0 2px 8px rgba(0,0,0,0.5);
     pointer-events: none;
     width: max-content;
     max-width: 200px;
     visibility: hidden;
     opacity: 0;
     transition: opacity 0.2s;
     border: 1px solid #3a3a3a;
     bottom: calc(115% - 1px);
     left: 50%;
     transform: translateX(-50%);
}
 .grid-item .tooltiptext::before, .grid-item .tooltiptext::after {
     content: "";
     position: absolute;
     left: var(--tooltip-arrow-left, 50%);
     transform: translateX(-50%);
     width: 0;
     height: 0;
     border-style: solid;
}
 .grid-item .tooltiptext::before {
     top: 100%;
     border-width: 6px;
     border-color: #3A3A3A transparent transparent transparent;
}
 .grid-item .tooltiptext::after {
     top: 100%;
     border-width: 5px;
     border-color: #1e1e1e transparent transparent transparent;
}
 .grid-item .tooltiptext.tooltip-below {
     bottom: auto;
     top: calc(100% + 9px);
}
 .grid-item .tooltiptext.tooltip-below::before, .grid-item .tooltiptext.tooltip-below::after {
     top: auto;
     bottom: 100%;
}
 .grid-item .tooltiptext.tooltip-below::before {
     border-width: 6px;
     border-color: transparent transparent #3A3A3A transparent;
}
 .grid-item .tooltiptext.tooltip-below::after {
     border-width: 5px;
     border-color: transparent transparent #1e1e1e transparent;
}

 .burger-menu-button {
     display: none;
     position: fixed;
     top: 10px;
     left: 15px;
     z-index: 3201;
     background:transparent;
     backdrop-filter: blur(4px);
     border: transparent;
     padding: 10px;
     cursor: pointer;
     border-radius: 6px;
     pointer-events: auto;
}
 .burger-menu-button span {
     display: block;
     width: 22px;
     height: 2px;
     background: #f0f0f0;
     margin: 5px 0;
     transition: all 0.3s;
}
 .burger-menu-button.active span:nth-child(1) {
     transform: translateY(7px) rotate(45deg);
}
 .burger-menu-button.active span:nth-child(2) {
     opacity: 0;
}
 .burger-menu-button.active span:nth-child(3) {
     transform: translateY(-7px) rotate(-45deg);
}

 .sidebar-tabs {
     display: none;
     position: fixed;
     left: 0;
     top: 63px;
     width: 100vw;
     z-index: 3002;
     background: none;
     justify-content: center;
     align-items: flex-end;
     pointer-events: auto;
     gap: 18px;
     height: 38px;
}
 .sidebar-tab {
     background: none;
     border: none;
     color: #bdbdbd;
     font-family: 'FontinSmallCaps', sans-serif;
     font-size: 1em;
     padding: 8px 0 6px 0;
     min-width: 92px;
     text-align: center;
     text-transform: uppercase;
     letter-spacing: 0.09em;
     cursor: pointer;
     position: relative;
     outline: none;
     border-radius: 0;
     transition: color 0.18s;
}
 .sidebar-tab:hover, .sidebar-tab:focus {
     color: #ffe082;
}
 .sidebar-tab.active {
     color: #ffe082;
     font-weight: 700;
}
 .sidebar-tab.active::after {
     content: '';
     position: absolute;
     left: 12%;
     bottom: -2px;
     width: 76%;
     height: 3px;
     background: #ffe082;
     border-radius: 2px;
     transition: background 0.2s;
}
 .sidebar-blur-overlay {
     opacity: 0;
     visibility: hidden;
}

 .grid-container.creators-grid {
     display: grid;
     grid-template-columns: repeat(3, 70px);
     gap: 10px;
     justify-content: center;
     align-items: start;
     margin: 0 auto 22px auto;
}
 .grid-item.creator {
     background: #26262a;
     border: 1px solid #36363e;
     border-radius: 6px;
     padding: 4px 3px 6px 3px;
     font-size: 11px;
     height: 70px;
     width: 70px;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: space-between;
     position: relative;
     transition: background 0.2s, border-color 0.2s;
     box-sizing: border-box;
     overflow: visible;
}
 .grid-item.creator:hover {
    transform: none;
 }
 .grid-item.creator img.avatar {
     width: 32px;
     height: 32px;
     border-radius: 50%;
     object-fit: cover;
     margin-bottom: 1px;
     background: #191919;
     border: 1px solid #444;
     display: block;
}
 .creator-links {
     display: flex;
     gap: 4px;
     justify-content: center;
     align-items: center;
     position: absolute;
     bottom: 20px;
     left: 50%;
     transform: translateX(-50%);
     z-index: 2;
}
 .creator-link {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 18px;
     height: 18px;
     border-radius: 50%;
     background: transparent;
     cursor: pointer;
     margin: 0 1px;
     position: relative;
     transition: none;
}

 .creator-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #191919;
    box-shadow: 0 1px 1px #0002;
    transition: transform 0.2s ease-in-out, background 0.18s, box-shadow 0.18s;
 }

 .creator-link svg {
     width: 12px;
     height: 12px;
     display: block;
     position: relative;
     z-index: 1;
}
 .creator-link.youtube svg {
     fill: #FF0000;
}
 .creator-link.twitch svg {
     fill: #9147ff;
}
 .grid-item.creator .name {
     width: 100%;
     text-align: center;
     font-size: 11px;
     color: #ffe082;
     font-family: 'FontinSmallCaps', sans-serif;
     word-break: break-word;
     margin-top: auto;
     margin-bottom: 3px;
     line-height: 13px;
     white-space: normal;
     overflow: hidden;
     text-overflow: ellipsis;
     min-height: 13px;
     max-height: 26px;
     position: static;
     padding-top: 11px;
}
.creator-link:hover::before {
     background: #212121;
     box-shadow: 0 0 4px #ffe08244;
     transform: scale(1.15);
}
 .grid-container:last-child, .grid-container.creators-grid:last-child {
     margin-bottom: 9px;
}
 .sidebar-bg-overlay {
     display: none;
}

 .sidebar-links a {
     pointer-events: auto;
}

.extra-link {
	position: absolute;
	width: 18px;
	height: 18px;
	pointer-events: auto;
    z-index: 2;
}
.extra-link:hover {
    transform: scale(1.20);
    filter: brightness(1.2) drop-shadow(0 0 2px rgba(255, 255, 255, 0.7));
}
.extra-link img {
    width: 12px;
    height: 12px;
    margin: 0;
}
.extra-link.top-left { top: 0px; left: 0px; }
.extra-link.top-right { top: 0px; right: 0px; }
.extra-link.bottom-left { bottom: 0px; left: 0px; }
.extra-link.bottom-right { bottom: 0px; right: 0px; }

.extra-link-tooltip-text {
    color: #ffc880;
    font-style: italic;
}

@media (max-width: 960px) {
    .burger-menu-button {
        display: block !important;
    }

    #sidebar-links-container,
    #sidebar-creators-container {
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100%;
        max-width: none;
        max-height: none;
        background: transparent;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
        z-index: 2000;
        padding: 110px 10px 30px 10px;
        box-sizing: border-box;
        overflow-y: auto;
        overscroll-behavior: contain;
        align-items: stretch;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }


    #sidebar-links-container {
        transform: translateX(-100%);
        visibility: hidden;
    }

    #sidebar-creators-container {
        transform: translateX(100%);
        visibility: hidden;
    }


    body.sidebar-active.show-links #sidebar-links-container {
        transform: translateX(0);
        visibility: visible;
    }

    body.sidebar-active.show-creators #sidebar-creators-container {
        transform: translateX(0);
        visibility: visible;
    }


    .sidebar-links .link-group,
    .sidebar-links.right .link-group {
        width: 100%;
        box-sizing: border-box;
        display: block;
        margin-left: 0;
        margin-right: 0;
    }

    body.sidebar-active .sidebar-tabs {
        display: flex !important;
    }

    .sidebar-tabs {
        top: 63px;
        left: 0;
        width: 100vw;
        justify-content: center;
        align-items: flex-end;
        height: 38px;
        gap: 18px;
        background: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .sidebar-bg-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 150vh;
        background: #121212;
        z-index: 1999;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s;
        display: block;
    }

    body.sidebar-active .sidebar-bg-overlay {
        opacity: 1;
    }

    .sidebar-blur-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 145px;
        z-index: 3001;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s, visibility 0s 0.25s;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        mask-image: linear-gradient(to bottom, black 0%, black 125px, transparent 145px);
        -webkit-mask-image: linear-gradient(to bottom, black 0%, black 125px, transparent 145px);
    }

    body.sidebar-active .sidebar-blur-overlay {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.25s, visibility 0s 0s;
        pointer-events: auto;
    }

    .sidebar-links .grid-container,
    .grid-container.creators-grid {
        display: grid;
        grid-template-columns: repeat(3, 70px);
        gap: 10px;
        justify-content: center;
        align-items: start;
        margin: 0 auto;
    }

    .sidebar-links .link-group h2 {
        margin-top: 4px;
    }

    .sidebar-links .grid-item,
    .grid-item.creator {
        width: 70px;
        height: 70px;
        font-size: 11px;
    }

    .sidebar-links .grid-item img.icon,
    .grid-item.creator img.avatar {
        width: 30px;
        height: 30px;
        margin-bottom: 6px;
    }

    .sidebar-links .link-group:last-child {
        margin-bottom: 0;
        padding-bottom: 0
    }

    .sidebar-links .link-group:first-child {
        margin-top: 20px;
    }

    .grid-item .tooltiptext {
        display: none !important;
    }

    html.sidebar-active {
        overflow: hidden;
    }

    body.sidebar-active {
    position: fixed;
    overflow: hidden;
    width: 100%;
  }

.extra-link img {
    padding-top: 3px;
}

}

@media (max-width: 480px) {
    .sidebar-links .grid-container,
    .grid-container.creators-grid {
        grid-template-columns: repeat(3, 70px);
        gap: 10px;
        max-width: 240px;
    }

    .sidebar-links .grid-item,
    .grid-item.creator {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 961px) {
    .sidebar-tabs {
        display: none !important;
    }

    .sidebar-links,
    .sidebar-links.right {
        display: block !important;
        transform: translateY(-50%) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        padding-top: 3px;

        position: fixed;
        width: auto;
        max-width: 290px;
        height: auto;
        max-height: 85vh;
        background-color: rgba(18, 18, 18, 0.85);
        backdrop-filter: blur(5px);
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.1);
    }

    .sidebar-links {
        left: 20px;
        right: auto;
        top: 50%;
    }

    .sidebar-links.right {
        left: auto;
        right: 20px;
        top: 50%;
    }
}