@font-face {
      font-family: Pompadur;
      src: url(https://ladybug.sbs/font/FONT.otf)
    }
html{
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
btn{
  font-family: Pompadur, 'site', cursive;
}
    h1, h2 {
      font-family: Pompadur, 'site', cursive;
    }
      .close:hover {background: #e6e6ff;}
body{
  overflow-x: hidden;
  margin: 0;
  -webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media screen and (max-width: 320px){
.box{
  max-width: 480px;
}
.player>iframe {
  max-width: 480px;
  height: 270px;
}
}
@media screen and (max-width: 420px){
.box{
  max-width: 490px;
}
.br{
  height: 10px;
}
.Hyina{
  height: 0px;
}
}
@media screen and (max-width: 480px) /* Mobile */ {
.box{
  max-width: 480px;
}
.Hyina{
  height: 0px;
}
}
@media screen and (max-width: 768px) /* Mobile */ {
button, img {
  max-width: 90%;
}
.box{
  width: 500px;
}
.Hyina{
  height: 0px;
}
}
@media screen and (max-width: 848px) /* Mobile */ {
button, img {
  max-width: 90%;
}
.box{
  width: 500px;
}
.Hyina{
  height: 0px;
}
}
@media screen and (min-width: 850px) /* Mobile */ {
.Hyina{
  height: 0px;
    }
button, img {
  max-width: 90%;
}
}
@media screen and (min-width: 1900px) /* Mobile */{
.ep_list{
  margin-left: 62px;
}
}
.box{
    width: 100%;
}
}
html, body {
  height: 100%;
  width: 100%;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.h1, h2,  h3, h4, pre{
  -ms-user-select: none; 
	-moz-user-select: none; 
	-webkit-user-select: none; 
  user-select: none;
}
.text{
    color: black;
    font-family: site;
    user-select: none;
}
h5{
  font-family: franklin gothic medium, cursive;
  font-size: 19px;
  user-select: none;
}
/* Стили для метки "Новая серия" */
.new-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4757;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}
/* Стили для иконок озвучки */
.dub-icon {
    height: 20px;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
}
/* Стили для дополнительного текста озвучки */
.custom-text {
    font-size: 0.9em;
    color: #666;
    margin-left: 5px;
    font-style: italic;
    display: inline-block;
}
/* Стили для контейнера синопсиса */
.synopsis-box {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Стили для текста синопсиса */
.synopsis-text {
    line-height: 1.6;
    white-space: pre-line;
    font-size: 14px;
    color: #333;
}
/* Позиционирование для контейнера названия серии */
.name_ep {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}
/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .new-badge {
        top: -5px;
        right: -5px;
        font-size: 10px;
        padding: 2px 5px;
    }
    .dub-icon {
        height: 16px;
        margin-left: 5px;
    }
    .custom-text {
        font-size: 0.8em;
    }
    .synopsis-box {
        margin: 10px;
        padding: 10px;
    }
}
/* Общие стили для меток */
.new-badge {
    background: #ff4757;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}
.dub-marker {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}
.dub-icon {
    height: 20px;
    width: auto;
    margin-right: 5px;
}
.dub-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
}
/* Стили для каталога */
.ep {
    position: relative;
}
/* Стили для страницы серии */
.synopsis-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.synopsis-container h3 {
    margin-top: 0;
    color: #333;
}
.synopsis-text {
    line-height: 1.6;
    color: #444;
}
/* Адаптация для мобильных */
@media (max-width: 768px) {
    .new-badge {
        font-size: 10px;
        padding: 2px 5px;
    }
    .dub-icon {
        height: 16px;
    }
    .dub-text {
        font-size: 12px;
    }
}



/* Стили для плейсхолдера премьеры */
.premiere-placeholder {
    width: 100%;
    height: 100%;
    min-height: 134px;
    background: linear-gradient(135deg, var(--bg-color-light) 0%, var(--main-color-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 5px 5px 0 0;
    position: relative;
    overflow: hidden;
}

.premiere-placeholder::before {
    /*! content: '⏰'; */
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    opacity: 0.3;
    color: white;
}

.premiere-placeholder-content {
    color: var(--main-color);
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 15px;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.6);
    z-index: 2;
    font-family: Pompadur, 'site', cursive;
    line-height: 1.4;
    word-break: break-word;
    max-width: 100%;
}

/* Для темной темы */
body.night-theme .premiere-placeholder {
    background: linear-gradient(135deg, var(--main-color-dark-opaque) 0%, var(--bg-primary) 100%);
}

/* Убедимся, что изображение правильно скрыто */
.ep .image-loader img.ep_thumb_left[style*="display: none"] {
    display: none !important;
}

/* Стили для спиннера в image-loader */
.image-loader {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}

.image-loader .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

body.night-theme .premiere-placeholder-content {
  text-shadow: 2px 2px 3px rgba(78, 78, 78, 1);
}