/* ladybag catalog bundle v960 — progressbar+season+search+ep+gl */
/* ==== progressbar.css ==== */
        .episode-progress-container {
            width: 100%;
            position: relative;
            top: 1px;
        }
        
        .episode-progress {
            width: 100%;
            height: 4px;
            background-color: #cecdcd;
            /*! border-radius: 2px; */
            overflow: hidden;
            position: relative;
            border-top-left-radius: 2px;
            border-top-right-radius: 2px;
        }
        
        .episode-progress-bar {
            height: 100%;
            background: var(--main-color);
            width: 0%;
            transition: width 0.3s ease;
            float: left;
        }
        
        
        .episode-progress-percent {
            position: absolute;
            right: 0;
            top: -18px;
            font-size: 11px;
            color: var(--main-color);
            font-weight: bold;
        }
        
        .episode-progress.completed .episode-progress-percent {
            color: var(--main-color-light);
        }
        
        .episode-progress-tooltip {
            position: absolute;
            bottom: 100%;
            left: 0;
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            opacity: 0;
            transition: opacity 0.2s;
            pointer-events: none;
            transform: translateX(-50%);
            white-space: nowrap;
            z-index: 10;
            margin-bottom: 5px;
        }
        
        .episode-progress:hover .episode-progress-tooltip {
            opacity: 1;
        }
body.night-theme .episode-progress-bar {
  background: var(--main-color);
}
body.night-theme .episode-progress-percent {
  color: rgb(22, 202, 7);
}
body.night-theme .episode-progress {
  background-color: #b1b1b1;
}
/* ==== season.css ==== */
html, body {
    height: 100%;
    width: 100%;
}
body {
    height: auto;
    min-height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    font-family: Pompadur;
}
*{
    padding: 0;
}
.wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}
.row{
    justify-content: space-around;
    list-style: none;
    max-width: 981px;
    width: 100%;
    box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.3);
}
.title{
    font-family: Pompadur;
    cursor: pointer;
    padding: 10px 20px;
    border-top: 3px solid transparent;
}
.title.active{
    font-family: Pompadur;
    border-top: 3px solid var(--main-color);
    color: var(--main-color);
}
.block{
    overflow: hidden;
    width: 100%;
}
.content{
    font-family: Pompadur;
    display: none;
    opacity: 0;
}
.content.active{
    margin-top: 15px;
    font-family: Pompadur;
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@media screen and (min-width: 981px) /* Mobile */ {
.row{
    display: flex;
}
}

body.night-theme .row {
  box-shadow: 0 2px 5px -1px rgba(255, 255, 255, 0.3);
}

.ep-info {
  font-size: 14px;
  color: var(--text-color);
  margin-top: 0;
  line-height: 1.3;
  width: 270px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  flex: 1 1 auto;
  font-size: 14px;
  text-decoration: none;
  padding: 0 8px 8px;
}

/* Небольшой отступ текста в карточках эпизодов */
.ep a h2,
.ep1 a h2 {
  padding: 4px 8px 0;
  margin: 5px 0 0px;
  word-break: break-word;
}

.ep:hover .ep-info,
.ep1:hover .ep-info {
    color: var(--main-color) !important;
    transition: color 0.2s ease;
}

/* Или альтернативный вариант, если нужно наследовать цвет от родителя */
.ep:hover a,
.ep1:hover a {
    color: var(--main-color);
}

.ep:hover .ep-info,
.ep1:hover .ep-info {
    color: inherit;
    transition: color 0.2s ease;
}

/* ==== search.css ==== */
/* Стили для поиска */
.search-container {
    margin: 20px auto;
    max-width: 600px;
    position: relative;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}
#searchInput {
    width: 100%;
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    outline: none;
    font-family: Pompadur;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 5px var(--main-color);
}

.results-count {
    display: none; /* Скрываем по умолчанию */
    text-align: left;
    margin: 10px 0 5px;
    font-family: Pompadur;
    font-size: 14px;
}

.search-results-title {
    text-align: left;
    margin: 15px 0 5px;
    font-size: 1.2em;
    display: none;
}

#clearSearch {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: none;
}

#clearSearch:hover {
    color: var(--main-color);
}

#searchResults {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

/* Стили для светлой темы */
.results-count {
    color: rgb(43, 36, 43);
}

.search-results-title {
    color: rgb(43, 36, 43);
}

.results-count strong {
    color: var(--main-color);
}



/* Адаптивность */
@media screen and (max-width: 768px) {
    .search-container {
        padding: 0 10px;
    }
    
    #searchResults {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    #searchResults {
        grid-template-columns: 1fr;
    }
}

  .search-container {
    margin: 20px auto;
    max-width: 600px;
    position: relative;
  }

  #searchInput {
    width: 100%;
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    outline: none;
    font-family: Pompadur;
  }

  .results-count {
    text-align: center;
    margin-top: 10px;
    font-family: Pompadur;
  }

  #searchResults {
    display: none;
  }

  .search-results-title {
    text-align: center;
    margin: 15px 0;
    font-size: 1.2em;
  }

  #clearSearch {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
  }

.spinner {
  border: 3px solid rgba(43, 36, 43, 0.39);
  border-radius: 50%;
  border-top: 3px solid rgb(205,11,12);
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==== ep.css ==== */
img{
    transform: scale(1.0);
  }
.ep_thumb_left{
    width: 325px;
    border-radius: 5px 5px 0px 0px;
    transform: scale(1);
}
  h2{
text-align: left;
width: 270px;
flex: 1 1 auto;
font-size: 18px;
text-decoration: none;
  }
a{
  text-decoration: none;
  color: rgb(43, 36, 43);
}
.ep_list{
  max-width: 1615px;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-left: auto;
  margin-right: auto;
}
.ep1, .ep {
  position: relative; /* Добавляем это */
  margin: 15px;
  max-width: 325px;
  transition: all 0.2s;
  border-radius: 5px;
  background-color: rgba(242, 242, 242, 0);
  box-shadow: 0px 2px 4px 0px rgb(43, 36, 43);
  overflow: hidden; /* Чтобы плашка не выходила за границы */
}
  .ep:hover{
  transition: 0.2s;
  transition-property: all;
  transform: scale(1.1);
}
  .ep1:hover{
  transition: 0.2s;
  transition-property: all;
  transform: scale(1.1);
}
  .ep>a:hover{  
  color: var(--main-color);
  transform: scale(1.15);
}
  .ep>a>img:hover{ 
  transition: 0.2s;
  transform: scale(1.12);
}
  .ep1>a>img:hover{ 
  transition: 0.2s;
  transform: scale(1.12);
}
  .ep1>a:hover{  
  color: var(--main-color);
  transform: scale(1.15);
}
.dow_1:hover{  
  color: rgb(205,11,12);
  transform: scale(1.15);
  transition: 0.2s;
  transition: all 0.2s;
}
.dow_2:hover{  
  color: rgb(205,11,12);
  transform: scale(1.15);
  transition: 0.2s;
  transition: all 0.2s;
}
.dow_3:hover{  
  color: rgb(205,11,12);
  transform: scale(1.15);
  transition: 0.2s;
  transition: all 0.2s;
}
.dow_4:hover{  
  color: rgb(205,11,12);
  transform: scale(1.15);
  transition: 0.2s;
  transition: all 0.2s;
}
.dow_5:hover{  
  color: rgb(205,11,12);
  transform: scale(1.15);
  transition: 0.2s;
  transition: all 0.2s;
}
.dow_1 {  
  transition: 0.2s;
  transition: all 0.2s;
}
.dow_2 {  
  transition: 0.2s;
  transition: all 0.2s;
}
.dow_3 {  
  transition: 0.2s;
  transition: all 0.2s;
}
.dow_4 {  
  transition: 0.2s;
  transition: all 0.2s;
}
.dow_5 {  
  transition: 0.2s;
  transition: all 0.2s;
}
.downl{
    transition: 0.2s;
    transition-property: all;
    width: 140px;
    float: left;
    height: 120px;
    margin-left: 5px;
    margin-top: -10px;
}
@media screen and (max-width: 540px){
.ep_list{
  width: 325px;
}
}
/* Бейдж для Тизера */
.teaser-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--main-color);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
  transform: none !important; /* Отключаем трансформацию при наведении */
}
.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--main-color);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
  transform: none !important; /* Отключаем трансформацию при наведении */
}
/* Стили для маркеров озвучки */
.dub-marker {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    vertical-align: middle;
}
.dub-icon {
    height: 16px;
    width: auto;
    margin-right: 4px;
}
.custom-text {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}


.premiere-info {
    font-size: 12px;
    color: var(--main-color);
    margin-left: 5px;
    margin-top: -2px;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
    float: left;
}






/* 5 столбцов (от 1440px) */
@media screen and (min-width: 1440px){
  .ep_list{
    grid-template-columns: repeat(5, 290px);
    justify-content: center;
  }
}

/* 4 столбца (от 1150px до 1439px) */
@media screen and (min-width: 1150px) and (max-width: 1439px){
  .ep_list{
    grid-template-columns: repeat(4, 290px);
    justify-content: center;
  }
}

/* 3 столбца (от 880px до 1149px) */
@media screen and (min-width: 860px) and (max-width: 1149px){
  .ep_list{
    grid-template-columns: repeat(3, 290px);
    justify-content: center;
  }
}

/* 2 столбца (от 560px до 879px) */
@media screen and (min-width: 540px) and (max-width: 859px){
  .ep_list{
    grid-template-columns: repeat(2, 290px);
    justify-content: center;
  }
}
/* ==== gl.css ==== */
img{
    transform: scale(1.0);
  }
.ep_thumb_left{
    width: 325px;
    border-radius: 5px 5px 0px 0px;
    transform: scale(1);
}
  h2{
text-align: left;
flex: 1 1 auto;
font-size: 18px;
text-decoration: none;
  }
a{
  text-decoration: none;
  color: rgb(43, 36, 43);
}
.sez_list{
max-width: 1530px;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-left: auto;
  margin-right: auto;
}
.sez_list .sez_h2{
margin: 0;
padding: 8px 10px;
text-align: center;
}
.ep1, .ep{
margin: 15px;
transition: all 0.2s;
border-radius: 5px;
background-color: rgba(242, 242, 242, 0);
box-shadow: 0px 2px 4px 0px rgb(43, 36, 43);
  }
  .ep:hover{
  transition: 0.2s;
  transition-property: all;
  transform: scale(1.1);
}
  .ep1:hover{
  transition: 0.2s;
  transition-property: all;
  transform: scale(1.1);
}
  .ep>a:hover{  
  color: var(--main-color);
  transform: scale(1.15);
}
  .ep>a>img:hover{ 
  transition: 0.2s;
  transform: scale(1.12);
}
  .ep1>a>img:hover{ 
  transition: 0.2s;
  transform: scale(1.12);
}
  .ep1>a:hover{  
  color: var(--main-color);
  transform: scale(1.15);
}
@media screen and (max-width: 340px){
.sez_list{
  width: 200px;
}
@media screen and (max-width: 320px){
  .player{
  max-width: 310px;
    }
}
.sez_list{
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.ep1, .ep{
max-width: 200px;
  }
body{
    overflow-x: hidden;
}
}
.player{
 max-width: 500px;
}
@media screen and (min-width: 200px) /* Mobile */ {
.player{
  max-height: 180px;
}
}
@media screen and (max-width: 1200px) /* Mobile */ {
}
@media screen and (min-width: 1200px) /* Mobile */ {
}
@media screen and (min-width: 1900px) /* Mobile */{}
.player {
  width: 100%;
  height: auto;
}
@media screen and (min-width: 320px){
  .player{
  min-height: 180px;
    }
}
@media screen and (min-width: 325px){
  .player{
  min-height: 183px;
    }
}
@media screen and (min-width: 328px){
  .player{
  min-height: 185px;
    }
}
@media screen and (min-width: 330px){
  .player{
  min-height: 187px;
    }
}
@media screen and (min-width: 335px){
  .player{
  min-height: 190px;
    }
}
@media screen and (min-width: 340px){
  .player{
  min-height: 193px;
    }
}
@media screen and (min-width: 345px){
  .player{
  min-height: 195px;
    }
}
@media screen and (min-width: 350px){
  .player{
  min-height: 198px;
    }
}
@media screen and (min-width: 355px){
  .player{
  min-height: 201px;
    }
}
@media screen and (min-width: 360px){
  .player{
  min-height: 204px;
    }
}
@media screen and (min-width: 370px){
  .player{
  min-height: 207px;
    }
}
@media screen and (min-width: 375px){
  .player{
  min-height: 212px;
    }
}
@media screen and (min-width: 380px){
  .player{
  min-height: 215px;
    }
}
@media screen and (min-width: 385px){
  .player{
  min-height: 218px;
    }
}
@media screen and (min-width: 390px){
  .player{
  min-height: 221px;
    }
}
@media screen and (min-width: 395px){
  .player{
  min-height: 224px;
    }
}
@media screen and (min-width: 400px){
  .player{
  min-height: 227px;
    }
}
@media screen and (min-width: 405px){
  .player{
  min-height: 231px;
    }
}
@media screen and (min-width: 410px){
  .player{
  min-height: 234px;
    }
}
@media screen and (min-width: 415px){
  .player{
  min-height: 234px;
    }
}
@media screen and (min-width: 420px) /* Mobile */ {
    .player{
  min-height: 235px;
    }
}
@media screen and (min-width: 425px) /* Mobile */ {
    .player{
  min-height: 240px;
    }
}
@media screen and (min-width: 430px) /* Mobile */ {
    .player{
  min-height: 243px;
    }
}
@media screen and (min-width: 435px) /* Mobile */ {
    .player{
  min-height: 245px;
    }
}
@media screen and (min-width: 440px) /* Mobile */ {
    .player{
  min-height: 250px;
    }
}
@media screen and (min-width: 450px) /* Mobile */ {
    .player{
  min-height: 255px;
    }
}
@media screen and (min-width: 460px) /* Mobile */ {
    .player{
  min-height: 260px;
    }
}
@media screen and (min-width: 465px) /* Mobile */ {
    .player{
  min-height: 263px;
    }
}
@media screen and (min-width: 470px) /* Mobile */ {
    .player{
  min-height: 267px;
    }
}
@media screen and (min-width: 476px) /* Mobile */ {
    .player{
  min-height: 270px;
    }
}
@media screen and (min-width: 485px) /* Mobile */ {
    .player{
  min-height: 275px;
    }
}
@media screen and (min-width: 490px) /* Mobile */ {
    .player{
  min-height: 278px;
    }
}
@media screen and (min-width: 495px) /* Mobile */ {
    .player{
  min-height: 280px;
    }
}
@media screen and (min-width: 500px) /* Mobile */ {
    .player{
  min-height: 281px;
    }
}
.player{
 max-width: 500px;
}
.player {
  max-width: 500px;
  margin-top: -5px;
}
