:root {
	--radius: 14px;
	--line: 1px solid var(--border);
	--maxw: 1680px;
	--card:#fff; 
	--primary:#1660ff;
	--accent:#ff7a00;
	--like-color: #22c55e;    /* зелёный */
	--dislike-color: #ef4444; /* красный */
}


html[data-theme="dark"] {
	--bg: #0a0a0f;
	--bg-elev: #1e1e28;
	--text: #ffffff;
	--muted: #9da5c0;
	--border: #3a3f55;
	--glass: linear-gradient(180deg, rgba(30,32,45,.95), rgba(20,22,30,.75));
	--brand: #ff9800;
	--brand-2: #ffb74d;

	--modal-bg: #15161e;
	--modal-fg: #f5f6fb;
	--modal-backdrop: rgba(0,0,0,.6);
	--drawer-bg: #15161e; 
	--drawer-fg: #f5f6fb; 
	--drawer-backdrop: rgba(0,0,0,.6);

	--icon-pos: 0 -128px;

	--er-bg:   hsla(0 85% 60% / .12);
	--er-bd:   hsla(0 85% 60% / .35);
	--er-fg:   hsl(0 85% 85%);

	--ok-bg:   hsla(142 60% 50% / .12);
	--ok-bd:   hsla(142 60% 50% / .35);
	--ok-fg:   hsl(142 70% 80%);

	--wn-bg:   hsla(45 100% 60% / .12);
	--wn-bd:   hsla(45 100% 60% / .35);
	--wn-fg:   hsl(45 100% 85%);

  --icon-base: #eee;
  --icon-muted: #999;

	.icon--exit {
		background-position: -96px -16px;
	}

    .flag {
        background-position: 0 -96px
    }
	.icon--mail {
		background-position: -112px -112px;
	}
	.icon--friends {
		background-position: -128px -112px;
	}
	.icon--history {
		background-position: -64px -16px;
	}
	.icon--addfriend {
		background-position: -80px -16px;
	}
	.icon--donate {
		background-position: -144px -112px;
	}
	.icon--gifts {
		background-position: -112px -16px;
	}
	.icon--send {
		background-position: -128px -16px;
	}
	.like {
		background-position: -16px -80px;
	}
	.dislike {
		background-position: -48px -80px;
	}
	.icon--share {
		background-position: -80px -80px;
	}
	.icon--edit {
		background-position: -96px -80px;
	}
	#m_home span {
        background-position: -128px -48px;
    }

    #m_movies span {
        background-position: -112px -48px
    }

    #m_series span {
        background-position: 0 -64px
    }

    #m_cartoons span {
        background-position: -32px -64px
    }

    #m_actors span {
        background-position: -64px -64px
    }


	--icon--copy:  -80px -112px;

	--icon-telegram: -16px -48px;
	--icon-vk: -80px -48px;
	--icon--viber: -144px -80px;
	--icon-fb: -64px -48px;
	--icon-x: -96px -48px;
--icon--whatsapp: -64px -112px;

	color-scheme: dark;

}
html[data-theme="light"] {
	--bg: #f2f3f7;
	--bg-elev: #ffffff;
	--text: #0a0a15;
	--muted: #444e68;
	--border: #c8ccd9;
	--glass: linear-gradient(180deg, rgba(245,246,250,.9), rgba(210,210,210,.7));
	--brand: #ff6600;
	--brand-2: #ff9800;

	--modal-bg: #fff;
	--modal-fg: #111;
	--modal-backdrop: rgba(0,0,0,.5);
	--drawer-bg: #fff; 
	--drawer-fg: #0e1220; 
	--drawer-backdrop: rgba(0,0,0,.5);

	--icon-pos: -32px -128px;



--icon--copy: -80px -96px;
--icon-telegram: -16px -32px;
--icon-vk: -80px -32px;
--icon--viber: -128px -80px;
--icon-fb: -64px -32px;
--icon-x: -96px -32px;
--icon--whatsapp: -64px -96px;


	--er-bg:   hsl(0 88% 97%);
	--er-bd:   hsl(0 72% 85%);
	--er-fg:   hsl(0 65% 32%);

	--ok-bg:   hsl(142 70% 96%);
	--ok-bd:   hsl(142 52% 82%);
	--ok-fg:   hsl(142 40% 24%);

	--wn-bg:   hsl(45 100% 96%);
	--wn-bd:   hsl(45 90% 80%);
	--wn-fg:   hsl(35 80% 26%);

  --icon-base: #222;
  --icon-muted: #777;

    .flag {
        background-position: -32px -96px
    }
	.icon--exit {
		background-position: -96px 0;
	}
	.icon--mail {
		background-position: -112px -96px;
	}
	.icon--friends {
		background-position: -128px -96px;
	}
	.icon--history {
		background-position: -64px 0;
	}
	.icon--addfriend {
		background-position: -80px 0;
	}
	.icon--send {
		background-position: -144px -16px;
	}
	.icon--donate {
		background-position: -144px -96px;
	}
	.icon--gifts {
		background-position: -112px 0;
	}

	.like {
		background-position: 0 -80px;
	}
	.dislike {
		background-position: -32px -80px;
	}
	.icon--share {
		background-position: -64px -80px;
	}
	.icon--edit {
		background-position: -96px -64px;
	}
	#m_home span {
        background-position: -144px -48px;
    }

    #m_movies span {
        background-position: -112px -32px
    }

    #m_series span {
        background-position: -16px -64px
    }

    #m_cartoons span {
        background-position: -48px -64px
    }

    #m_actors span {
        background-position: -80px -64px
    }

	color-scheme: light;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 500 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
}
a {
	color: inherit;
	text-decoration: underline;
}
a:hover {
	text-decoration: none;
}
img, video, canvas { overflow: clip; }
@supports not (overflow: clip){
  img, video, canvas { overflow: hidden; }
}

.container {
	width: min(var(--maxw), 100% - 32px);
	margin-inline: auto;
	position: relative;
}
header {
	position: sticky;
	top:0;
	z-index:999;
	backdrop-filter: blur(8px);
	background: var(--glass);
	border-bottom: var(--line);
}
.header__row {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	padding: 10px 0;
}
.brand, .footer_brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 900;
	letter-spacing:.2px;
	background: url('/images/favicon.webp') no-repeat;
	background-size: contain;
	padding-left: 32px;
	text-decoration: none;
}
.brand b, .footer_brand b {
	color: var(--brand);
}
.icon {
	background: url("/images/icons.webp") no-repeat;
}







.act i {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 0;
}

.icon--delete {
	background-position: -128px -64px;
}

.btn_play {
	background: url('/images/play_btn.webp') no-repeat;
	background-size: cover;
	width: 30px;
	height: 30px;
	border: none;
	cursor: pointer;
	border-radius: 30px;
}
.btn_play:hover, .btn_pause:hover {
	transform:translateY(-1px);
}
.btn_pause {
	position: relative;
	overflow: hidden;
	width: 30px;
	height: 30px;
	border: none;
	cursor: pointer;
	border-radius: 30px;
}
.btn_pause::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('/images/pause_btn.webp') no-repeat center center;
	background-size: cover;
	animation: rotateBackground 3s linear infinite;
	transform-origin: center;
	z-index: 0;
}
@keyframes rotateBackground {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
.track-progress {
	-webkit-appearance: none;
	width: calc(100% - 105px);
	transform:translateY(4px);
	float: right;
	height: 8px;
	background: linear-gradient(to right, var(--brand-2) 0%, var(--brand) 0%);
	background-size: 0% 100%;
	background-repeat: no-repeat;
	border-radius: 3px;
	outline: none;
	transition: background-size 0.2s ease;
	cursor: pointer;
	border: 1px solid var(--border);
}
.minatrixplayer .track-progress {
	width: calc(100% - 50px);
	transform:translateY(9px);
}

.track-progress::-webkit-slider-thumb, .track-progress::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	height: 6px;
	width: 6px;
	background: none;
	border: none;
}
.track-progress::-moz-range-thumb, .track-progress::-moz-range-thumb {
	height: 6px;
	width: 6px;
	background: none;
	border: none;
}
.track-progress.is-seeking { cursor: grabbing; }







.icon--copy {
	background-position: var(--icon--copy);
	width: 16px;
	height: 16px;
	margin-right: 8px;
}
.icon--telegram {
	background-position: var(--icon-telegram);
	width: 16px;
	height: 16px;
	margin-right: 8px;
}
.icon--vk {
	background-position: var(--icon-vk);
	width: 16px;
	height: 16px;
	margin-right: 8px;
}
.icon--viber {
	background-position: var(--icon--viber);
	width: 16px;
	height: 16px;
	margin-right: 8px;
}
.icon--fb {
	background-position: var(--icon-fb);
	width: 16px;
	height: 16px;
	margin-right: 8px;
}
.icon--x {
	background-position: var(--icon-x);
	width: 16px;
	height: 16px;
	margin-right: 8px;
}
.icon--whatsapp {
	background-position: var(--icon--whatsapp);
	width: 16px;
	height: 16px;
	margin-right: 8px;
}

.icon--menu {
	width: 16px;
	height: 16px;
	background-position: -32px 0;
}
.icon--fav {
	display: inline-block;
	width: 16px;
	height: 16px;
	background-position: -32px -16px;
}
.icon--login {
	display: inline-block;
	width: 16px;
	height: 16px;
	background-position: -16px 0;
	margin-right: 5px;
}
.icon--search {
	width: 16px;
	height: 16px;
	background-position: 0 0;
	position: absolute;
	left: 22px
}
.icon--theme {
	display: flex;
	width: 32px;
	height: 32px;
	background-position: var(--icon-pos);
	cursor: pointer;
}
.icon--searchbtn {
	width: 16px;
	height: 16px;
	background-position: 0 -16px;
	display: none;
}
.icon--google {
	background-position: -144px 0;
	display: inline-block;
	width: 16px;
	height: 16px;
	vertical-align: middle;
	margin-right: 12px;
}
.icon--reg {
	background-position: -16px -16px;
	display: inline-block;
	width: 16px;
	height: 16px;
	vertical-align: middle;
	margin-right: 12px;
}
.premium {
	color: transparent;    
	-webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(to right, #ff3300, var(--brand));
	font-weight: bold;
}
.premium:hover {
	color: transparent;    
	-webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(to left, red, orange);
}
.icon--settings {
	background-position: -96px -96px;
	opacity: 0.6;
}

.icon--settings:hover {
	opacity: 1;
}
.icon--premium {
	background-position: -96px -112px;
}
.rulang {
	background-position: -64px -128px;
}
.uslang {
	background-position: -96px -128px;
}
.uklang {
	background-position: -128px -128px;
}
.search {
	position: relative;
	display: flex;
	align-items: center;
}
.search input {
	width: 100%;
	padding: 10px 70px 10px 40px;
	margin: 0 10px;
	border-radius: 8px;
	border: var(--line);
	background: var(--bg-elev);
	color: var(--text);
}
.search .go {
	position: absolute;
	right: 11px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 0 8px 8px 0;
	border: none;
	background: linear-gradient(90deg,var(--brand),var(--brand-2));
	color: #241200;
	font-weight: 800;
	cursor: pointer;
}

.mx-suggest{
	position:absolute;
	left:0; right:0;
	top:calc(100% + 6px);
	background:var(--card);
	border:1px solid var(--border);
	border-radius:var(--radius);
	box-shadow:0 12px 30px rgba(0,0,0,.12);
	z-index:50;
	overflow:hidden;
}

.mx-suggest__item{
	display:flex;
	gap:10px;
	padding:10px 12px;
	cursor:pointer;
	align-items:center;
	border-top:1px solid var(--border);
	text-decoration:none;
	color:var(--text);
}

.mx-suggest__item:first-child{ border-top:none; }
.mx-suggest__item:hover,
.mx-suggest__item[aria-selected="true"]{
	background:var(--bg-elev);
}

.mx-suggest__poster{
	width:34px; height:50px;
	border-radius:10px;
	object-fit:cover;
	background:var(--bg-elev);
	flex:0 0 auto;
}

.mx-suggest__meta{ display:flex; flex-direction:column; min-width:0; }
.mx-suggest__title{ font-weight:700; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mx-suggest__sub{ color:var(--muted); font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }



.artists img {
	width: 96px;
	width: 96px;
	float: left;
	margin: 2px 12px 4px 0;
	border-radius: 8px;
}
.artists p {
	margin: 4px 0 12px 0;
	line-height: 1.4;
}
.artists h2 {
	margin: 0 0 0 108px;
	padding-left: 16px;
	font-size: 23px;
	background: var(--bg);
	border-radius: 6px;
}
.artists a {
	text-decoration: none;
}
.artists a:hover {
	color: var(--brand);
}
.more {
	float: right;
}
nav {
	display: flex;
	gap:8px;
}
.nav {
	display: flex;
	gap:8px;
}
.nav a {
	padding: 6px 10px;
	border-radius: 10px;
	color: var(--muted);
	text-decoration: none;
}
.nav a:hover, .nav a.active {
	background: rgba(255,152,0,.15);
	color: var(--text);
}

.lang-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-block;
	position: relative;
}
.lang-menu a {
	display: block;
	width: 32px;
	height: 32px;
}
.lang-dropdown {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
}
.lang-dropdown li {
    margin-top: 5px;
}

.pill {
	display: inline-flex;
	padding: 8px 12px;
	border-radius: 8px;
	border: none;
	background: linear-gradient(90deg,var(--brand),var(--brand-2));
	color: #241200;
	font-weight: 800;
	margin-left: 8px;
	cursor: pointer;
	min-height: 32px;
	align-items: center;
	text-decoration: none;
}
.pill:hover, .search .go:hover {
	transform: translateY(-1px) scale(1.02);
	box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}
#content .pill i {
	width: 16px; height: 16px; margin-right: 8px;
}
.burger.pill {
	display: none;
	float: left;
}
.mainava {
	float: right;
	width: 36px;
	height: 36px;
	border: 1px solid var(--border);
	border-radius: 36px;
	margin-left: 10px;
background-size: cover; 
}
.pill2 {
	padding: 6px 15px;
	border-radius: 10px;
	border:1px solid var(--border);
	background:var(--bg-elev);
	color:var(--text);
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	cursor:pointer;
	transition:transform .2s ease, box-shadow .2s ease;
	text-decoration: none;
}
.pill2:hover, .smallplayer:hover, #oblako a:hover, .artistblock article:hover {
	transform:translateY(-1px);
	box-shadow:0 8px 20px rgba(0,0,0,.18);
}
.cattitle {
	border-radius: 8px;
	border: none;
	background: linear-gradient(90deg,var(--brand),var(--brand-2));
	color: #241200;
	min-height: 32px;
	padding: 0 12px;
}
.cattitle button {
	display: none;
}

.rail-card {
	background:var(--bg-elev);
	border:1px solid var(--border);
	border-radius:14px;
	padding:12px;
	margin: 15px 0;
}


.rail-card::after { content:""; display:block; clear:both; }

img {
	max-width: 100%;
}
#themeBtn {
	border: none;
	background: none;
}
#openLogin {
	display: inline-flex;
	align-items: center;
}
nav.nav-open {
	display: flex;
}
main {
	display: grid;
	grid-template-columns: minmax(300px, 1fr) 3fr;
	gap: 16px;
	margin: 10px 0;
}
.w50, .allw50 {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.w50 > *, .allw50 > * { min-width: 0; }
.w25 {
	display: grid;
	gap: 12px;
	grid-template-columns: 2fr 2fr 2fr 1fr;
}

fieldset {
	border: var(--line); 
	padding: 5px 25px 35px 25px; 
	margin-bottom: 15px;
	border-radius: 16px;
	background: radial-gradient(800px 360px at 85% -40%, rgba(255,152,0,.18), transparent 60%), radial-gradient(900px 420px at 10% -40%, rgba(255,183,77,.16), transparent 60%), var(--bg-elev);
}
legend {
	border: var(--line);
	padding: 5px 15px 5px 15px; 
	border-radius:15px 5px 15px 5px ;
	background-color: #dddddd;
	background: linear-gradient(90deg,var(--brand),var(--brand-2));
	text-shadow: var(--bg) 1px 1px 2px;
	font-weight: bold;
}


.sec-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom:12px;
}


.minitext {
	font-size: 12px;
	margin: 35px 0 20px 0;
	border-top: 3px solid var(--brand);
	border-left: 1px solid var(--border);
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 15px;
	background: var(--glass);
	border-radius: 0 0 16px 16px;
}
.minitext p {
	padding: 3px 0 3px 0;
	margin: 3px;
}
.minitext h2, .minitext h3, .minitext h4 {
	background: none;
	padding-left: 0px;
}
.minitext h2 {
	font-size: 19px;
}
.minitext h3 {
	font-size: 17px;
}
.minitext h4 {
	font-size: 14px;
	margin: 0;
	margin-top: 14px;
}
.minitext ul {
	margin: 10px;
}
.minitext li {
	list-style-type: square;
	margin-left: 10px;
}






#content {
	min-height: 65vh;
}







.artistblock {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}
.artistblock article {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: 14px;
	text-align: center;
}
.artistblock img {
	width: 100%;
	height: auto;
	border-radius: 14px 14px 0 0;
}
.artistblock p {
	margin: 10px 0;
	padding: 0;
}
.artistblock p a {
	text-decoration: none;
}





footer {
	background: var(--bg-elev);
	border-top: var(--line);
	margin: 24px 0 0 0;
	padding: 22px 0;
	color: var(--text);
}
footer section {
	float: left;

}
footer nav {
	float: right;
}
.footer_menu ul {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 6px 12px;
	grid-template-columns: repeat(3, minmax(140px, 1fr));
}
.footer_menu a {
	color: var(--text);
	font-size: 14px;
}
.footer_menu a:hover {
	color: var(--muted);
}
.footer_text {
	margin: 6px 10px 10px 0;
	font-size: 14px;
	font-weight: normal;
	line-height: 1.4;
	width: 80%;
}
.footer_copy {
	margin: 0;
	font-size: 12px;
}
footer .sep {
	opacity: .5;
	text-decoration: none;
	margin: 0 10px;
}

.footer_legal {
	font-size: 12px;
	color: var(--muted);
	font-weight: normal;
	border-top: 1px solid #999;
	padding: 4px;
	margin-top: 7px;
}
.footer_legal a {
	color: inherit;
	text-decoration: underline;
}
.footer_legal a:hover {
	color: var(--text);
}
.sn {
	width: 36px; height: 36px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--border); border-radius: 10px;
	color: var(--text); opacity: .9;
}
.sn:hover {
	background: rgba(255,152,0,.15);
	opacity: 1;
}
.sn i, .ico-btn i {
	width: 16px;
	height: 16px;
}
footer .pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 19px;
}

h1 {
	font-size: 21px;
	margin: 16px 0;
	padding: 5px 10px;
	border-left: 5px solid var(--brand);
	border-top: 1px solid var(--border);
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	border-radius: 0 12px 12px 0;
	background: linear-gradient(180deg, var(--bg), var(--bg-elev));
}

h2 {
	font-size: 18px;
	margin: 0px;
}

h4 {
	font-size: 21px;
	margin: 7px 0 15px 0;
}
hr {
	height:1px;
	background: linear-gradient(to right, #ff6600, #ffcc00);
	margin:16px 0;
	border: none;
}

.pages {
	text-align: right;
	margin-bottom: 25px;
}
.pages a {
	margin: 0 5px;
	padding: 5px 10px;
	background: #eee;
	color: black !important;
	border-radius: 3px;
	text-decoration: none;
	font-weight: bold;
}
.pages a:hover {
	background: var(--brand);
}
.pages span {
	margin: 0 5px;
	padding: 5px 10px;
	background: var(--brand-2);
	border-radius: 3px;
	color: #000;
}






/* Modal */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: var(--modal-backdrop);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}
.modal {
	background: var(--modal-bg);
	color: var(--modal-fg);
	padding: 20px;
	border-radius: 8px;
	max-width: 600px;
	width: 94%;
	max-height: 90vh;
	overflow: auto;
	box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.modal .modalhead {
	font-weight: bold;
	margin-bottom: 10px;
	background: linear-gradient(180deg, var(--bg), var(--bg-elev));
	border-radius: 8px;
	padding: 3px 8px;
	border: 1px solid var(--border);
}
.modal .close {
	float: right;
	cursor: pointer;
	font-size: 18px;
	line-height: 1.3;
}
.modal .close:hover {
	opacity: 0.8;
}
.clear {
	clear: both;
}

.er, .erok, .warn {
	--bg: hsl(0 0% 98%);
	--bd: hsl(0 0% 87%);
	--fg: hsl(222 20% 16%);
	display: block;
	padding: 12px 14px;
	border: 1px solid var(--bd);
	background: var(--bg);
	color: var(--fg);
	border-radius: 12px;
	line-height: 1.45;
	font-size: .95rem;
	box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 8px 24px -20px rgba(0,0,0,.28);
	transition: background-color .25s, color .25s, border-color .25s;
}

.er   { --bg: var(--er-bg); --bd: var(--er-bd); --fg: var(--er-fg); text-align: center; }
.erok { --bg: var(--ok-bg); --bd: var(--ok-bd); --fg: var(--ok-fg); }
.warn { --bg: var(--wn-bg); --bd: var(--wn-bd); --fg: var(--wn-fg); }

.er b, .erok b, .warn b { font-weight: 600; }
.er a, .erok a, .warn a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }





@media (hover: hover) {
	.lang-selected:hover > .lang-dropdown {
		display: block;
		margin-top: -3px;
	}
}
@media (hover: none) {
	.lang-selected:focus-within > .lang-dropdown {
		display: block;
	}
	.lang-selected > a {
		cursor: pointer;
	}
}

@media (max-width: 1090px) {
	#openLogin {
		font-size: 0;
	}
	.icon--login, .icon--menu {
		margin-right: 1px;
	}
	.icon--search {
		display: none;
	}
	.icon--searchbtn {
		display: inline-flex;
		margin: 2px;
	}
	.search input {
		padding: 10px 40px 10px 10px;
	}
	.search .go {
		font-size: 0;
		padding: 8px 3px 7px 7px;
	}
	.artistblock {
		grid-template-columns: repeat(3, 1fr);
	}

}
.sidebar-toggle {
    display: none;
    padding: 12px 16px;
    background: var(--brand, #ff5400);
    color: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
	width: 100%;
	font-weight: bold;
	font-size: 16px;
	border: none;
}
@media (max-width: 998px) {

	h1 {
		font-size: 18px;
		margin: 10px 0;
	}

	header nav {
		display: none;
		position: fixed; top: 58px; right: 0;
		height: 100dvh; width: min(85vw, 320px);
		background: var(--drawer-bg);
		color: var(--drawer-fg);
		border-left: 1px solid var(--border);
		z-index: 1001;
		padding: 16px;
		flex-direction: column; gap: 12px;
		overflow: auto;
	}
	header nav.nav-open {
		display: flex;
	}
	header nav .nav{
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
    .nav a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px
    }
    .nav span {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        background: url(/images/icons.webp) no-repeat
    }
	.burger.pill {
		display: grid;
		place-items: center;
		height: 35px;
	}
	.header__row {
		grid-template-columns: auto 1fr auto auto auto;
	}
	.brand {
		min-height: 32px;
	}
	.brand span {
		display: none;
	}
	.lang-menu {
		display: flex;
		max-width: 100px;
	}
	#themeBtn {
		margin-top: -46px;
		margin-left: auto;
	}
	.nav {
		border-bottom: 1px solid #cccccc;
	}
	main {
		grid-template-columns:1fr;
	}
	.footer_text {
		width: 100%;
	}
	footer section, footer nav {
		width: 100%;
		display: block;
	}
	.footer_menu ul {
		grid-template-columns: repeat(2, minmax(50%, 1fr));
		margin: 20px;
	}
	.footer_copy, .footer_legal {
		margin: 7px auto;
		text-align: center;
	}


	.w50 {
		grid-template-columns: 1fr;
	}

	.w25 {
		display: grid;
		gap: 12px;
		grid-template-columns: 1fr;
	}


    .sidebar {
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        max-width: 420px;
        height: calc(100dvh - 60px);
        background: var(--bg-elev);
        z-index: 1002;
        overflow-y: auto;
        transform: translateX(-110%);
        transition: transform .25s ease;
        display: block;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-toggle {
        display: block;
    }

	.cattitle button {
		border-radius: 6px;
		border:1px solid var(--border);
		background:var(--bg-elev);
		color:var(--text);
		display:inline-flex;
		align-items:center;
		justify-content:center;
		gap:8px;
		cursor:pointer;
		font-weight: bold;
	}

}

.categories{
	list-style: none;
	margin: 0;
	padding: 10px;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
}
.categories > li{
	width: 50%;
	padding-right: 16px;
	padding-bottom: 20px;
	box-sizing: border-box;
}
.categories > li a{
	text-decoration: none;
}
.categories > li > ul{
	list-style: none;
	margin: 3px 0 0 12px;
	padding: 0;
}
.categories > li > ul a{
	color: var(--muted);
	font-size: 12px;
	text-decoration: underline;
}
.categories > li > ul a:hover{
	text-decoration: none;
}
@container (max-width: 300px){
	.categories > li {
		width: 100%;
		padding-right: 0;
	}
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.loginform {
	max-width: 360px;
	margin: 0 auto;
}
.act {
	background: none;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.act i {
	cursor: pointer;
}

/* ====== Поля (input / textarea / select) ====== */
.input, textarea.input, select.input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--text);
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
	box-shadow: inset 0 0 0 1px transparent;
	min-height: 40px;
}

.input::placeholder { color: color-mix(in oklab, var(--muted) 92%, var(--text) 8%); }

.input:focus {
  border-color: color-mix(in oklab, var(--brand) 75%, var(--text) 25%);
  box-shadow:
    0 0 0 3px color-mix(in oklab, var(--brand) 25%, transparent 75%),
    inset 0 0 0 1px color-mix(in oklab, var(--brand) 65%, var(--text) 35%);
}

.input:hover:not(:disabled):not(:focus) {
  border-color: color-mix(in oklab, var(--border) 40%, var(--text) 60%);
}

.input:disabled,
.input[readonly] {
  opacity: .65;
  cursor: not-allowed;
}

textarea.input { resize: vertical; min-height: 110px; }

/* Невалидное поле по HTML-валидации */
.input:invalid:not(:placeholder-shown) {
  background: var(--er-bg);
  border-color: var(--er-bd);
  color: var(--er-fg);
}


.input--ok    { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok-fg); }
.input--warn  { background: var(--wn-bg); border-color: var(--wn-bd); color: var(--wn-fg); }
.input--error { background: var(--er-bg); border-color: var(--er-bd); color: var(--er-fg); }

.input--ok:focus    { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok-bd) 45%, transparent); }
.input--warn:focus  { box-shadow: 0 0 0 3px color-mix(in oklab, var(--wn-bd) 45%, transparent); }
.input--error:focus { box-shadow: 0 0 0 3px color-mix(in oklab, var(--er-bd) 45%, transparent); }




/* ====== Кнопки ====== */
.btn {
  --_bg: var(--bg-elev);
  --_fg: var(--text);
  --_bd: var(--border);
  --_ring: color-mix(in oklab, var(--brand) 28%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--_bd);
  background: var(--_bg);
  color: var(--_fg);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease, opacity .15s ease;
  user-select: none;
  min-height: 40px;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--_ring);
  border-color: color-mix(in oklab, var(--brand) 70%, var(--text) 30%);
}

/* Варианты */
.btn--primary {
  --_bg: linear-gradient(90deg, var(--brand), var(--brand-2));
  --_fg: #241200;
  --_bd: color-mix(in oklab, var(--brand) 65%, var(--text) 35%);
  box-shadow: 0 8px 22px color-mix(in oklab, var(--brand) 30%, transparent);
}
.btn--primary:hover {
  box-shadow: 0 10px 26px color-mix(in oklab, var(--brand) 40%, transparent);
}

.btn--secondary {
  --_bg: var(--bg-elev);
  --_fg: var(--text);
  --_bd: color-mix(in oklab, var(--border) 50%, var(--text) 50%);
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
.btn--secondary:hover {
  border-color: color-mix(in oklab, var(--border) 25%, var(--text) 75%);
}

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--text);
  --_bd: color-mix(in oklab, var(--border) 35%, transparent);
  border-style: dashed;
}

.btn > i,
.btn > svg { width: 16px; height: 16px; flex: 0 0 16px; }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .input { transition: none; }
}



#openLogin {
	height: 35px;
}
.share-buttons {
	display: flex;
	align-items: center;
	gap: 5px;
	position: relative;
	justify-content: flex-end;
}
.share-buttons i {
	margin-right: 0;
}
.share-buttons span {
	display: flex;
	background: var(--bg-elev);
	border: none;
	text-decoration: none;
	border-radius: 6px;
	border: 1px solid var(--border);
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
	margin: 2px;
	align-items: center;
	padding: 8px;
}
.share-buttons span i {
	width: 16px;
	height: 16px;
	display: flex;
}
.share-buttons span:hover,
.share-buttons a:hover,
.more-btn:hover {
	background: var(--glass);
	border: 1px solid var(--brand);
}
.more-dropdown {
	position: relative;
	display: inline-block;
}
.dropdown-content {
	display: none;
	position: absolute;
	bottom: 100%;
	left: -200px;
	width: 220px;
	background-color: var(--bg);
	border: 1px solid var(--border);
	z-index: 10;
	flex-direction: column;
	padding: 10px;
	border-radius: 5px;
	box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}
.dropdown-content span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.more-dropdown:hover .dropdown-content {
	display: flex;
}

#ajaxBusy {
	position: fixed;
	display: none;
	inset: 40% 0 0 0;
	z-index: 91;
}
#ajaxBusy.is-visible {
	display: flex;
}

#ajaxBusy > img {
	width: 100px;
	height: 100px;
	display: block;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.captcha {
	--cap-w: 120px;
	--cap-h: 40px;
	--cap-pad: 4px;
	position: relative;
	display: block;
	max-width: 420px;
}
.captcha .input {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	padding-left: calc(var(--cap-w) + var(--cap-pad)*2 + 8px);
	min-height: calc(var(--cap-h) + var(--cap-pad)*2);
	border-radius: 10px;
	font-weight: bold;
	font-size: 16px;
}
.captcha > img{
	position: absolute;
	left: var(--cap-pad);
	top: 50%;
	transform: translateY(-50%);
	width: var(--cap-w);
	height: var(--cap-h);
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.08);
	cursor: pointer;
	user-select: none;
}
.googlebtn {
	width: 100%;
	display: block;
	align-items: center;
	text-align: center;
	background: #4285f4;
	border-radius: 7px;
	padding: 7px 30px;
	color: #ffffff;
	text-decoration: none;
}





.toast-pop {
	position: fixed;
	left: 50%;
	top: 70px;
	transform: translateX(-50%);
	max-width: min(98vw, 600px);
	padding: 10px 25px;
	border-radius: 10px;
	background: #111;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
	z-index: 10000;
	opacity: 0;
	transition: opacity .25s ease, transform .25s ease;
}
.toast-pop.ok { background:#0a0; }
.toast-pop.err{ background:#d00; }
.toast-pop.show{ opacity:1; transform:translate(-50%, 0); }




.tbl {
	width: 100%;
	border-radius: 4px;
	border: var(--line);
}
.tbl th {
	background-color: #666;
	border-radius: 3px;
	height: 30px;
	line-height: 30px;
	color: #111;
}
.tbl td {
	border-radius: 3px;
	border: var(--line);
}
.tbl td:hover {
	border-radius: 3px;
	border: var(--line);
	background-color: var(--bg);
}
.tbl tr {
	text-align: center;
}
.tbl .ftr, .tbl .ftr:hover {
	padding-left: 3px;
	background-color: #999;
}


.abc{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  padding: 8px;
  border: var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--bg), var(--bg-elev));
}

/* Разделительная линия между группами */
.abc > hr{
  flex-basis: 100%; 
  margin: 8px 0;
  opacity: .7;               /* чуть мягче */
}

/* Кнопки-буквы */
.abc a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .3px;
  transition: transform .12s ease, box-shadow .15s ease,
              background-color .15s ease, border-color .15s ease;
}
.abc a:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  border-color: color-mix(in oklab, var(--border) 25%, var(--text) 75%);
  background: rgba(255,152,0,.14);
}

@media (max-width: 520px){
  .abc{ gap: 6px; padding: 8px; }
  .abc a{
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }
  .abc > hr{ margin: 6px 0; }
}
.artistphoto {
	width: 230px;
	height: 230px;
	float: left;
	margin: 20px 12px 4px 0;
	border-radius: 8px;
}








.truncate-toggle{
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	font: inherit;
	color: var(--brand);
	text-decoration: underline;
}
.truncate-toggle:hover{ text-decoration: none; }
.js-truncate {
	overflow-wrap: anywhere;
	word-break: break-word; 
	font-size: 12px;
	font-weight: normal;
}


/* Тёмная тема (если используете data-theme) */
html[data-theme="dark"]{
  --card:#1b1d22; 
  .btn{ background:#23262c; border-color:var(--line); }
  .my-item:hover{ background:#23262c; }
}











.post {
	margin-top: 15px;
}
.card {
	background:var(--card); border-radius:12px; padding:12px;
	box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.profile {
	--side: 320px;
	display:grid;
	gap:16px;
	max-width:1200px;
	margin:0 auto;
	grid-template-columns: 1fr;
}
.profile__header{
	grid-column: 1 / -1; display:flex; gap:16px; align-items: center;
}
.profile__avatar{
	width:100px; height:100px; border-radius:50%; overflow:hidden; flex:0 0 auto; background: #999; cursor: pointer;
}
.profile__avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.profile__head { min-width:0; }
.profile__head small { font-size: 12px; color: #999; padding-top: 4px; }
.profile__name { margin:0 0 5px; font: 700 20px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.nick{ font-weight:600; color:var(--muted); }
.profile__actions{ display:flex; flex-wrap:wrap; gap:8px; }
.profile__side{ display:grid; gap:16px;align-items: start;align-content: start; }
.profile__main{ display:grid; gap:16px; }

.profile__status{ color:#16a34a; font-weight:600; font-size: 31px; margin-top: -1px; }
.profile__offstatus{ color:#999; font-weight:600; font-size: 31px; margin-top: -1px; }

.card__title{ margin:0 0 10px; font-weight:700; display:flex; gap:8px; align-items:center; }
.card__title .card__more{ margin-left:auto; font-size:12px; color:var(--muted); text-decoration:none; }
.card__more:hover{ text-decoration:underline; }

.my-item{
  width:100%; display:grid; grid-template-columns: 1fr auto; gap:8px; align-items:center;
  padding:10px; border-radius:8px; color:inherit; text-decoration:none; cursor:pointer;
}
.my-item:hover{ background:#f2f3f5; }
.my-item__title{ display:inline-flex; align-items:center; gap:10px; font-weight:600; min-width:0; }
.my-item__sub{ display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); }
.my-item i { width: 16px; height: 16px; }



.info{ display:grid; gap:8px; }
.info > div{ display:grid; grid-template-columns: 120px 1fr; gap:10px; align-items:start;font-weight: normal; font-size: 12px; }
.info dt{ color:var(--muted); }
.info dd{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.friends{ list-style:none; padding:0; margin:0; display:grid; gap:10px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 480px){ .friends{ grid-template-columns: repeat(3, 1fr); } }
.friend__link{ display:grid; justify-items:center; gap:6px; text-decoration:none; color:inherit; }
.friend__ava{ width:72px; height:72px; border-radius:50%; object-fit:cover; display:block; }
.friend__name{ font-size:12px; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }

.composer{ display:grid; grid-template-columns: auto 1fr; gap:12px; align-items:flex-start; min-height: 100px; }
.composer__ava{ width:44px; height:44px; border-radius:50%; object-fit:cover; display:block; }
.composer__text{
  width:100%; resize:none; min-height:44px; max-height:40vh;
  border:1px solid var(--border); border-radius:10px; padding:10px 12px; font:14px/1.35 system-ui, sans-serif;
}
.composer__bar{ display:flex; align-items:center; gap:10px; margin-top:8px; }


@media (min-width: 960px){
  .profile{ grid-template-columns: var(--side) 1fr; }
}













/* шапка поста */
.post__head {
	display: flex;
	align-items: center;
	gap: 12px;
	border-radius: 8px 8px 0 0;
	padding: 5px;
	background: var(--bg);
	border-bottom: var(--line);
}

.post__author{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.post__ava{ width:44px; height:44px; border-radius:50%; object-fit:cover; display:block; }
.post__name{ font-weight:700; display:flex; flex-wrap:wrap; gap:8px; }
.post__name .nick{ color:var(--muted); font-weight:600; }
.post__time{ color:var(--muted); font-size:12px; }
.post__menu{ margin-left:auto; border:0; background:none; cursor:pointer; font-size:20px; line-height:1; }

/* тело поста */
.post__body{ display:grid; gap:10px; margin-top:8px; }
.post__text{ margin:0; }
.long-text{ overflow-wrap:anywhere; word-break:break-word; }

.post__media{ margin:0; border-radius:10px; overflow:hidden; border:var(--line); }
.post__media img{ width:100%; display:block; object-fit:cover; height:auto;cursor:pointer; }
.post__caption{ padding:8px 10px; color:var(--muted); font-size:21px; text-align: center }
.post__audio { padding: 0 16px 16px 16px; }
.post__audio .track-progress { margin-top: 7px; width: calc(100% - 50px); }

/* действия */
.post__actions{
	display: flex;
	gap: 8px;
	border-top: var(--line);
	padding-top: 8px;
	margin-top: 8px;
	justify-content: flex-end; 
	margin-bottom: 10px;
}


/* комментарии */
.commentswall{ margin-top:8px; display:grid; gap:10px; }
.comments__list{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.comment{ display:grid; grid-template-columns:auto 1fr; gap:10px; }
.comment__ava{ width:34px; height:34px; border-radius:50%; object-fit:cover; }
.comment__bubble{
  background:#f6f7fb; border:var(--line); border-radius:10px; padding:8px 10px;
}
.comment__bubble p {
	margin: 8px 8px 8px 40px;
}
.comment__meta{ display:flex; gap:8px; align-items:center; }
.comment__name{ font-weight:700; color:inherit; text-decoration:none; }
.comment__bubble time{ color:var(--muted); font-size:12px; }
.comment__text{ margin-top:4px; }

#minatrix-player {
	width: 100%;
	margin: 0 auto;
	height: 85px;
}

html[data-theme="dark"]{

  .comment__bubble{ background:#23262c; }
}



























.mx-about h3 {
	margin: 0;
	padding-bottom: 12px;
	font-size: 18px;
}
.sharepop{
  position: fixed;
  z-index: 150;
  max-width: 260px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}



.sharepop__item{
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 10px;
  border-radius: calc(var(--radius) - 6px);
  color: var(--text);
  cursor: pointer;
  font: inherit;
	display: flex;
    align-items: center;
}

.sharepop__item:hover{
  background: color-mix(in oklab, var(--bg) 70%, transparent 30%);
}



/* =========================
   ICONS (LIKE / DISLIKE) — CSS MASK, THEME-FRIENDLY
   ========================= */

.iconprew{
	width: 14px;
	height: 14px;
	display: inline-block;
	background-color: var(--muted);

	mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;

  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;

  transition: background-color .2s ease, transform .15s ease;
}

/* Like SVG */
.icon--like{
	
  mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M2 10h4v12H2zM22 11.5c0-1.1-.9-2-2-2h-6.3l1-4.6.03-.32c0-.4-.17-.8-.44-1.1L13 2 6.6 8.4C6.2 8.8 6 9.3 6 9.8V20c0 1.1.9 2 2 2h8c.8 0 1.5-.5 1.8-1.2l3-7c.1-.2.2-.5.2-.8v-1.5z'/>\
</svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M2 10h4v12H2zM22 11.5c0-1.1-.9-2-2-2h-6.3l1-4.6.03-.32c0-.4-.17-.8-.44-1.1L13 2 6.6 8.4C6.2 8.8 6 9.3 6 9.8V20c0 1.1.9 2 2 2h8c.8 0 1.5-.5 1.8-1.2l3-7c.1-.2.2-.5.2-.8v-1.5z'/>\
</svg>");
}

/* Dislike SVG */
.icon--dislike{
margin-top: 2px;
  mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M22 14h-4V2h4zM2 12.5c0 1.1.9 2 2 2h6.3l-1 4.6-.03.32c0 .4.17.8.44 1.1L11 22l6.4-6.4c.4-.4.6-.9.6-1.4V4c0-1.1-.9-2-2-2H8c-.8 0-1.5.5-1.8 1.2l-3 7c-.1.2-.2.5-.2.8v1.5z'/>\
</svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M22 14h-4V2h4zM2 12.5c0 1.1.9 2 2 2h6.3l-1 4.6-.03.32c0 .4.17.8.44 1.1L11 22l6.4-6.4c.4-.4.6-.9.6-1.4V4c0-1.1-.9-2-2-2H8c-.8 0 1.5.5-1.8 1.2l-3 7c-.1.2-.2.5-.2.8v1.5z'/>\
</svg>");
}

/* =========================
   VIEW ICON (EYE)
   ========================= */

.icon--views{
  mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 5c-5.5 0-9.5 4.5-10.8 6.1a1.5 1.5 0 000 1.8C2.5 14.5 6.5 19 12 19s9.5-4.5 10.8-6.1a1.5 1.5 0 000-1.8C21.5 9.5 17.5 5 12 5zm0 11a4 4 0 110-8 4 4 0 010 8z'/>\
</svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 5c-5.5 0-9.5 4.5-10.8 6.1a1.5 1.5 0 000 1.8C2.5 14.5 6.5 19 12 19s9.5-4.5 10.8-6.1a1.5 1.5 0 000-1.8C21.5 9.5 17.5 5 12 5zm0 11a4 4 0 110-8 4 4 0 010 8z'/>\
</svg>");
}
.icon--more {
	background-position: -144px -64px;
	display: flex;
	width: 16px;
	height: 16px;
	margin: 6px;
}

/* hover for icon preview */
.mx-likebox__stats .iconprew:hover{
  background-color: var(--text);
  transform: scale(1.08);
}

/* stats: icon + number vertical centering */
.mx-likebox__stats > span{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

/* =========================
   MOVIE PAGE LAYOUT
   ========================= */

.mx-movie{ overflow:hidden; }

/* TOP LAYOUT */
.mx-movie__top{
  display:grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap:16px;
  align-items:start;
}
@media (max-width: 998px){
  .mx-movie__top{ grid-template-columns: 1fr; }
}

/* left column container */
.mx-movie__left{ display:flex; flex-direction:column; gap:10px; min-width:0; }

/* ====== POSTER ====== */
.mx-movie__poster{
  position:relative;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  aspect-ratio: 2 / 3;
}
.mx-movie__poster img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  max-width:none;
	cursor: pointer;
}

/* badges */
.mx-movie__badges{
  position:absolute;
  left:12px;
  top:12px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.mx-badge{
  display:inline-flex;
  padding:6px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg-elev) 82%, transparent 18%);
  backdrop-filter: blur(6px);
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}
.mx-badge--rate{
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border) 45%);
  background: rgba(255,152,0,.18);
	color: #ff8c00;
	text-shadow: 1px 1px 2px #000;
}
.mx-badge--brand{
  border-color: color-mix(in oklab, var(--brand) 70%, var(--border) 30%);
  background: linear-gradient(90deg, rgba(255,152,0,.30), rgba(255,183,77,.22));
}

/* ====== HEAD ====== */
.mx-movie__head{ min-width:0; display:flex; flex-direction:column; gap:10px; }
.mx-movie__title{ margin:0; font-size: 22px; line-height: 1.2; }
@media (max-width: 998px){ .mx-movie__title{ font-size: 20px; } }
.mx-movie__year{ color: var(--muted); font-weight: 700; }
.mx-movie__descTop{ margin:0; color: var(--muted); }

/* actions */
.mx-movie__actions{ display:flex; gap:8px; flex-wrap:wrap; }

/* ====== META TABLE (2-column adaptive) ====== */
.mx-meta2{
  margin: 0;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent 30%);
  border-radius: 16px;
  background: color-mix(in oklab, var(--bg) 70%, transparent 30%);
  overflow: hidden;
}

/* row = dt dd | dt dd */
.mx-meta2__row{
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 10px 12px;
  border-top: 1px solid color-mix(in oklab, var(--border) 65%, transparent 35%);
  align-items: start;
}
.mx-meta2__row:first-child{ border-top: 0; }

.mx-meta2 dt{
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
}
.mx-meta2 dd{
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* wide line */
.mx-meta2__wide{
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 10px 12px;
  border-top: 1px solid color-mix(in oklab, var(--border) 65%, transparent 35%);
}

/* narrow right column -> one pair per line (second pair goes below) */
@media (max-width: 700px){
  .mx-meta2__row{
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .mx-meta2__row > dt:nth-of-type(2),
  .mx-meta2__row > dd:nth-of-type(2){
    margin-top: 6px;
  }
}

/* phone: label above value */
@media (max-width: 520px){
  .mx-meta2__row,
  .mx-meta2__wide{
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .mx-meta2__row > dt:nth-of-type(2),
  .mx-meta2__row > dd:nth-of-type(2){
    margin-top: 0;
  }
  .mx-meta2 dt{ font-size: 11px; }
}

/* ====== RATING AREA ====== */
.mx-ratings{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  align-items:stretch;
}
@media (max-width: 520px){
  .mx-ratings{ grid-template-columns: 1fr; }
}

.mx-rate{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  background: color-mix(in oklab, var(--bg) 65%, transparent 35%);
}
.mx-rate--brand{
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border) 45%);
  background:
    radial-gradient(900px 420px at 10% -40%, rgba(255,183,77,.14), transparent 60%),
    url("/images/minatrixrait.webp") right center / auto 70% no-repeat,
    rgba(255,152,0,.06);
}
.mx-rate__label{ color: var(--muted); font-size: 12px; font-weight: 900; }
.mx-rate__val{ font-size: 24px; font-weight: 900; margin-top: 2px; }
.mx-rate__hint{ margin-top: 2px; color: var(--muted); font-size: 12px; }

/* ====== LIKEBOX (under poster) ====== */
.mx-likebox{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  border: 1px solid color-mix(in oklab, var(--border) 65%, transparent 35%);
  border-radius: 16px;
  padding: 10px;
  background: color-mix(in oklab, var(--bg) 70%, transparent 30%);
}
.mx-likebox__stats{
  display:flex;
  gap:10px;
  color: var(--muted);
  font-size: 12px;
}
.mx-likebox--poster{ justify-content:center; }
@media (max-width: 998px){ .mx-likebox--poster{ justify-content:flex-start; } }

/* ====== CARD UTIL ====== */
.mx-card{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elev);
  padding: 12px;
}
.mx-card h2{ margin:0 0 10px 0; font-size:16px; }

/* text container for TinyMCE html */
.mx-text{ font-size: 14px; line-height: 1.65; }
.mx-text p{ margin: 0 0 10px 0; }
.mx-text a{ text-decoration: underline; }
.mx-text a:hover{ text-decoration:none; }

/* ====== PLAYER (BOTTOM) ====== */
.mx-player{ margin-top: 14px; }
.mx-player__tools{ display:flex; gap:8px; flex-wrap:wrap; }

.mx-player__frame{
  margin-top: 10px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 16 / 9;
}
.mx-player__frame iframe,
.mx-player__frame video{
  width:100%;
  height:100%;
  display:block;
  border:0;
}

/* ====== SIMILAR ROW (UNDER PLAYER) ====== */
.mx-similarWrap{ margin-top: 12px; }

.mx-similarRow{
  display:grid;
  gap:10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1320px){
  .mx-similarRow{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 998px){
  .mx-similarRow{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .mx-similarRow{ grid-template-columns: 1fr; }
}

.mx-sim{
  display:flex;
  flex-direction:column;
  gap:8px;
  text-decoration:none;
  border: 1px solid color-mix(in oklab, var(--border) 65%, transparent 35%);
  border-radius: 16px;
  background: color-mix(in oklab, var(--bg) 70%, transparent 30%);
  padding: 10px;
  overflow:hidden;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.mx-sim:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border) 45%);
}

.mx-sim__cover{
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  aspect-ratio: 2 / 3;
}
.mx-sim__cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  max-width:none;
}
.mx-sim__title{
  font-weight: 900;
  line-height: 1.25;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mx-sim__year{ color: var(--muted); font-weight: 800; }
.mx-sim__meta{ color: var(--muted); font-size: 12px; }


.mx-films-grid{
	display:grid;
	gap:12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1320px){
	.mx-films-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 998px){
	.mx-films-grid{ grid-template-columns: 1fr; }
}

.mx-catalog__ttl{ margin:0; }
.mx-catalog__tools{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.mx-catalog__sort{ max-width: 220px; }

.mx-film-row{
  float:none !important;
  display:grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap:12px;
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(800px 360px at 85% -40%, rgba(255,152,0,.12), transparent 60%),
    radial-gradient(900px 420px at 10% -40%, rgba(255,183,77,.10), transparent 60%),
    var(--bg-elev);
  padding:12px;
  overflow:hidden;
}

@media (max-width: 520px){
  .mx-film-row{ grid-template-columns: 1fr; }
}

/* ====== Обложка ====== */
.mx-film-row__cover{
  position:relative;
  display:block;
  text-decoration:none;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent 30%);
  background: var(--bg);
  aspect-ratio: 2 / 3;
}

/* важно: изоляция от глобальных img-правил */
.mx-film-row__img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  max-width:none;
}

/* бейджи */
.mx-film-row__badges{
  position:absolute;
  left:10px;
  top:10px;
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  pointer-events:none;
}
.mx-film-row__badge{
  display:inline-flex;
  align-items:center;
  padding:6px;
  border-radius:10px;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--bg-elev) 82%, transparent 18%);
  backdrop-filter: blur(6px);
  font-weight:800;
  font-size:12px;
  line-height:1;
}
.mx-film-row__badge--rate{
  border-color: color-mix(in oklab, var(--brand) 60%, var(--border) 40%);
  background: rgba(255,152,0,.18);
}

/* ====== Тело ====== */
.mx-film-row__body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mx-film-row__title{
  margin:0;
  font-size:16px;
  line-height:1.25;
}
.mx-film-row__title a{ text-decoration:none; }
.mx-film-row__title a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mx-film-row__year{
  color: var(--muted);
  font-weight:700;
}

.mx-film-row__meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  font-size:12px;
  color: var(--muted);
}
.mx-film-row__meta span{
  border: 1px dashed color-mix(in oklab, var(--border) 60%, transparent 40%);
  border-radius: 10px;
  padding: 4px 8px;
  background: color-mix(in oklab, var(--bg) 65%, transparent 35%);
}

.mx-film-row__desc{
  margin:0;
  font-size:13px;
  color: color-mix(in oklab, var(--text) 88%, var(--muted) 12%);
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mx-film-row__actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.mx-film-row__actions .btn{
  padding: 9px 12px;
  min-height: 38px;
}

.mx-film-row__stats{
  margin-top:auto;
  padding-top:8px;
  border-top: 1px solid color-mix(in oklab, var(--border) 65%, transparent 35%);
  display:flex;
  gap:10px;
  color: var(--muted);
  font-size:12px;
}


.home-intro{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:16px;
  align-items:center;
}

.home-intro__media img{
  width:100%;
  height:auto;
  border-radius: calc(var(--radius) + 4px);
}

.home-intro__content h2{
  margin:0 0 8px;
}

.home-intro__content p{
  margin:0 0 8px;
  color: var(--text);
}

@media (max-width: 900px){
  .home-intro{
    grid-template-columns: 1fr;
  }
}







