.avatar {
	--size: 40px;
	--badge: 12px;
	--ring: 2px;
	position: relative;
	width: var(--size);
	height: var(--size);
	margin-right: 14px;
	border: 3px solid var(--muted);
	border-radius: 36px;
	cursor: pointer;
}
.avatar img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	object-fit: cover;
}
.badge {
	position:absolute;
	right:-1px;
	bottom:-1px;
	width: var(--badge);
	height: var(--badge);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0;
	box-shadow: 0 0 0 var(--ring) #fff, 0 2px 8px rgba(0,0,0,.18);
	z-index:1;
}
.badge--menu{
	background: #fff;
	color: #111;
	border: 0;
}
.badge--menu:hover {
	background: #f3f4f6;
}
.badge--note{
	background: red;
	color: #fff;
	font-size: 10px;
	min-width: var(--badge);
	padding: 0 .2em;
}
.floating-avatar__friend-icon {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff7a00, #ffcc00);
	color: #111;
	font-size: 20px;
}

.floating-avatar__friend-icon .ico {
	margin: 0;
}

.my-menu {
	position: fixed;
	min-width: 260px;
	max-width: min(92vw, 360px);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(0,0,0,.12), 0 2px 12px rgba(0,0,0,.06);
	padding: 12px;
	z-index: 10000;
}
.my-menu::before {
	content:"";
	position:absolute;
	width:12px;
	height:12px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: -1px -1px 1px rgba(0,0,0,.04);
	left: var(--arrow-x, 24px);
}
.my-menu.is-bottom::before { top:-6px; }
.my-menu.is-top::before{ bottom:-6px; }
.my-menu__section{ padding: 6px 0; border-top: 1px solid #f0f2f5; }
.my-menu__section:first-child{ border-top: 0; }

.my-item {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 8px;
	color: #111;
	text-decoration: none;
	background: none;
	border: 0;
	text-align: left;
	font: 14px/1.25 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	cursor: pointer;



}
.my-item:hover{ background: #f2f3f5; }
.my-item__sub{ color:#677085; }

.my-item img {
	width: 34px;
	height: 34px;
	max-width: 34px;
	background: #999;
	border-radius: 34px;
	object-fit: cover;
	display: inline-block;
	vertical-align: middle;
	
}


/* Левая часть пункта: аватар/иконка + текст в одну линию и по центру */
.my-item__title, .my-item__sub,
.my-item__title > a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	text-decoration: none;
}

/* Аватар/картинка — без «проседания» под baseline */
.my-item img{
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;     /* <— убирает лишний интерлиньяж */
  margin: 0;          /* gap теперь задаёт отступ */
}

/* Иконки-спрайты: не «висят» на базовой линии текста */
.my-menu i{
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 1;          /* не тянем строку */
  vertical-align: -0.125em;/* лёгкая подстройка под текст */
  background-repeat: no-repeat;
  /* background-image / background-size — как у тебя настроено для спрайта */
}

/* Правая колонка (иконка настроек/счётчик) — по центру внутри ячейки */
.my-item__sub, .my-item__sub,
.my-item__sub > a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.my-item__sub{ color:#677085; margin-top: 3px; }


.my-menu i {
	width: 16px;
	height: 16px;
	display: inline-block;
	margin-right: 6px;
}


.ico-btn{
	width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
	border-radius:10px; background:var(--bg); border: var(--line); cursor:pointer; opacity: 0.8; align-self: end;
}
.ico-btn:hover{opacity: 1;}
.file-name{ font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:35%; }

.comment__form{
  display:grid; grid-template-columns:auto 1fr auto auto; gap:8px; align-items:flex-start;
  padding-top:8px; margin-top:2px;
}
.comment__input{
  width:100%; min-height:36px; max-height:40vh;
  border:var(--line); border-radius:10px; padding:8px 10px;
  overflow: hidden;
  resize: none;
}

@supports (field-sizing: content) {
	.comment__input{
		field-sizing: content;
		overflow: auto;
	}
}



html[data-theme="dark"] {
  .my-menu{ background:#1f1f24; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
  .my-menu::before{ background:#1f1f24; box-shadow: -1px -1px 1px rgba(255,255,255,.03); }
  .my-item{ color:#f5f6fb; }
  .my-item:hover{ background:#2a2b31; }
  .my-menu__section{ border-top-color:#2a2b31; }
  .my-item__sub{ color:#aeb6cc; }


}









@media (max-width: 800px) {
	.avatar {
		--size: 32px;
		position: relative;
		width: var(--size);
		height: var(--size);
		margin-right: 8px;
	}

}








#playlist .btn {
	border: 3px solid #999999;
}
#playlist .btn.active {
	border-color: red;
}
#playlist .btn i {
	width: 16px;
	height: 16px;
}
#playlist ul {
	list-style-type: none;
	padding: 0 0 125px 0;
	margin: 0;
}
#playlist li {
	margin: 1px 0;
	padding: 5px;
	color: white;
	cursor: pointer;
	border-bottom: 1px solid #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
	font-size: 12px;
	font-weight: normal;
}
#playlist li:hover, #playlist .playnow {
	background: #333333;
	border-radius: 5px;
}
#playlist::-webkit-scrollbar {
    width: 8px;
}
#playlist::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 4px;
}

#playlist::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
#playlist::-webkit-scrollbar-thumb:hover {
    background: #666;
}

#playlist .btn_play {
	background: url('/images/miniplay.png') no-repeat 0 6px;
	float: left;
}
#playlist .btn_pause {
	background: #333333;
	position: relative;
	overflow: hidden;
	padding-left: 20px;
}
#playlist .btn_pause:hover {
	border: none;
}
#playlist .btn_pause::before {
	background-size: 14px;
	width: 14px;
	height: 14px;
}
#playlist .track-progress {
	-webkit-appearance: none;
	width: 100%;
	height: 3px;
	margin-top: 3px;
	background: linear-gradient(to right, var(--brand-2) 0%, var(--brand) 0%) no-repeat;
	background-size: 0% 100%;
	background-color: #ccc;
	background-repeat: no-repeat;
	outline: none;
	transition: background-size 0.2s ease;
	border: none;
	display: none;
}
#playlist .playnow .track-progress {
	display: block;
}
#playlist .track-progress::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
#playlist span {
	padding-left: 15px;
}










/* Всплывающие уведомления сайта и игр — единый компактный стек */
#notifications-container{
    position:fixed;bottom:max(14px, env(safe-area-inset-bottom));left:16px;
    z-index:2147482000;width:min(360px,calc(100vw - 32px));
    display:flex;flex-direction:column;gap:9px;
    font:normal 13px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;
    pointer-events:none;
}
#notifications-container .mx-notify-toolbar{
    display:flex;align-items:center;justify-content:flex-end;gap:0;
    padding:3px 5px;border:1px solid #34343e;
    border-radius:9px;background:#101014;color:#f5f6fa;
    box-shadow:0 6px 20px rgba(0,0,0,.55);pointer-events:auto;
}
#notifications-container .mx-notify-toolbar[hidden]{display:none}
#notifications-container .mx-notify-toolbar-title{font-size:12px;font-weight:700}
#notifications-container .mx-notify-dismiss-all{
    background:transparent;border:0;color:#c2cad5;cursor:pointer;
    font:600 11px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;padding:4px 7px;border-radius:6px;
}
#notifications-container .mx-notify-dismiss-all:hover{background:#899bb024;color:#fff}
#notifications-container .notification{
    width:100%;min-width:0;position:relative;display:flex;align-items:flex-start;gap:11px;
    padding:12px 27px 12px 12px;margin:0;border-radius:8px;
    border:1px solid #34343e;background:#010101;
    color:#f5f6fa;box-shadow:0 10px 30px rgba(0,0,0,.65);
    pointer-events:auto;overflow:hidden;overflow-wrap:anywhere;
}
#notifications-container .notification img{
    width:42px;height:42px;flex:0 0 42px;object-fit:cover;
    border-radius:11px;margin:0;background:#41546a;
}
#notifications-container .notification img.mx-game-icon{object-fit:contain;padding:3px;background:radial-gradient(circle at 50% 40%,#415774,#1b2c42)}
#notifications-container .notification .content{flex:1;min-width:0}
#notifications-container .notification .content strong{
    font-size:13px;line-height:1.3;display:block;margin:1px 0 5px;
}
#notifications-container .notification a{color:inherit;text-decoration:none}
#notifications-container .notification a:hover{text-decoration:underline}
#notifications-container .notification p{
    margin:0;color:#bec8d7;font-size:12px;line-height:1.45;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;
}
#notifications-container .notification .close-btn{
    position:absolute;top:8px;right:8px;width:26px;height:26px;
    display:grid;place-items:center;border:0;border-radius:7px;
    background:transparent;color:#bec8d7;font-size:21px;
    line-height:1;cursor:pointer;padding:0;
}
#notifications-container .notification .close-btn:hover{background:#8597aa24;color:#fff}
#notifications-container a:focus-visible,#notifications-container button:focus-visible{outline:2px solid #f39c52;outline-offset:2px}
@media(max-width:560px){
    #notifications-container{left:8px;bottom:max(8px,env(safe-area-inset-bottom));width:calc(100vw - 16px)}
    #notifications-container .notification{padding:11px 35px 11px 10px}
    #notifications-container .notification img{width:36px;height:36px;flex-basis:36px}
}

#formuplphoto {
	display: none;
	margin-bottom: 15px;
}
#IdAlbum {
	display: none;
}
#sb {
	display: none;
	margin-top: 15px; 
	margin-bottom: 15px; 
	margin-right: 17px;
}

#drop-files {
	position:relative;
	width: 100%;
	min-height: 50px;
	margin-top: 10px;
	border-radius: 10px;
	border: 1px solid #cccccc;
	text-align: center;
	font-size: 2em;
	color: #999999;
}
#drop-files p {
	clear:none;
	padding:0;
	margin:0;
}
#uploadbtn {
	cursor: pointer;
	opacity:0;
	margin-bottom: 15px;
}

#uploaded-holder {
	display: none;
	position:relative;
	margin: 0 auto;
}

#dropped-files {
	display:block;
	margin: 0 auto;
	width: 100%;
}
#albumlist {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, 1fr)
}

.gallerys, #dropped-files {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(4, 1fr)
}
@media (max-width: 1025px) {
	.gallerys {
		display: grid;
		gap: 16px;
		grid-template-columns: repeat(3, 1fr)
	}
}
@media (max-width: 600px) {
	#albumlist {
		display: grid;
		gap: 18px;
		grid-template-columns: 1fr;
	}
	.gallerys {
		display: grid;
		gap: 16px;
		grid-template-columns: repeat(2, 1fr)
	}
}

.uprephoto {
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(auto, 20%) 1fr;
}

#albumlist .images, .gallerys .image {
	position: relative;
	border: 4px solid #fff;
	box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
	border-radius: 4px;
	margin: 0 auto;
	overflow: hidden;
	cursor: pointer;
	background: #999;
}
#albumlist img, .gallerys img {
	display: block; width: 100%; height: auto;
}

#upload-button {
	z-index: 9999;
	display: none;
	margin: 20px 0;
}
.drop-button {
	display: block;
	position: absolute;
	z-index: 99;
	padding: 5px;
	margin: 0;
	width: 100%;
	height: 40px;
	background: rgba(0,0,0,0.6);
	font-size: 1em;
	bottom: 0;
	text-align: center;
	text-decoration: none;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.drop-button:hover {
	color: #ccc;
}
#dropped-files .image, #gallery .images {
	position: relative;
	border: 4px solid #fff;
	box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
	background: #fff;
	border-radius: 4px;
	margin: 7px auto;
	overflow: hidden;
}
#dropped-files img {
	text-align: center;
}
#dropped-files span {
	cursor: pointer;
}
#upload-button .ss-upload {
	font-size: 0.7em;
}

#upload-button a {
	text-decoration: none;
	color: #fff;
	font-weight: bold;
	box-shadow: 0 0 1000px 62px rgba(255, 255, 255, 1), inset 0 -35px 40px -10px #0A9FCA;
	font-size: 16px;
	padding: 6px 15px;
	background-color: #4bc1e3;
	border-radius: 6px;
}

#upload-button span {
	position:relative;
	font-size: 1.1em;
	padding: 6px;
	margin: 2px 8px;
}
#upload-button a:hover {
	box-shadow: 0 0 1000px 62px rgba(255, 255, 255, 1), inset 0 -5px 40px 0px #0A9FCA;	
}

#loading {
	display: none;
	width: 100%;
	position: relative;
	margin-top: 20px;
}

#loading-bar {
	width: 100%;
	height: 25px;
	background: #fff;
	box-shadow: 0 0 15px rgba(0,0,0,0.1);
	border-radius: 5px;
	padding: 2px;
}

.loading-color {
	width: 0%;
	height: 100%;
	-webkit-transition: all 0.1s ease-in;
	-moz-transition: all 0.1s ease-in;
	-ms-transition: all 0.1s ease-in;
	-o-transition: all 0.1s ease-in;
	transition: all 0.1s ease-in;
	border-radius: inherit;
	background-color: #4edbf1;
}

#loading-content {
	position: relative;
	top: 15px;
	font-size: 1.2em;
	font-weight: bold;
	text-align: center;
	width: 676px;
}

#file-name-holder {
	width: 100%;
	float: left;
	margin-top: 15px;
	margin-bottom: 15px;
}

#file-name-holder h1 {
	text-align: center;
	padding: 20px 0;
	font-size: 3em;
	margin: 0;
}

#uploaded-files {
	list-style:none;
	margin:0px;
	padding: 0px;
}

#uploaded-files div {
	border-bottom: 1px solid #eee;
	font-size: 1.5em;
	font-weight: bold;
	line-height: 25px;
	color: #545454;
	margin: 0px;
	padding: 4px;
	width: 100%;
}

#uploaded-files a {
	color: #1bacbf;
}

.floating-bell{
  background: linear-gradient(180deg, var(--bg), var(--bg-elev));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.floating-bell__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
}

.floating-bell.has-new{
  box-shadow: 0 0 0 2px rgba(255,152,0,.15), 0 8px 18px rgba(255,152,0,.18);
}

.voice-call-ui{
  position:fixed;
  inset:auto 16px 16px auto;
  width:min(340px, calc(100vw - 32px));
  background:var(--bg-elev);
  color:var(--text);
  border:var(--line);
  border-radius:18px;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
  z-index:99999;
  padding:16px;
  display:none;
}
.voice-call-ui.is-open{display:block}
.voice-call-ui__top{display:flex;align-items:center;gap:12px}
.voice-call-ui__ava{
  width:54px;height:54px;border-radius:50%;
  object-fit:cover;border:1px solid var(--border)
}
.voice-call-ui__name{font-weight:800;font-size:16px}
.voice-call-ui__status{color:var(--muted);font-size:13px;margin-top:3px}
.voice-call-ui__actions{display:flex;gap:10px;margin-top:16px}
.voice-call-ui__btn{
  flex:1;height:42px;border:0;border-radius:12px;
  cursor:pointer;font-weight:800;color:#fff
}
.voice-call-ui__btn--accept{background:#16a34a}
.voice-call-ui__btn--reject,
.voice-call-ui__btn--hangup{background:#dc2626}
.voice-call-ui__btn--mute{background:#555}
.voice-call-ui__pulse{
  animation:voicePulse 1.2s infinite;
}
@keyframes voicePulse{
  0%{box-shadow:0 0 0 0 rgba(22,163,74,.45)}
  70%{box-shadow:0 0 0 12px rgba(22,163,74,0)}
  100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}
}
.voice-call-ui__devices{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.voice-call-ui__select{
  width:100%;
  height:38px;
  border-radius:10px;
  border:1px solid var(--border,#333);
  background:var(--bg,#111);
  color:var(--text,#fff);
  padding:0 10px;
}

.floating-avatar {
  position: relative;
}

.floating-avatar__close {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 20;
  pointer-events: auto;
}

.floating-avatar:hover .floating-avatar__close {
  opacity: 1;
  transform: scale(1);
}