.bg_rutube_playlistContainer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr;
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  max-height: 500px;
  height: 500px;
  overflow-y: clip;
}
.bg_rutube_centerVideo { 
  grid-area: 1 / 1 / 2 / 2;
  max-height: 100%;
}
.bg_rutube_nav_movies {
  display: none;
}
.bg_rutube_videoPlayList {
   grid-area: 1 / 2 / 2 / 3;
   padding-right: 1px !important;
}

/* Firefox (uncomment to work in Firefox, although other properties will not work!)  */
/** {
  scrollbar-width: thin;
  scrollbar-color: #397524 #2D2E83;
}*/

/* Chrome, Edge and Safari */
.bg_rutube_videoPlayList::-webkit-scrollbar {
  height: 3px;
  width: 3px;
}
.bg_rutube_videoPlayList::-webkit-scrollbar-track {
  border-radius: 1px;
  background-color: #2D2E83;
  border: 1px solid #FFFFFF;
}

.bg_rutube_videoPlayList::-webkit-scrollbar-track:hover {
  background-color: #2D2E83;
}

.bg_rutube_videoPlayList::-webkit-scrollbar-track:active {
  background-color: #2D2E83;
}

.bg_rutube_videoPlayList::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: #397524;
}

.bg_rutube_videoPlayList::-webkit-scrollbar-thumb:hover {
  background-color: #62A34B;
}

.bg_rutube_videoPlayList::-webkit-scrollbar-thumb:active {
  background-color: #62A34B;
}


@media (max-width: 960px) {
  .bg_rutube_playlistContainer {
    display: grid;
    grid-template-columns: 2fr;
    grid-template-rows: repeat(2, auto);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    max-height: unset;
    height: unset;
    overflow-y: unset;
  }
  .bg_rutube_centerVideo { 
    grid-area: 1 / 1 / 2 / 2;
    max-height: unset;
  }
  .bg_rutube_nav_movies {
    display: none;
  }
  .bg_rutube_videoPlayList {
    grid-area: 2 / 1 / 3 / 2;
  }
}

/* ============================
VIDEO
============================ */
div.bg_rutube_centerVideo {    	   
	display: block;
	position:relative;
	width: 100%;
	margin: 0;
	padding: 0; 
	padding-top: 56.25%; 
}

div.bg_rutube_videoContainer,
div.bg_rutube_videoContainer iframe {    	   
	position:absolute;
	margin: 0; 
	padding: 0;
	top:0;
	left:0;
	width: 100%;
	height: 100%;
	background-size: contain;
    background-repeat: no-repeat;
    background-position-y: center;
	content: ' ';
	cursor: pointer;
}

div.bg_rutube_buttonPlay {
	position:absolute;
	top: calc(50% - 1.5em);
	left: calc(50% - 1.5em);
	width: 3em;
	height: 3em;
	display: block;
	cursor: pointer;
	background-image: url(play.svg);
	cursor: pointer;
}

/* ============================
VIDEO PLAYLIST TABLE
============================ */
div.bg_rutube_videoPlayList {
	padding: 0;
	overflow-x: hidden;
  overflow-y: scroll;
}

table.bg_rutube_videoPlayListInfo,
table.bg_rutube_videoPlayListTable {
	width: 100%;
  border: none;
  border-spacing: 0;
}
table.bg_rutube_videoPlayListInfo tr, 
table.bg_rutube_videoPlayListTable tr {
}
table.bg_rutube_videoPlayListTable tr {
	cursor: pointer;
}
table.bg_rutube_videoPlayListTable tr {
	/* фон четных строк */
	background-color: #2d2e83; /* #f8f4eb; */
  transition-duration: .3s;
}
table.bg_rutube_videoPlayListTable tr:hover {
	/* фон выделенной строки */
	background-color: #1d995a; /* #FAEBCD; */ 
}
table.bg_rutube_videoPlayListTable td {
	padding: 5px 10px;
  color: #ffffff;
  font-size: 14px;
  min-height: 80px;
  height: 80px;
  border-bottom: 1px solid #f6f9f9;
}
table.bg_rutube_videoPlayListTable td > span.bg_rutube_trackLength {
  display: none;
}
table.bg_rutube_videoPlayListInfo td:first-child,
table.bg_rutube_videoPlayListTable td:first-child {
	background-size: cover;
    background-repeat: no-repeat;
    background-position-y: center;
    width: 100px;
    padding: 0px;
}

td.bg_rutube_navLeft {
	text-align: left;
}
td.bg_rutube_navRight {
	text-align: right;
}

@media screen and (max-width: 960px) {
	table.bg_rutube_videoPlayListInfo td:first-child
	table.bg_rutube_videoPlayListTable td:first-child {
		width: 6rem;
	}
	table.bg_rutube_videoPlayListInfo td,
	table.bg_rutube_videoPlayListTable td {
		padding-left: 5px;
		padding-right: 2px;
		height: 4.5rem;
		min-width: 3em;
	}
}
/* ============================
MOVIE NAVIGATION
============================ */
table.bg_rutube_nav_movies {
	width: 100%;
}

.bg_rutube_navButton {
	width: 12rem;
	cursor: pointer;
	padding: 6px;
	-webkit-user-select: none;  /* Chrome all / Safari all */
	-moz-user-select: none;     /* Firefox all */
	-ms-user-select: none;      /* IE 10+ */
	user-select: none;          /* Likely future */      }

.bg_rutube_navButton:hover {
	color: darkred;
}
.bg_rutube_navButton:active {
	color: red;
}

/* ============================
PAGINATION BUTTONS
============================ */
.bg_rutube_paginate {
  text-align: center; }
  .bg_rutube_paginate ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center; }
  .bg_rutube_paginate li {
    display: inline; }
  .bg_rutube_paginate a {
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px;
    margin: 1px 2px;
    padding: 5px 10px;
    display: inline-block;
    border-top: 1px solid #fff;
    text-decoration: none;
    color: #717171;
    font-size: smaller;
    font-family: "Helvetica Neueu", Helvetica, Arial, sans-serif;
    text-shadow: white 0 1px 0;
    background-color: #f5f5f5;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#eaeaea));
    background-image: -webkit-linear-gradient(top, #f9f9f9, #eaeaea);
    background-image: -moz-linear-gradient(top, #f9f9f9, #eaeaea);
    background-image: -ms-linear-gradient(top, #f9f9f9, #eaeaea);
    background-image: -o-linear-gradient(top, #f9f9f9, #eaeaea);
    background-image: linear-gradient(top, #f9f9f9, #eaeaea);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f9f9f9', EndColorStr='#eaeaea'); }
    .bg_rutube_paginate a:first-child, .bg_rutube_paginate a.first {
      margin-left: 0; }
    .bg_rutube_paginate a:last-child, .bg_rutube_paginate a.last {
      margin-right: 0; }
    .bg_rutube_paginate a:hover, .bg_rutube_paginate a:focus {
      border-color: #fff;
      background-color: #fdfdfd;
      background-image: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#fafafa));
      background-image: -webkit-linear-gradient(top, #fefefe, #fafafa);
      background-image: -moz-linear-gradient(top, #fefefe, #fafafa);
      background-image: -ms-linear-gradient(top, #fefefe, #fafafa);
      background-image: -o-linear-gradient(top, #fefefe, #fafafa);
      background-image: linear-gradient(top, #fefefe, #fafafa);
      filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#fefefe', EndColorStr='#fafafa'); }
    .bg_rutube_paginate a.more {
      box-shadow: 0 0 0 0 transparent;
      border: 0 none;
      background: transparent;
      margin-left: 0;
      margin-right: 0; }
    .bg_rutube_paginate a.current {
      box-shadow: rgba(0, 0, 0, 0.75) 0 0 0 0 inset;
      border-color: #505050;
      color: #f2f2f2;
      text-shadow: black 0 1px 0;
      background-color: #676767;
      background-image: -webkit-gradient(linear, left top, left bottom, from(#5f5f5f), to(#5c5c5c));
      background-image: -webkit-linear-gradient(top, #5f5f5f, #5c5c5c);
      background-image: -moz-linear-gradient(top, #5f5f5f, #5c5c5c);
      background-image: -ms-linear-gradient(top, #5f5f5f, #5c5c5c);
      background-image: -o-linear-gradient(top, #5f5f5f, #5c5c5c);
      background-image: linear-gradient(top, #5f5f5f, #5c5c5c);
      filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#5f5f5f', EndColorStr='#5c5c5c'); }
