/* Push notifications
----------------------------------------------- */


.js-toggle-fav {
    width: 100%;
    box-shadow: 0 1px 3px rgb(0 0 0 / 30%);
    font-weight: 300;
    margin-top: 15px;
    text-align: center;
}

.poster_subscribes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 7;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}
.poster_subscribes-item:last-child {
    border-radius: 0 0 4px 0;
}
.poster_subscribes-item:first-child {
    border-radius: 0 0 0 4px;
}
.poster_subscribes-item {
    line-height: 28px;
    padding: 0 8px;
    background: #283d5e;
    color: #fff;
}

/* Kodik Playlist
----------------------------------------------- */
#player{background:#000;min-height:460px}
.b-player{background:#000;padding-top:10px;position:relative}
.b-player iframe{overflow:hidden;width: 100% !important}
.b-player iframe::-webkit-scrollbar{display:block}
.b-player__restricted{background:#000;height:360px;position:relative}
.b-player__restricted_string{color:#fff;display:block;font-size:14px;font-weight:bold;margin-top:-30px;position:absolute;top:50%;left:0;text-align:center;text-transform:uppercase;width:100%}
.b-player__restricted_string a{text-decoration:underline}
.b-post__lastepisodeout{background:#ccc no-repeat 13px 50%;overflow:hidden;padding: 10px 7px 10px 5px;}
.b-post__lastepisodeout h2{color:#222;font-size: 14px !important;font-weight:bold;line-height:16px;margin:0 0 0 0}
#player-loader-overlay{background:#000 url(../images/ajax-loader-big-black.gif) no-repeat 50% 50%;display:none;height: calc(100% - 50px);position:absolute;width:100%}
.b-translators__block{background:#151515;padding-top:10px;padding-left:10px;padding-bottom:10px;text-align:left !important}
.b-translators__title{color:#fff;font-size:15px;font-weight:bold;padding-bottom: 10px;}
.b-translators__title h2,.b-translators__title h3{display:inline}
.b-translators__list{overflow:hidden;-moz-padding-start:0px;padding-start:0px;-webkit-padding-start:0px;margin:0 0 0 0}
.b-translator__item{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:#2d2d2d;color:#fff;cursor:pointer;float:left;font-size:14px;margin-left: 3px !important;margin-top:3px;overflow:hidden;padding:5px 0 5px 10px;text-overflow:ellipsis;white-space:nowrap;width:32.5%}
.b-translator__item.single{float:none;display:inline-block;margin-left:0;padding:5px 10px;width:auto}
.b-translator__item:nth-child(3n +1){margin-left:0px}
.b-translator__item.active,.b-simple_season__item.active,.b-simple_episode__item.active{background:#5d5d5d !important;cursor:default}
.b-translator__item:hover,.b-changeplayer__list li:hover,.b-simple_season__item:hover,.b-simple_episode__item:hover{background:#4d4d4d}
.b-changeplayer__list{overflow:hidden}
.b-changeplayer__list li{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:#2d2d2d;color:#fff;cursor:pointer;float:left;font-size:14px;margin-top:5px;overflow:hidden;padding:5px 10px}
.b-changeplayer__list li.active{background:#000 !important;cursor:default}
.b-episodes__wrapper{border-bottom:1px solid #dcdcdc;margin-bottom:18px;-webkit-transition:opacity 0.5s ease;-moz-transition:opacity 0.5s ease;-o-transition:opacity 0.5s ease;transition:opacity 0.5s ease}
.b-episodes__list{margin-left:-16px;padding:32px 0 15px;-webkit-transition:opacity 0.5s ease;-moz-transition:opacity 0.5s ease;-o-transition:opacity 0.5s ease;transition:opacity 0.5s ease}
.b-episodes__list li{float:left;margin:0 0 17px 17px}
.b-episodes__list .resume-main img{background-position:50% 0;background-size:166px}
.b-episodes__list .string{z-index:1}
.b-episodes__list .string span{background:#000;padding:2px 4px}
.b-episodes__list .play{z-index:2}
.b-simple_seasons__list{margin:0 auto;padding:10px;padding:4px 10px 12px 13px;list-style:none}
.b-simple_seasons__title{color:#fff;font-size:15px;font-weight:bold;padding-top:10px;padding-left:11px;text-align:left}
.b-simple_season__item{background:#2d2d2d;color:#fff;cursor:pointer;float:left;font-size:13px;margin: 0 2px 2px 0 !important;min-width:11.8%;padding:5px 7px;text-align:left;list-style: none !important}
.b-simple_episodes__list{margin:0 auto;padding:10px 10px 12px 13px;text-align:left}
.b-simple_episode__item{position:relative;background:#2d2d2d;color:#fff;cursor:pointer;display:inline-block;font-size:13px;margin: 0 2px 2px 0 !important;width:69px;padding:5px 7px;text-align:left}
#kodik_player_ajax{min-height:600px;background: #151515;}
#simple-episodes-tabs{white-space:nowrap;overflow:hidden;margin:0 30px 0 30px;display:block;position:relative}
@media only screen and (max-width: 590px) {
    #simple-episodes-tabs {-webkit-overflow-scrolling: touch;overflow-x:scroll}
    #kodik_player_ajax{min-height:300px}
    #player{background:#000;min-height:300px}
}
.b-simple_episodes__list{-moz-padding-start:0px;padding-start:0px;-webkit-padding-start:0px;text-align:left}
.b-simple_episode__item{position: relative;display:inline-block;font-size:11px;background:#242424;color:#F0F0F0;cursor:pointer;padding:5px;margin:0 3px;-webkit-transition:background .3s ease;-moz-transition:-moz-background .3s ease;-o-transition:-o-background .3s ease;transition:background .3s ease;text-align:left}
.b-simple_episode__item.active{background:#525252 !important;cursor:default}
.prenext{position:relative}
.prevpl,.nextpl{position:absolute;top:0px;font-size:xx-large;width:25px;height:20px;color:#D5D9D9;cursor:pointer;font-weight:bold;z-index:999}
.prevpl{left:0px}
.nextpl{right:0px}
#player_wrap.premact{width:100%}
.show-flex-grid{display: flex;flex-wrap: wrap;padding: 5px;max-height: 155px;overflow-y: auto;}

.sw_hidden_for_player {
    position: absolute;
    bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.sw_hidden_for_player progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    height: 6px;
    appearance: none;
}

.sw_hidden_for_player .sw_hover {
    position: relative;
    background: #fff;
    color: #000;
    flex-direction: column;
    align-items: center;
    width: 0;
    margin: 0;
    font-size: 12px;
    padding: 0;
    border-radius: 5px;
    visibility: hidden;
    opacity: 0;
    display: flex;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0s 0.3s;
}

.sw_hidden_for_player .hovernius {
    visibility: visible;
    opacity: 1;
    pointer-events: unset;
    transition: opacity 0.3s;
    width: 25%;
    padding: 5px 5px;
    margin: 0 auto;
}


.sw_hidden_for_player .sw_hover p {
    margin: 0;
    padding: 0;
}

.sw_hidden_for_player .sw_hover p:nth-child(2) {
    padding-bottom: 5px;
}

.sw_hidden_for_player .sw_hover .masha_index {
    display: none;
}

.b-translators__list_swilly {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    overflow-y: hidden;
    overflow-x: auto;
    padding-bottom: 10px;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
	list-style: none;
	padding-left: unset;
    margin: unset;
}

.b-translators__list_swilly::-webkit-scrollbar {
	width: 8px;
    height: 8px;
}

.b-translators__list_swilly::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.b-translators__list_swilly::-webkit-scrollbar-thumb {
	background: #5d5d5d;
}

.b-translators__list_swilly::-webkit-scrollbar-thumb:hover {
	background: #555;
}

.b-translators__list_swilly li {
    width: fit-content;
    padding: 2px 11px;
    border-radius: 5px;
    background: #f2f2f2;
    color: #000;
    transition: .3s all;
    margin-right: 5px;
    overflow: unset;
}

.b-translators__list_swilly li.active, .b-translators__list_swilly li:hover {
    color: #fff;
}

.prenext .simple-episodes-tabs-swilly {
	margin: 5px!important;
}

.b-simple_episodes__list_swilly {
    display: flex;
    padding: unset;
    list-style: unset;
    margin: unset;
    overflow-y: hidden;
    overflow-x: auto;
}

.b-simple_episodes__list_swilly::-webkit-scrollbar, .prenext::-webkit-scrollbar {
	width: 8px;
    height: 8px;
}

.b-simple_episodes__list_swilly::-webkit-scrollbar-track, .prenext::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.b-simple_episodes__list_swilly::-webkit-scrollbar-thumb, .prenext::-webkit-scrollbar-thumb {
	background: #5d5d5d;
}

.b-simple_episodes__list_swilly::-webkit-scrollbar-thumb:hover, .prenext::-webkit-scrollbar-thumb:hover {
	background: #555;
}

.b-simple_episode__item_swilly {
    display: flex;
    width: 150px;
	min-width: 150px;
    height: 100px;
	min-height: 100px;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-right: 5px;
	margin-bottom: 5px;
}

.b-simple_episode__item_swilly.active {
    cursor: default;
}
.b-simple_episode__item_swilly.active span {
	background: #5d5d5d !important;
}

.b-simple_episode__item_swilly:last-child {
	margin-right: unset;
}

.b-simple_episode__item_swilly img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.b-simple_episode__item_swilly span {
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2d2d2d;
    padding: 1px 5px;
}

.b-simple_episode__item_swilly:not(:has(img)) span {
    height: 100%;
    display: flex;
	padding: unset;
    align-items: center;
    justify-content: center;
}

.b-simple_episode__item_swilly progress {
    position: absolute;
    bottom: 23px;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    height: 6px;
    appearance: none;
}

.b-simple_episode__item_swilly .sw_hover {
    position: absolute;
    background: #fff;
	color: #000;
    top: 25%;
	transform: translateY(-25%);
    display: none;
    flex-direction: column;
    align-items: center;
    width: 87%;
    padding: 5px 5px;
    font-size: 12px;
    border-radius: 5px;
    transition: .3s all;
    pointer-events: none;
    opacity: 0;
}

.b-simple_episode__item_swilly:hover .sw_hover {
	opacity: 1;
	pointer-events: unset;
	display: flex;
}

.b-simple_episode__item_swilly .sw_hover p {
    margin: 0;
    padding: 0;
}

.b-simple_episode__item_swilly .sw_hover .masha_index {
    display: none;
}

.ibox_bottom {
    display: flex;
    flex-direction: column;
}

.ibox_top {
    display: flex;
    flex-direction: column-reverse;
}

.ibox_right {
    display: flex;
    flex-direction: row;
}

.ibox_left {
    display: flex;
    flex-direction: row-reverse;
}

.ibox_right .b-simple_episode__item_swilly, .ibox_left .b-simple_episode__item_swilly {
    margin-right: unset;
}

.ibox_right .prenext {
	overflow-y: auto;
    overflow-x: hidden;
	flex: 0 0 auto;
	height: 0;
}

.ibox_left .prenext {
	overflow-y: auto;
    overflow-x: hidden;
	flex: 0 0 auto;
	height: 0;
	direction: rtl;
}

.ibox_right #player_kodik, .ibox_left #player_kodik {
	flex: 1 1 auto;
	width: unset!important;
}

.ibox_right .prenext .simple-episodes-tabs-swilly, .ibox_left .prenext .simple-episodes-tabs-swilly {
    margin: 0 5px !important;
}

.ibox_right .b-simple_episodes__list_swilly, .ibox_left .b-simple_episodes__list_swilly {
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
}

@media screen and (max-width: 768px) {
	
	.b-simple_episode__item_swilly {
		width: 110px;
		min-width: 110px;
		height: 85px;
		min-height: 85px;
	}
	
	
	.sw_hidden_for_player .hovernius {
		width: 50%;
	}
	
}

/* Room create button
----------------------------------------------- */
.switch {
    position: unset;
    display: unset;
    cursor: unset;
    width: unset;
    height: unset;
    background: unset;
    -webkit-border-radius: unset;
    border-radius: unset;
    -webkit-transition: unset;
    -o-transition: unset;
    transition: unset;
}
.rooms-invite {
    display: flex;
    align-items: center;
    border: 1px solid #efefef;
    padding: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.rooms-invite:hover {
    background-color: #f4f4f4;
}
.room-invite__image {
    width: 55px;
    height: 60px;
    margin-right: 10px;
    flex-shrink: 0;
}
.room-invite__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.room-invite__title {
    font-size: 1.15em;
    font-weight: 500;
}
.room-invite__label {
    transform: rotate(45deg);
    position: absolute;
    top: 17px;
    right: -55px;
    background: #4683d9;
    color: white;
    width: 155px;
    text-align: center;
    font-size: 11px;
    opacity: 0.9;
}
@media only screen and (max-width: 500px) {
    .room-invite__desc span {
        display: none;
    }
}
/* Room page
----------------------------------------------- */
@media only screen and (min-width: 993px) {
.row .col.l9 {
    width: 75%!important;
    margin-left: auto;
    left: auto;
    right: auto;
}
}
.row .col.s12 {
    width: 100%;
    margin-left: auto;
    left: auto;
    right: auto;
}
.row .col {
    float: left;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 0.75rem;
    min-height: 1px;
}
@media only screen and (min-width: 993px) {
.row .col.sidebar {
    padding-left: 25px;
}
}
@media only screen and (min-width: 993px) {
.row .col.l3 {
    width: 25%!important;
    margin-left: auto;
    left: auto;
    right: auto;
}
}
.row .col.s12 {
    width: 100%;
    margin-left: auto;
    left: auto;
    right: auto;
}
.row:after {
    content: "";
    display: table;
    clear: both;
}
.anime-player__controls {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: #f4f4f4;
    padding: 10px;
}
.anime-player__controls button, .anime-player__current-series-number, .anime-player__fullscreen-btn-close, .anime-player__info2-btn {
    border: solid 1px rgba(0,0,0,0.1);
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    height: 33px;
    display: flex;
    align-items: center;
    font-size: 13px;
}
.anime-player__controls button:disabled,
.anime-player__controls button[disabled] {
    opacity: 0.5;
    cursor: default;
}
.anime-player__current-series-number {
    margin: 0 2px;
}
.anime-player__current-series-number span {
    margin-right: 3px;
}
.anime-player__controls button i {
    color: #333;
    opacity: 0.8;
    font-size: 13px;
}
.anime-player__report-series i,
.anime-player__fullscreen-btn i,
.anime-player__fullscreen-btn-close i,
.anime-player__info-btn i,
.anime-player__info2-btn i {
    margin-right: 7px;
}
.anime-player__next-series {
    margin-right: auto;
}
.iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-top: 20px;
    overflow: hidden;
}
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.rooms {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.rooms__item {
    position: relative;
    padding: 0 10px;
    width: 25%;
    margin-bottom: 20px;
    cursor: pointer;
    border-radius: 10px;
}
@media only screen and (max-width: 800px) {
    .rooms__item {
        width: 33%;
    }
}
@media only screen and (max-width: 650px) {
    .rooms__item {
        width: 50%;
    }
}
@media only screen and (max-width: 400px) {
    .rooms__item {
        width: 100%;
    }
}
.rooms__item:hover .rooms__poster {
    opacity: 0.7;
}
.rooms__poster {
    height: 190px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}
.room__search {
    display: none;
}
.rooms__name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-right: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}
.rooms__info {
    position: relative;
    padding: 10px 0;
}
.rooms__item--private .rooms__info::after {
    font-family: "Font Awesome\ 5 Free";
    position: absolute;
    right: 4px;
    top: 16px;
    content: "\f023";
    display: inline-block;
    padding-right: 5px;
    vertical-align: middle;
    font-weight: 900;
    color: #1f1f1f;
    opacity: 0.4;
    font-size: 12px;
}
.rooms__episode {
    position: absolute;
    right: -2px;
    top: 10px;
    display: inline-flex;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: 20px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 16px;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    margin-top: 0;
    text-transform: lowercase;
    letter-spacing: 0;
    color: white;
    z-index: 2;
    transition: all 0.4s;
    background-color: #00a5ff;
    box-shadow: 0 4px 12px rgb(0 165 255 / 40%);
}
.rooms__episode,
.rooms__time {
    font-size: 13px;
    margin-bottom: 5px;
}
.rooms__time {
    margin-bottom: 0;
    color: #1f1f1f;
    opacity: 0.4;
}
.rooms__users {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.rooms__users-list {
    display: flex;
}
.rooms__user {
    width: 22px;
    height: 22px;
    margin-right: 5px;
}
.rooms__user img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.rooms__header {
    display: flex;
    color: white;
    border-radius: 6px;
    align-items: center;
    position: relative;
    height: 165px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 -1.75rem 20px;
}
.rooms__header p {
    z-index: 3;
    font-size: 14px;
    text-align: center;
    line-height: 23px;
    width: 75%;
    margin-bottom: 10px;
}
@media only screen and (max-width: 768px) {
    .rooms__header {
        margin-left: -1rem;
        margin-right: -1rem;
    }
}
@media only screen and (max-width: 1170px) {
    .rooms__header {
        height: 180px;
    }
}
@media only screen and (max-width: 900px) {
    .rooms__header {
        height: 200px;
    }
}
@media only screen and (max-width: 700px) {
    .rooms__header {
        height: 230px;
    }
}
@media only screen and (max-width: 600px) {
    .rooms__header {
        height: 250px;
    }
    .rooms__header p {
        width: 90%;
    }
}
@media only screen and (max-width: 500px) {
    .rooms__header {
        height: 300px;
    }
}
@media only screen and (max-width: 400px) {
    .rooms__header {
        height: 320px;
    }
}
.rooms__header::after {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.55);
}
.rooms__create-btn {
    z-index: 3;
    height: 35px;
    font-size: 13px;
    line-height: 14px;
}
.room-chat {
    margin-bottom: 20px;
}
.room-chat__send-form {
    position: relative;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
}
.room-chat__send-form textarea {
    resize: none;
    border: none;
    padding: 10px 15px;
    outline: none;
    min-height: 50px;
    color: #222;
    border-radius: 4px;
    line-height: 20px;
    overflow: hidden;
    width: 100%!important;
    height: 3rem!important;
    background-color: transparent!important;
}
.room-chat__send-form textarea::placeholder {
    color: rgba(31,31,31,.5);
    line-height: 26px;
    font-size: 14px;
}
.room-chat__messages {
    position: relative;
    height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
}
.room-chat__message {
    color: #222;
    margin-bottom: 5px;
    overflow-wrap: break-word;
    font-size: 13px;
    display: flex;
    align-items: center;
    margin-top: 7px;
}
.room-chat__avatar {
    display: flex;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-right: 6px;
}
.room-chat__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 25px;
}
.room-chat__user {
    display: flex;
}
.room-chat__time {
    font-size: 11px;
    color: #1f1f1f;
    opacity: 0.4;
    margin-left: auto;
    padding: 7px 0;
}
.room-chat__name,
.room-user__name {
    color: #1f1f1f;
    font-weight: 700;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.room-chat__message.system {
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid hsla(0,0%,87.1%,.4);
}
.room-chat__message.system .room-chat__text {
    color: #1f1f1f;
    opacity: 0.4;
    background: none;
    padding: 0;
    margin: 0 7px 0 5px;
}
.room-chat__text {
    background: #f4f4f4;
    padding: 7px 15px;
    border-radius: 25px;
    margin-right: 10px;
    word-break: break-all;
}
.room-user {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: 15px;
}
.room-user__avatar {
    width: 45px;
    height: 45px;
    margin-right: 10px;
}
.room-user__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.room-chat__send-message-btn i {
    font-size: 11px;
}
.room-user__role {
    margin-left: auto;
}
.room__player .no-series {
    flex-direction: row;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    z-index: 0;
}
.room__player .no-series span {
    color: #f60;
    display: block;
    margin: 0 4px;
}
.room-anime {
    /*display: flex;*/
    align-items: center;
    display: none;
    transition: display 0.3s;
}
.room-anime__img {
    width: 175px;
    margin-right: 10px;
    height: 100px;
    display: flex;
    flex-shrink: 0;
}
.room-anime__img img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}
.room-anime__name {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
}
.room-anime__info {
    font-size: 13px;
}
.room-anime__change,
.room-anime__episode,
.room-anime__status {
    height: 30px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13px;
}
.room-anime__episode,
.room-anime__status {
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    white-space: nowrap;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    outline: 0;
    line-height: 40px;
    background: #181818;
    font-weight: 500;
    color: white;
    margin-right: 10px;
}
.room-anime__controls {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.room-anime__status i {
    margin-right: 4px;
    font-size: 11px;
}
.room-anime__episode span,
.room-anime__info a {
    margin-left: 4px;
}
.room--visible {
    display: flex;
}
@media only screen and (max-width: 700px) {
    .room--visible {
        flex-direction: column;
    }
    .room-anime__controls {
        margin-left: 0;
    }
    .room-anime__info,
    .room-anime__name {
        margin-bottom: 5px;
        display: block;
    }
    .room-anime__img {
        margin-bottom: 5px;
    }

}

@media(min-width: 720px) {
    .scroll::-webkit-scrollbar {
        width:10px;
        height: 10px;
        background: hsla(0deg,0%,55%,0.2)
    }

    .scroll::-webkit-scrollbar-thumb {
        background: hsla(0deg,0%,55%,0.7);
        border-radius: 10px
    }

    .scroll::-webkit-scrollbar-track {
        border-radius: 10px
    }
}
.room .top-search__form {
    border: none;
}
.room__search .top-search__form input {
    border-radius: 8px;
    border: none;
}
.anime-player__fullscreen-btn, .anime-player__info-btn {
    margin-right: 5px;
}
.room__search.room--visible {
    display: flex;
    flex-direction: column;
}
.room-section .row {
    position: relative;
}
.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}
.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #4683d9;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #4683d9 transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: none;
}
.loader-wrapper .lds-ring {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.room--loading .room,
.room--loading .breadcrumbs,
.room--loading .sidebar {
    display: none;
}
.room-section.room--loading .row {
    min-height: 300px;
}
.room--loading .loader-wrapper  {
    display: block;
}
.room--full {
    overflow: hidden;
}
.room--full .room-chat {
    position: fixed;
    top: 0;
    right: 0;
    width: 20%;
    height: 100%;
    overflow: hidden;
    z-index: 100;
    background-color: #1f1f1f;
    color: #ddd;
}
.room--full .room__player {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 80%;
    z-index: 100;
}
.room--full .iframe-container {
     position: unset;
     padding-bottom: 0;
     height: 0;
     margin-top: 0;
     overflow: unset;
}
.anime-player__fullscreen-btn-close, .anime-player__info2-btn {
    display: none;
}
.room--full .anime-player__fullscreen-btn-close, .room--full .anime-player__info2-btn {
    display: flex;
    margin-bottom: 5px;
    margin-top: 5px;
}
.room--full .room-chat__messages, .room--full .room-chat__send-form, .room--full .anime-player__fullscreen-btn-close, .room--full .anime-player__info2-btn {
    background-color: #1a1a1a;
    color: #ddd;
}
.room--full .room-chat {
    padding: 0 10px;
}
.room--full .room-chat__text,
.room--full .room-chat__time {
    color: #868e96;
    opacity: 1;
}
.room--full .room-chat__message.system .room-chat__text {
    border-color: #2d3236 !important;
    background: transparent;
    color: #868e96;
    opacity: 1;
}
.room--full .room-chat__message.system {
    border-color: #2d3236 !important;
}
.room--full .room-chat__send-form textarea::placeholder {
    color: #868e96;
}
.room--full .room-chat__send-form textarea {
    color: #ddd;
}
.room--full .room-chat__send-message-btn {
    background: #f60;
}
.room--full .room-chat__text {
    background-color: #1f1f1f;
    color: #ddd;
}
.room--full .room-chat .small-title {
    color: #ddd;
}
@media only screen and (max-width: 900px) {
    .room--full .room__player {
        width: 100%;
        height: 60%;
        top: 0;
    }
    .room--full .room-chat {
        width: 100%;
        height: 40%;
        bottom: 0;
        top: unset;
        margin-bottom: 0;
    }
    .room--full .room-chat__messages {
        height: 150px;
    }
    .room--full .room-chat .small-title {
        display: none;
    }
}
.room-settings {
    margin-bottom: 20px;
}
.room-settings__item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: white;
    margin-bottom: 5px;
    border-radius: 8px;
    font-size: 13px;
}
.room-settings__item:first-of-type {
    display: flex;
    flex-direction: column;
}
.room-settings__item-title {
    font-size: 13px;
    color: #1f1f1f;
    opacity: 0.4;
}
.room-settings__item-title:first-of-type {
    padding-bottom: 5px;
    opacity: 1;
    color: #222;
}
.room-settings__item:first-of-type button {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background-color: #f4f4f4;
    color: #447;
    font-size: 0.8em;
    transition: all 0.5s;
}
.room-settings__item:first-of-type i {
    color: #868e96;
}
.room-settings__item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5px;
    border-top: 1px solid hsla(0,0%,87.1%,.4);
}
.switch {
    width: 35px;
}
.switch-for {
    cursor: pointer;
    font-size: 12px;
    position: relative;
}
label.switch-for {
    color: #1f1f1f;
}
.switch-for::after {
    content: "";
    width: 30px;
    height: 8px;
    border-radius: 15px;
    position: absolute;
    top: 6px;
    right: -40px;
    background: #f4f4f4;
    transition-duration: 300ms;
}
.switch-for::before {
    content: "";
    width: 15px;
    height: 15px;
    background: #4683d9;
    border-radius: 50%;
    position: absolute;
    right: -24px;
    top: 3px;
    z-index: 1;
    transition-duration: 300ms;
}
.switch-input {
    display: none;
}
.switch-input:checked + .switch-for::before {
    transform: translateX(18px);
}
.switch-input:checked + .switch-for::after {
    background-color: #4683d9;
}
.room__dub-select {
    width: 300px;
}
.rooms .no-info {
    color: #868e96;
    font-size: 13px;
    margin: 0 10px;
}
.rooms-invite {
    display: flex;
    align-items: center;
    border: 1px solid #efefef;
    padding: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.rooms-invite:hover {
    background-color: #f4f4f4;
}
.room-invite__image {
    width: 55px;
    height: 60px;
    margin-right: 10px;
    flex-shrink: 0;
}
.room-invite__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.room-invite__title {
    font-size: 1.15em;
    font-weight: 500;
}
.room-invite__label {
    transform: rotate(45deg);
    position: absolute;
    top: 17px;
    right: -55px;
    background: #4683d9;
    color: white;
    width: 155px;
    text-align: center;
    font-size: 11px;
    opacity: 0.9;
}
@media only screen and (max-width: 500px) {
    .room-invite__desc span {
        display: none;
    }
}
.anime-player__fullscreen-btn, .anime-player__info-btn,
.anime-player__report-series,
.anime-player__show-popular-dubs-btn {
    color: #222;
}
.anime-player__fullscreen-btn:hover, .anime-player__info-btn:hover {
    opacity: 0.7;
}
.room-chat__send-message-btn {
    height: 27px!important;
    padding: 0 8px!important;
    margin-right: 15px!important;
    border-radius: 15px!important;
    width: 45px!important;
}
body[data-theme=dark] .rooms__header p,
body[data-theme=dark] .rooms__name,
body[data-theme=dark] .room-user__name {
    color: #ddd;
}
body[data-theme=dark] .room-chat__text {
    background-color: #141414;
}
body[data-theme=dark] .room-chat__text {
    color: #ddd;
}
body[data-theme=dark] .room-settings__item-title {
    color: #ddd;
}
body[data-theme=dark] .room-user,
body[data-theme=dark] .room-settings__item {
    color: #ddd;
    background-color: #1a1a1a;
}
body[data-theme=dark] .room-settings__item-link {
    border-color: #2d3236;
}
body[data-theme=dark] .room__select-episodes p,
body[data-theme=dark] .rooms__users span {
    color: #ddd;
}
body[data-theme=dark] .room-settings__item-link a {
    color: #f60;
}
body[data-theme=dark] .rooms-invite {
    background-color: #1f1f1f;
    border-color: #2d3236;
    color: #ddd;
}
body[data-theme=dark] .room-select-episodes {
    color: #ddd;
    background-color: hsla(240,5%,48%,.1);
    border: none;
}
body[data-theme=dark] .select-series-number-style__item.select-series-active,
body[data-theme=dark] .room-select-episodes--active {
    background-color: hsla(240,5%,48%,.02);
    color: #f60;
}
body[data-theme=dark] .room-chat__message.system .room-chat__text,
body[data-theme=dark] .room-chat__time,
body[data-theme=dark] .room-anime__info,
body[data-theme=dark] .rooms__time,
body[data-theme=dark] .rooms__item--private .rooms__info::after {
    color: #868e96;
    opacity: 1;
}
body[data-theme=dark] .room-settings__item-link button,
body[data-theme=dark] .switch-for::after {
    background-color: #1f1f1f;
}
body[data-theme=dark] .message__send-form,
body[data-theme=dark] .message__user,
body[data-theme=dark] .room-chat__message.system {
    border-color: #2d3236;
}
body[data-theme=dark] .room-chat__messages,
body[data-theme=dark] .room-chat__send-form {
    background-color: #1a1a1a;
    color: #ddd;
}
body[data-theme=dark] .room-chat__send-form textarea::placeholder {
    color: #868e96;
}
body[data-theme=dark] .anime-player__controls, body[data-theme=dark] .rooms-invite:hover {
    background-color: #1a1a1a;
}
body[data-theme=dark] .main-title,
body[data-theme=dark] .anime__title,
body[data-theme=dark] .small-title,
body[data-theme=dark] .anime__marks-textarea textarea,
body[data-theme=dark] .transactions__balance .blue-btn {
    color: #fff;
}
body[data-theme=dark] .anime-player__controls button,
body[data-theme=dark] .anime-player__current-series-number,
body[data-theme=dark] .select-series-number-style__item,
body[data-theme=dark] .room-select-episodes {
    color: #ddd;
    background-color: hsla(240,5%,48%,.1);
    border: none;
}

/* AnimeSSS — обновлённое оформление области просмотра. 2026-09-11. */

/* 1. Dark viewing surface — same in both site themes. */
.pmovie__player {
  --as-watch-bg: #13151b;
  --as-watch-panel: #1a1c24;
  --as-watch-tile: #242630;
  --as-watch-hover: #2e303c;
  --as-watch-line: #353744;
  --as-watch-text: #f1f1f6;
  --as-watch-muted: #b0b2c3;
  --as-watch-accent: #ed779c;
  border-radius: 0;
  box-shadow: none;
}

.pmovie__player .pmovie__player-controls {
  position: relative;
  padding: 16px 20px;
  color: var(--as-watch-text);
  background: linear-gradient(110deg, #30202c 0%, #1a1c24 62%);
  border: 1px solid #38303b;
  border-bottom: 0;
  border-radius: 0;
}

.pmovie__player .pmovie__player-controls::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  border-radius: 0;
  background: var(--as-watch-accent);
  pointer-events: none;
}

.pmovie__player .tabs-block__select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.pmovie__player .tabs-block__select > span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 260px;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--as-watch-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  box-shadow: none;
  transform: none;
  cursor: pointer;
  transition: color .18s, background-color .18s, border-color .18s;
}

.pmovie__player .tabs-block__select > span.is-active {
  background: #352633;
  color: var(--as-watch-text);
  border-color: #674051;
}

.pmovie__player .tabs-block__select > span:only-child {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.pmovie__player .tabs-block__select > span > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 1px solid #74465b;
  border-radius: 10px;
  background: #422b39;
  color: #ffc0d4;
  font-size: 12px;
}

.pmovie__player #kodik_player_ajax {
  background: var(--as-watch-bg);
  color: var(--as-watch-text);
}

/* Saved viewing position: title, episode/voice, and the existing delete action. */
.pmovie__player #kodik_player_ajax .b-post__lastepisodeout {
  box-sizing: border-box;
  position: relative;
  margin: 0;
  padding: 14px 72px 14px 58px;
  border: 0;
  border-top: 1px solid #413341;
  border-bottom: 1px solid #35303e;
  border-radius: 0;
  background: #222429;
  color: var(--as-watch-text);
  overflow: hidden;
}

.pmovie__player #kodik_player_ajax .b-post__lastepisodeout h2 {
  display: block;
  margin: 0;
  padding: 0;
  color: #f1e7ef;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pmovie__player #kodik_player_ajax .b-post__lastepisodeout h2 > .fa-eye {
  position: absolute;
  left: 20px;
  top: 50%;
  margin: 0;
  color: #ed9ebc;
  line-height: 1;
  transform: translateY(-50%);
}

.pmovie__player #kodik_player_ajax .b-post__lastepisodeout #los {
  display: block;
  margin-top: 4px;
  color: #bfb4c4;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pmovie__player #kodik_player_ajax .b-post__lastepisodeout #losc {
  box-sizing: border-box;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 16px;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #52404f;
  border-radius: 10px;
  background: #302632;
  color: #e4bccd;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .18s, border-color .18s, color .18s;
}

.pmovie__player #kodik_player_ajax .b-post__lastepisodeout #losc:focus-visible {
  outline: 2px solid #f5a7c8;
  outline-offset: 3px;
}

.pmovie__player #kodik_player_ajax .b-donors__block,
.pmovie__player #kodik_player_ajax .b-translators__block {
  box-sizing: border-box;
  padding: 18px 20px;
  border: 0;
  border-radius: 0;
  background: var(--as-watch-panel);
}

.pmovie__player #kodik_player_ajax .b-donors__block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  border-bottom: 1px solid #2c2d39;
}

.pmovie__player #kodik_player_ajax .b-donors__title,
.pmovie__player #kodik_player_ajax .b-translators__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 0;
  color: var(--as-watch-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.pmovie__player #kodik_player_ajax .b-donors__title { margin: 0; }

.pmovie__player #kodik_player_ajax .b-rgstats__help {
  position: static;
  margin-left: auto;
  padding-bottom: 1px;
  color: #dab6c7;
  border-bottom: 1px dotted #916b80;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  cursor: help;
}

.pmovie__player #kodik_player_ajax .b-donors__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pmovie__player #kodik_player_ajax .b-translators__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 8px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  overflow: visible;
  list-style: none;
}

.pmovie__player #kodik_player_ajax .b-donor__item,
.pmovie__player #kodik_player_ajax .b-translators__list .b-translator__item {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  float: none;
  flex: initial;
  gap: 7px;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 44px;
  height: auto;
  margin: 0 !important; /* Original styles.css sets margin with !important. */
  padding: 10px 14px 10px 32px;
  border: 1px solid var(--as-watch-line);
  border-radius: 10px;
  background: var(--as-watch-tile);
  color: #d5d6e0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  overflow: visible;
  text-align: left;
  box-shadow: none;
  transform: none;
  cursor: pointer;
  user-select: none;
  transition: background-color .18s, border-color .18s, color .18s;
}

.pmovie__player #kodik_player_ajax .b-donor__item { min-width: 168px; }

/* Voice labels stay on one line, including direct text nodes inside each li. */
.pmovie__player #kodik_player_ajax .b-translators__list .b-translator__item {
  display: block;
  height: 44px;
  line-height: 22px;
  white-space: nowrap;
  overflow-wrap: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmovie__player #kodik_player_ajax .b-donor__item::before,
.pmovie__player #kodik_player_ajax .b-translators__list .b-translator__item::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid #858798;
  border-radius: 50%;
  background: transparent;
  transform: translateY(-50%);
  box-shadow: none;
  pointer-events: none;
}

.pmovie__player #kodik_player_ajax .b-donor__item.active,
.pmovie__player #kodik_player_ajax .b-translators__list .b-translator__item.active {
  /* Original rooms.css has an !important background on .active. */
  background: linear-gradient(110deg, #4b2c3d, #2e2836) !important;
  color: #fff3f7;
  border-color: #b56384;
  box-shadow: inset 0 0 0 1px #ffffff08;
  transform: none;
  cursor: default;
}

.pmovie__player #kodik_player_ajax .b-donor__item.active::before,
.pmovie__player #kodik_player_ajax .b-translators__list .b-translator__item.active::before {
  border-color: #f9b5cf;
  background: #f9b5cf;
  box-shadow: 0 0 0 4px #ed779c15;
}

.pmovie__player #kodik_player_ajax .b-donor__item::after,
.pmovie__player #kodik_player_ajax .b-translators__list .b-translator__item::after {
  content: none;
}

.pmovie__player #kodik_player_ajax .b-translator__item .ua-flag-icon {
  flex: 0 0 auto;
  width: 18px;
  height: auto;
  vertical-align: middle;
}

/* Only the outer video surface: iframe sizing and player logic remain original. */
.pmovie__player #kodik_player_ajax #player { background: #000; }

/* 2. Controls: define colors on the ID so they also follow a reparented panel. */
#anime-player__controls {
  --as-action-text: #ececf4;
  --as-action-muted: #b2b5c4;
  --as-action-bg: #252731;
  --as-action-border: #3b3d49;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 14px 20px;
  border: 1px solid #31323e;
  border-top: 0;
  border-radius: 0;
  background: #1a1c24;
  color: var(--as-action-text);
  box-shadow: none;
}

#anime-player__controls .anime-player__fullscreen-btn,
#anime-player__controls .pmovie__fav a,
#anime-player__controls .pmovie__rating-likes a,
#anime-player__controls .pmovie__trade-btn > div,
#anime-player__controls .pmovie__complaint a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--as-action-border);
  border-radius: 10px;
  background: var(--as-action-bg);
  color: var(--as-action-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: normal;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  transform: none;
  opacity: 1;
  transition: background-color .18s, border-color .18s, color .18s;
}

#anime-player__controls .anime-player__fullscreen-btn {
  background: #3a2938;
  border-color: #755069;
  color: #ffe0ed;
}

/* Restore the visible label using the supplied stylesheet.
   In active theater mode the existing runtime label remains available. */
body:not(.fscr-active) #anime-player__controls .anime-player__fullscreen-btn > span {
  display: none;
}

body:not(.fscr-active) #anime-player__controls .anime-player__fullscreen-btn::after {
  content: "Режим кинотеатра";
  font: inherit;
  line-height: inherit;
  white-space: normal;
}

#anime-player__controls .anime-player__fullscreen-btn i,
#anime-player__controls .pmovie__fav a .fal,
#anime-player__controls .pmovie__rating-likes a .fal,
#anime-player__controls .pmovie__complaint a .fal { margin: 0; }

#anime-player__controls .pmovie__fav,
#anime-player__controls .pmovie__complaint {
  flex: 0 0 auto;
  order: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

#anime-player__controls .pmovie__rating-likes {
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  width: auto;
}

#anime-player__controls .pmovie__rating-likes a {
  min-width: 68px;
  font-variant-numeric: tabular-nums;
}

#anime-player__controls .pmovie__rating-likes a:has([data-likes-id]) {
  color: #99ddc0;
  border-color: #395b50;
  background: #21352e;
}

#anime-player__controls .pmovie__rating-likes a:has([data-dislikes-id]) {
  color: #f0b2bc;
  border-color: #65414c;
  background: #39282f;
}

#anime-player__controls .pmovie__date {
  order: 0;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--as-action-muted);
}

#anime-player__controls .pmovie__complaint a {
  width: 44px;
  padding: 10px;
  color: var(--as-action-muted);
}

#anime-player__controls .pmovie__complaint a span { color: inherit; }

/* 3. Supporting area outside the dark video panel. */
.pmovie__player .pbtm {
  --as-social-bg: #f5f4f8;
  --as-social-text: #33313d;
  --as-social-muted: #625f70;
  --as-social-line: #dfdce6;
  row-gap: 16px;
}

:is(.dt-is-active, .dle_theme_dark, [data-theme="dark"]) .pmovie__player .pbtm {
  --as-social-bg: #212128;
  --as-social-text: #e8e6ef;
  --as-social-muted: #b5b0c1;
  --as-social-line: #393640;
}

.pmovie__player .pbtm__connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin: 0 var(--indent, 20px);
  padding: 18px;
  border: 1px solid var(--as-social-line);
  border-radius: 0;
  background: var(--as-social-bg);
  color: var(--as-social-text);
  box-shadow: none;
}

.pmovie__player .pbtm__connect .tlgm {
  display: flex;
  flex: 1 1 360px;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
}

.pmovie__player .tlgm > .fal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2c465a;
  color: #bde9ff;
  font-size: 19px;
}

.pmovie__player .tlgm__desc { flex: 1 1 180px; min-width: 0; }
.pmovie__player .tlgm__title { color: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; }
.pmovie__player .tlgm__subtitle { margin-top: 3px; color: var(--as-social-muted); font-size: 12px; line-height: 1.5; }

.pmovie__player .tlgm__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid #4b6d86;
  border-radius: 10px;
  background: #2c465a;
  color: #ecf8ff;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
}

.pmovie__player .pbtm__connect .socm { flex: 0 1 auto; min-width: 0; align-items: flex-start; }
.pmovie__player .socm__caption { margin: 0 0 8px; color: var(--as-social-muted); font-size: 12px; font-weight: 400; line-height: 1.5; text-align: left; }
.pmovie__player #btns-share { height: auto !important; max-width: 100%; }
.pmovie__player #btns-share ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pmovie__player #btns-share li { float: none; margin: 0; padding: 0; }
.pmovie__player #btns-share li > div {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 23px 23px !important;
  box-shadow: none;
  cursor: pointer;
  transition: filter .18s;
}

@media (hover: hover) {
  .pmovie__player #kodik_player_ajax .b-post__lastepisodeout #losc:hover {
    background: #48303d;
    border-color: #b16c8a;
    color: #ffdfec;
  }
  .pmovie__player .tabs-block__select > span:not(.is-active):hover { color: #fff; background: #33303c; }
  .pmovie__player #kodik_player_ajax .b-donor__item:not(.active):hover,
  .pmovie__player #kodik_player_ajax .b-translators__list .b-translator__item:not(.active):hover {
    background: var(--as-watch-hover);
    border-color: #797181;
    color: #fff;
  }
  #anime-player__controls .anime-player__fullscreen-btn:hover,
  #anime-player__controls .pmovie__fav a:hover,
  #anime-player__controls .pmovie__rating-likes a:hover,
  #anime-player__controls .pmovie__complaint a:hover {
    background-color: #38313f;
    border-color: #9b718b;
    opacity: 1;
    transform: none;
  }
  .pmovie__player #btns-share li > div:hover { filter: brightness(1.12); transform: none; }
  .pmovie__player .tlgm__btn:hover { background: #365872; color: #fff; }
}

#anime-player__controls :is(button, a):focus-visible,
.pmovie__player .tlgm__btn:focus-visible {
  outline: 2px solid #f5a7c8;
  outline-offset: 3px;
}

/* 4. Theater geometry retained from the existing implementation. */
body.fscr-active #anime-player__controls {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 25;
  padding: 10px 12px;
  border: 1px solid #44414e;
  border-radius: 0;
  background: #1a1c24;
  color: #ececf4;
  box-shadow: 0 10px 28px #0005;
}

@media screen and (max-width: 1220px) {
  body.fscr-active #anime-player__controls {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 10px 0 0 !important;
    padding: 10px !important;
    border-radius: 0 !important;
  }
}

@media screen and (max-width: 760px) {
  .pmovie__player #kodik_player_ajax .b-post__lastepisodeout { padding-left: 44px; padding-right: 64px; }
  .pmovie__player #kodik_player_ajax .b-post__lastepisodeout h2 > .fa-eye { left: 12px; }
  .pmovie__player #kodik_player_ajax .b-post__lastepisodeout #losc { right: 12px; }
  .pmovie__player .pmovie__player-controls { padding: 12px; }
  .pmovie__player .tabs-block__select > span { font-size: 13px; }
  .pmovie__player #kodik_player_ajax .b-donors__block,
  .pmovie__player #kodik_player_ajax .b-translators__block { padding: 14px 12px; }
  .pmovie__player #kodik_player_ajax .b-translators__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmovie__player #kodik_player_ajax .b-donors__title { flex: 1 0 100%; }
  .pmovie__player #kodik_player_ajax .b-donors__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .pmovie__player #kodik_player_ajax .b-donor__item { min-width: 0; }
  .pmovie__player #kodik_player_ajax .b-rgstats__help { margin-left: 0; }
  .pmovie__player #kodik_player_ajax .b-translators__title { justify-content: space-between; }
  #anime-player__controls { padding: 12px; }
  .pmovie__player .pbtm__connect { margin-left: 12px; margin-right: 12px; padding: 14px; }
  .pmovie__player .pbtm__connect .socm { flex-basis: 100%; }

  /* Existing mobile theater behavior: controls and card trade stay in one row. */
  body.fscr-active #anime-player__controls > :not(.anime-player__fullscreen-btn):not(.pmovie__trade-btn) { display: none !important; }
  body.fscr-active #anime-player__controls .anime-player__fullscreen-btn,
  body.fscr-active #anime-player__controls .pmovie__trade-btn {
    display: flex !important;
    flex: 1 1 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  body.fscr-active #anime-player__controls .anime-player__fullscreen-btn,
  body.fscr-active #anime-player__controls .pmovie__trade-btn > div {
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    justify-content: center !important;
    font-size: 12px;
  }
  body.fscr-active #anime-player__controls .pmovie__trade-btn > div { width: 100% !important; }
  body.fscr-active .pbtm__main { position: static !important; }
  body.fscr-active #fscr__chat { margin-top: 10px; }
}

@media screen and (max-width: 470px) {
  #anime-player__controls .anime-player__fullscreen-btn { flex: 1 1 100%; }
  #anime-player__controls .pmovie__fav { flex: 1 1 auto; }
  #anime-player__controls .pmovie__fav a { width: 100%; padding: 10px; }
  #anime-player__controls .pmovie__date:empty { display: none; }
  #anime-player__controls .pmovie__rating-likes a { min-width: 50px; padding: 10px 8px; }
  #anime-player__controls .pmovie__complaint a { width: 44px; }
  .pmovie__player .tlgm > .fal { display: none; }
  .pmovie__player .tlgm__btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pmovie__player #kodik_player_ajax .b-post__lastepisodeout #losc,
  .pmovie__player .tabs-block__select > span,
  .pmovie__player #kodik_player_ajax .b-donor__item,
  .pmovie__player #kodik_player_ajax .b-translator__item,
  #anime-player__controls :is(button, a),
  .pmovie__player #btns-share li > div { transition: none; }
}
