/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 12.06.2017, 15:57:22
    Author     : 2GooD4U
*/

/* Theme & Preferences */

body {
    font-size: 16px;
    padding-top: 50px;
    background: #0e1b6c;
    color: #ddd;
}

html, body {
    height: 100%
}

input {
    background: #444;
}

.wrap {
    position: relative;
    min-height: 100%;
    margin: 0 auto -70px;
    padding-bottom: 70px;
    height: auto;
}

footer {
    min-height: 70px;
    padding: 10px 0;
    background-color: #0e1b6c;
}

footer .footer-small {
    font-size: 70%;
    opacity: .7;
}

a {
    color: #6fb1ed;
}

.label {
    padding: .2em .6em .2em;
}

.glyphicon {
    top: 0.15em;
}

a:hover, a:focus {
    color: #95ccfe;
    text-decoration: underline;
}

.navbar-inverse {
    background: #0e1b6c;
}

.navbar-inverse .navbar-nav > li > a {
    color: #ccc;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    border-top-color: #383838;
}

.table-striped > tbody > tr:nth-of-type(2n+1) {
    background-color: #383838;
}

.glyphicon-star-half::before {
    content: "\e263";
}

.movie-poster-empty {
    position: relative;
    background-color: #383838;
    background-image: url('/img/movie-poster-empty.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

/* Navigation */

.navbar {
    border-radius: 0;
}

.navbar-menu-left {
    position: relative;
    float: left;
    padding: 16px 14px !important;
    background-color: transparent;
    background-image: none;
}

.navbar-menu-left .icon-bar {
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 1px;
    background-color: #ccc;
    margin-top: 1px;
}

.navbar-menu-left .icon-bar + .icon-bar {
    margin-top: 4px;
}

.navbar-menu-left:hover .icon-bar, .navbar-menu-left:focus .icon-bar {
    background-color: #fff;
}

.navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus {
    color: #ddd;
    background-color: transparent;
}

.navbar .vp-title {
    margin-right: 2em;
    margin-left: 2em;
    float: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.navbar .navbar-text {
    font-size: 130%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.navbar .glyphicon {
    font-size: 130%;
    margin: -0.25em 0;
    top: 0.2em;
}

.navbar-nav {
    float: left;
    margin: 0;
}

.navbar-right {
    float: right !important;
    margin-right: -15px;
}

.navbar-left {
    float: left !important;
}

.navbar-nav > li > a {
    padding-top: 15px;
    padding-bottom: 15px;
}

.nav > li {
    float: left;
}

/* Language icons */

.language-icon {
    position: relative;
    display: inline-block;
    margin-right: 0.3em;
    width: 1em;
    height: 1em;
    top: 0.125em;
    font-style: normal;
    font-weight: normal;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    line-height: 1;
}

.language-icon-ru {
    background-image: url('/img/language-icon-ru.png');
}

.language-icon-en {
    background-image: url('/img/language-icon-en.png');
}

.language-icon-kz {
    background-image: url('/img/language-icon-kz.png');
}

/* Categories selector */

.categories-selector-wrap {
    background-color: #0e1b6c;
    margin-bottom: 10px;
}

.categories-selector {
    list-style: none;
    padding-left: 0;
    border-bottom: solid 5px transparent;
    margin-bottom: 0;
    overflow: visible;
}

.categories-selector::after, .categories-selector::before {
    clear: both;
    content: " ";
    display: table;
}

.categories-selector > li {
    float: left;
    overflow: visible;
    margin-bottom: -5px;
}

.categories-selector > li > a {
    color: #ccc;
    display: block;
    padding: 7.5px 15px;
    border-bottom: 5px solid transparent;
    transition: ease .5s border;
}

.categories-selector > li > a:hover,
.categories-selector > li > a:focus {
    color: #eee;
    text-decoration: none;
}

.categories-selector > li:hover > a {
    border-bottom-color: #337ab7;
    transition: ease .3s border;
}

.categories-selector > li.active > a {
    border-bottom-color: #72bafb;
    color: #fff;
    background: #000;
    transition: ease .3s border;
}

/* Movie list */

.movie-list {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
    transition: ease .3s all;
    text-align: center;
}

.movie-list > li {
    display: inline-block;
    margin: 15px;
    padding: 0;
    border-radius: 3px;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 1);
}

.movie-list > li > a {
    display: block;
    float: left;
    height: 300px;
    width: 200px;
    border-radius: 3px;
    box-shadow: 0 0 0 -1px #337ab7;
    transition: ease .5s box-shadow;
    position: relative;
    overflow: hidden;
}

.movie-list .movie-poster {
    position: absolute;
    display: block;
    width: 200px;
    left: 0;
    top: 0;
    right: 0;
}

.movie-list .movie-poster-empty {
    position: absolute;
    width: 200px;
    height: 300px;
    left: 0;
    top: 0;
    right: 0;
}

.movie-list .movie-info {
    position: absolute;
    padding: 0.3em;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    text-align: left;
    color: #eee;
    max-height: 1.7em;
    line-height: 1em;
    overflow: hidden;
    transition: max-height ease .5s;
}

.movie-list .movie-info h4 {
    margin-top: 0;
    margin-bottom: 0.4em;
}

.movie-list > li > a:hover,
.movie-list > li > a:focus {
    text-decoration: none;
    box-shadow: 0 0 10px 0 #72bafb;
    transition: ease .5s box-shadow;
}

.movie-list > li > a:hover .movie-info,
.movie-list > li > a:focus .movie-info {
    max-height: 8.6em;
    transition: max-height ease .5s;
}

/* Movie page */

.movie-index {
    padding-top: 15px;
}

.movie-poster {
    margin-bottom: 10px;
}

.movie-poster .movie-poster-empty {
    width: 200px;
    height: 300px;
    max-width: 95%;
    margin: 0 auto;
    display: none;
}

.movie-poster img {
    width: 200px;
    margin: auto;
    display: block;
    max-width: 95%;
}

@media (min-width: 768px) {
    .movie-poster img {
        width: 300px;
    }

    .movie-poster .movie-poster-empty {
        display: block;
        width: 300px;
        height: 450px;
    }
}

.movie-watch-buttons .btn {
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.movie-description h2 {
    margin-top: 5px;
}

.movie-rating .glyphicon {
    font-size: 130%;
    top: .17em;
}

.movie-rating .glyphicon-star,
.movie-rating .glyphicon-star-half {
    color: #eb9316;
}

.movie-rating .glyphicon-star-empty {
    opacity: .5;
}

/* filters */

.filters-form {
    text-align: center;
}

.year-feedback {
    width: 4.2em !important;
    margin: 0 auto;
}

.filters-form input:checked ~ * {
    color: #6fb1ed;
}

.filters-form .slider {
    -moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    margin: 0 0.4em;
}

.filter-link, .filter-action {
    float: left;
}

.filter-link {
    padding-right: 5px !important;
}

.filter-action {
    color: #6fb1ed ! important;
    padding: 7.5px 5px ! important;
}

/* Player */

.movie-watch {
    max-width: 500px;
    margin: auto;
    min-height: 100%;
    height: auto;
}

@media (min-height: 505px) and (min-width: 800px) {
    .movie-watch {
        max-width: 700px;
    }
}

@media (min-height: 755px) and (min-width: 1000px) {
    .movie-watch {
        max-width: 100%;
    }
}

.player-container {
    width: 100%;
    padding-bottom: 56.25%;
    background-color: #ccc;
    max-height: 500px;
    position: relative;
}

.player-container #player-actual {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 50%;
    right: 0;
    bottom: 0;
    transform: translateY(-50%);
}

/* Clappr */

.level_selector[data-level-selector] button {
    margin-top: -5px;
    line-height: 32px;
}


.gener_list {
    margin-bottom: 2.5rem;
}

.gener_list__title {
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    text-transform: capitalize;
}

/*.gener_list__videos {*/
/*    display: flex;*/
/*    flex-wrap: nowrap;*/
/*    gap: 1rem;*/
/*}*/

.gener-list__video {
    max-width: 200px;

    position: relative;
}

.gener-list__video a {
    display: block;
    text-decoration: none;
}

.gener_list__videos .movie-poster {


    border-radius: 10px;
    overflow: hidden;
}

.gener_list__videos .movie-poster img {
    margin: 0;
    max-width: 100%;
    height: auto;
    transition: 2s;
}

.gener-list__video .movie-info {
    /*position: absolute;*/
    /*bottom: 0;*/
    /*left: 0;*/
    /*width: 100%;*/
    /*padding: 10px;*/
    /*background: #000;*/
    color: #fff;

}

.gener-list__video:hover .movie-poster img {
    transform: scale(1.1);
}

.gener-list__video .movie-info {
    text-decoration: none;
}

.gener-list__video .movie-info h4 {
    margin: 0;
    font-size: 16px;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* number of lines to show */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-right: 5px;
}

.movie-poster-parental{
    position: absolute;
    font-size: 14px;
    color: #fff;
    background: green;
    padding: 4px;
    border-radius: 4px;
    z-index: 10;
    top: 5px;
    left: 5px;
    width: 40px;
    text-align: center;
    font-weight: bold;
}

.movie-poster-parental.movie-poster-parental__5{
    background: #ff9800;
}
.movie-poster-parental.movie-poster-parental__6{
    background: #c20000;
}

@media(max-width: 700px){
    .gener-list__video .movie-info h4 {
        font-size: 13px;
        -webkit-line-clamp: 2; /* number of lines to show */
        line-clamp: 2;
    }
    .gener_list__title{
        font-size: 1.8rem;
    }

    .movie-poster-parental{
        font-size: 12px;
        width: 35px;
    }
}
/* === YOUTUBE STYLE UI === */

.clappr-player {
  background-color: #000;
}

.audio_track_selector button,
.level_selector button {
  background: rgba(30, 30, 30, 0.8);
  color: #fff !important;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  padding: 6px 10px;
  margin-left: 6px;
  transition: background 0.2s, transform 0.2s;
}

.audio_track_selector button:hover,
.level_selector button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

/* Иконка 🎧 и ⚙️ чуть светлее */
.audio_track_selector button::before {
  content: "🎧 ";
}
.level_selector button::before {
  content: "⚙️ ";
}

/* Меню */
.audio_track_selector ul,
.level_selector ul {
  background: rgba(25, 25, 25, 0.95);
  color: #fff;
  border-radius: 8px;
  padding: 6px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  animation: fadeIn 0.15s ease-in;
  font-size: 14px;
}

.audio_track_selector ul li,
.level_selector ul li {
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.audio_track_selector ul li:hover,
.level_selector ul li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.audio_track_selector ul li.active,
.level_selector ul li.active {
  background: rgba(255, 255, 255, 0.2);
  color: #00adee;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.episode-dropdown {
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    background-color: #0b1d52 !important;
    border: 1px solid #1b3a8a;
    border-radius: 6px;
    padding: 0;
    margin: 4px 0 0 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Активное состояние dropdown */
.btn-group.open .episode-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Стили для ссылок серий */
.episode-dropdown li a {
    padding: 10px 15px;
    color: #fff !important;
    background-color: #0b1d52 !important;
    border-bottom: 1px solid #1b3a8a;
}

/* Последняя строка без нижней границы */
.episode-dropdown li:last-child a {
    border-bottom: none;
}

/* Hover эффект */
.episode-dropdown li a:hover {
    background-color: #163a96 !important;
    text-decoration: none;
}

/* Убираем лишние белые полосы */
.dropdown-menu::before,
.dropdown-menu::after {
    display: none !important;
    content: none !important;
}

.series-block {
    margin-top: 20px;
}

.season-select {
    margin-bottom: 10px;
}


