/* ladybag base bundle v960 — собран из theme+night+menu+footer+qq. Не править вручную: править исходники и пересобрать. */
/* ==== theme.css ==== */
:root {
    --main-color: #db1616;
    --main-color-light: #de8787;
    --bg-color-light: rgba(219, 22, 22, 0.1);
    --bg-color-dark: rgba(58, 212, 34, 0.15);
    --solid-bg-light: #ffebee;
    --solid-bg-dark: #1b5e20;
    --text-color: #333;
    --bg-primary: #ffffff;
    --bg-secondary: #f2f2f2;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body.night-theme {
    --text-color: #d4d4d4;
    --bg-primary: #171717;
    --bg-secondary: #232323;
    --border-color: #444;
    --shadow-color: rgba(255, 255, 255, 0.05);
}

/* Основные стили для элементов с использованием переменных */
body {
    background-color: var(--bg-primary);
    color: var(--text-color);
}

a {
    color: var(--main-color);
}

a:hover {
    color: var(--main-color-light);
}

button {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

input, textarea {
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-color);
}

input:focus, textarea:focus {
    outline: 1px solid var(--main-color);
    border-color: var(--main-color);
}

/* Контейнер выбора темы */
.color-theme-selector {
    outline: 1px solid var(--main-color);
    border-color: var(--main-color);
    background-color: var(--bg-color-light);
    position: relative;
    border-radius: 10px;
    top: -11px;
}

.theme-selector-header {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
    font-family: Pompadur, 'site', cursive;
}

/* Ряд с кнопками тем */
.theme-options-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px;
}

/* Кнопка темы */
.theme-option {
    position: relative;
    cursor: pointer;
    transition: 0.2s all;
}

.theme-option:hover {
    transform: scale(1.15);
}

.theme-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.theme-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Обводка для активной темы */
.theme-option.active .theme-icon {
    box-shadow: 0 0 0 2px var(--main-color), 0 0 0 4px var(--main-color), 0 4px 12px var(--shadow-color);
    /*! animation: pulse 2s infinite; */
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.theme-name {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--text-color);
    opacity: 0;
    white-space: nowrap;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
}

.theme-option:hover .theme-name {
    opacity: 1;
}

/* Стили для иконки тёмной/светлой темы */
.theme-mode-toggle {
    margin-left: 10px;
    display: flex;
    align-items: center;
    /*! display: none; */
}

.theme-mode-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    box-shadow: 0 2px 8px var(--shadow-color);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.theme-mode-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.theme-mode-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

body.night-theme .theme-mode-icon {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

body.night-theme .theme-mode-icon:hover {
    box-shadow: 0 0 15px rgba(44, 62, 80, 0.4);
}

/* Контролы темы */
.theme-controls {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--bg-color-light);
    margin-top: 15px;
}

.dark-theme-switch,
.gradient-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.control-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Стили для переключателей */
.dark-switch,
.gradient-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    gap: 8px;
}

.dark-switch input,
.gradient-switch input {
    display: none;
}

.dark-slider,
.gradient-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: color-mix(in srgb, var(--text-color) 30%, transparent);
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.dark-slider:before,
.gradient-slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    top: 1px;
    left: 2px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.dark-switch input:checked + .dark-slider,
.gradient-switch input:checked + .gradient-slider {
    background-color: var(--main-color);
}

.dark-switch input:checked + .dark-slider:before,
.gradient-switch input:checked + .gradient-slider:before {
    transform: translateX(26px);
    background-color: white;
}

.dark-label,
.gradient-label {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

/* Статус темы */
.theme-status {
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.current-theme-info {
    font-size: 13px;
    color: var(--text-color);
}

.current-theme-name {
    font-weight: bold;
    color: var(--main-color);
    text-transform: capitalize;
}

/* Элементы с полупрозрачным фоном */
.transparent-bg {
    background-color: var(--bg-color-light);
}

body.night-theme .transparent-bg {
    background-color: var(--bg-color-dark);
}

/* Элементы с сплошным фоном */
.solid-bg-light {
    background-color: var(--solid-bg-light);
}

.solid-bg-dark {
    background-color: var(--solid-bg-dark);
}

/* Специфические элементы */
.comment.admin-comment {
    background-color: var(--bg-color-light);
    border-left: 3px solid var(--main-color);
}

body.night-theme .comment.admin-comment {
    background-color: var(--main-color-dark-opaque);
}

.reaction-btn.user-reacted {
    background-color: var(--bg-color-light);
    border: 1px solid var(--main-color);
}

body.night-theme .reaction-btn.user-reacted {
    background-color: var(--bg-color-dark);
}

.submit-comment {
    background-color: var(--main-color);
}

.submit-comment:hover {
    background-color: var(--main-color-light);
}

/* Анимации */
@keyframes themeChange {
    0% { opacity: 0.8; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.theme-changing {
    animation: themeChange 0.5s ease;
}

/* Адаптивность */
@media screen and (max-width: 525px) {
    .color-theme-selector {
        float: right;
        margin-top: 10px;
    }
    
}
@media screen and (max-width: 410px) {
    .color-theme-selector > .theme-options-row > .theme-mode-toggle {
        display: none;
    }
}
@media screen and (max-width: 455px) {
  .theme-options-row {
    gap: 5px;
  }
}
@media screen and (min-width: 408px) {
    .color-theme-selector > .theme-options-row > .theme-mode-toggle {
        display: block !important;
    }
}
@media screen and (min-width: 349px) and (max-width: 369px) {
    .color-theme-selector > .theme-options-row > .theme-mode-toggle {
        display: block !important;
    }
}
@media screen and (min-width: 769px) {
    .color-theme-selector{
        top: -7px;
    }
}
@media screen and (max-width: 768px) {
    .color-theme-selector {
        /*! padding: 12px; */
        /*! margin: 15px 0; */
        top: -8px;
    }
    
    .theme-options-row {
        /*! gap: 10px; */
    }
    
    .theme-icon {
        width: 36px;
        height: 36px;
    }
    
    .theme-mode-icon {
        width: 32px;
        height: 32px;
    }
    
    .theme-mode-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .theme-controls {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
    }
    
    .dark-theme-switch,
    .gradient-toggle {
        justify-content: center;
    }
    
    .dark-slider,
    .gradient-slider {
        width: 45px;
        height: 22px;
    }
    
    .dark-slider:before,
    .gradient-slider:before {
        width: 18px;
        height: 18px;
    }
    
    .theme-name {
        font-size: 9px;
        bottom: -18px;
    }
}


/* Специальные стили для разных тем */
[data-theme="red"] .theme-icon {
    background: linear-gradient(135deg, #cd0b0c, #db1616);
}

[data-theme="green"] .theme-icon {
    background: linear-gradient(135deg, #16c807, #0f9504);
}

[data-theme="orange"] .theme-icon {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

[data-theme="yellow"] .theme-icon {
    background: linear-gradient(135deg, #f1c40f, #bf7e15);
}

[data-theme="pink"] .theme-icon {
    background: linear-gradient(135deg, #e84393, #fd79a8);
}

[data-theme="blue"] .theme-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

[data-theme="purple"] .theme-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* Состояния hover для тем */
[data-theme="red"]:hover .theme-icon {
    box-shadow: 0 0 15px rgba(219, 22, 22, 0.4);
}

[data-theme="green"]:hover .theme-icon {
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

[data-theme="orange"]:hover .theme-icon {
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.4);
}

[data-theme="yellow"]:hover .theme-icon {
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}

[data-theme="pink"]:hover .theme-icon {
    box-shadow: 0 0 15px rgba(232, 67, 147, 0.4);
}

[data-theme="blue"]:hover .theme-icon {
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}

[data-theme="purple"]:hover .theme-icon {
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.4);
}

/* Улучшенная доступность */
.theme-option:focus {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

.theme-mode-icon:focus {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

.dark-switch:focus .dark-slider,
.gradient-switch:focus .gradient-slider {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .theme-icon {
        border: 2px solid var(--text-color);
    }
    
    .theme-option.active .theme-icon {
        border-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .theme-option,
    .theme-icon,
    .theme-mode-icon {
        transition: none;
    }
    
    .theme-option.active .theme-icon {
        animation: none;
    }
}

.admin-message-container {
    margin-bottom: 20px;
    max-width: 600px;
}

.admin-message {
    font-family: Pompadur, 'site', cursive;
    background-color: var(--main-color-light-opaque);
    padding: 15px;
    border-radius: 11px;
    border: 2px solid var(--main-color);
}
body.night-theme .admin-message {
    background-color: var(--main-color-dark-opaque);
}
.admin-message strong {
    display: block;
    text-align: center;
    background-color: var(--main-color);
    color: white;
    padding: 8px 15px;
    margin: -15px -15px 15px -15px;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    font-size: 16px;
}

.admin-message span {
    display: block;
    line-height: 1.5;
    color: var(--text-color);
    font-size: 14px;
}

.voiceover-container {
    margin-bottom: 20px;
    max-width: 600px;
}

.voiceover-info {
    font-family: Pompadur, 'site', cursive;
    background-color: var(--main-color-light-opaque);
    padding: 15px;
    border-radius: 11px;
    border: 2px solid var(--main-color);
}

body.night-theme .voiceover-info {
    background-color: var(--main-color-dark-opaque);
}

.voiceover-info strong {
    display: block;
    text-align: center;
    background-color: var(--main-color);
    color: white;
    padding: 8px 15px;
    margin: -15px -15px 15px -15px;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    font-size: 16px;
}

.voiceover-info span {
    display: block;
    line-height: 1.5;
    color: var(--text-color);
    font-size: 14px;
}


.current-episode-container {
  margin-bottom: 15px;
}

/* ==== Рефреш v960: всё через переменные темы ==== */

/* Выделение текста — акцент темы */
::selection {
    background: var(--main-color);
    color: #fff;
}

/* Плавные микро-переходы на интерактивных элементах */
a,
button,
.menu__link,
.theme-option {
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

/* Доступная фокус-подсказка в цвете темы */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Кнопки: нейтральная база, акцент при наведении — в цвете темы */
button {
    font-family: inherit;
}

button:hover {
    filter: brightness(0.97);
}

body.night-theme button:hover {
    filter: brightness(1.1);
}

/* Аккуратный скроллбар под тему */
body {
    scrollbar-color: var(--main-color-light) var(--bg-secondary);
    scrollbar-width: thin;
}

body.night-theme {
    scrollbar-color: var(--main-color) var(--bg-secondary);
}

/* Мягкая тень карточкам каталога в цвете темы */
.ep a:hover h2 {
    color: var(--main-color);
}
/* ==== night.css ==== */
:root {
    --main-color: #db1616;
    --main-color-light: #de8787;
}


/* Обновляем все стили использовать CSS переменные */
body.night-theme .avatars_link {
    color: var(--bg-color-light);
    font-family: Pompadur, 'site', cursive !important;
}

.avatars_link {
    color: var(--main-color);
}

body.night-theme .ep>a:hover,
body.night-theme .ep1>a:hover,
body.night-theme .menu__item > a:hover {
    color: var(--main-color);
}

body.night-theme .title.active {
    border-top-color: var(--main-color);
    color: var(--main-color);
}

/* Обновите ВСЕ цвета в ваших CSS файлах, заменяя:
   #db1616 → var(--main-color)
   #de8787 → var(--main-color-light)
   #3ad422 → var(--main-color) (в ночной теме)
   #90e384 → var(--main-color-light) (в ночной теме) */

.pjscssed{
    border-radius: 15px;
}
.night-theme-btn {
    position: relative;
    border: none;
    outline: none;
    width: 64px;
    height: 64px;
    border-radius: 15px;
    background-color: rgba(198, 66, 66, 0.5);
    transition: filter .4s, background-color .4s;
    cursor: pointer;
}
.pjscssed {
  transition: all 0.2s;
  box-shadow: 0px 2px 8px 0px rgb(43, 36, 43);
  border: solid 1px black;
}
body.night-theme .pjscssed {
  transition: all 0.2s;
  background-color: #272727;
  box-shadow: 0px 2px 8px 0px rgb(60, 60, 60);
  border: solid 1px #323232;
  color: #d4d4d4;
}
body.night-theme .ep {
  transition: all 0.2s;
  background-color: #272727;
  box-shadow: 0px 2px 8px 0px rgb(60, 60, 60);
  color: #d4d4d4;
}
body.night-theme .ep1 {
  transition: all 0.2s;
  background-color: #272727;
  box-shadow: 0px 2px 8px 0px rgb(60, 60, 60);
  color: #d4d4d4;
}
body.night-theme .ep0 {
  transition: all 0.2s;
  background-color: rgba(147, 147, 147, 0.15);
  box-shadow: 0px 2px 4px 0px rgb(60, 60, 60);
  border: solid 1px #323232;
  color: #d4d4d4;
}
.night-theme-btn:hover {
    filter: brightness(120%);
}
.night-theme-btn:active {
    filter: brightness(80%);
}
.night-theme-btn__icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    opacity: 0;
    transition: opacity .15s;
}
.night-theme-btn__icon circle,
.night-theme-btn__icon path {
    fill: rgba(0, 0, 0, .3);
}
.night-theme-btn__icon_moon {
    opacity: 1;
}
body.night-theme .dropbtn {
    color: #d4d4d4;
}
body {
    transition: background-color .4s, color .4s;
}
body.night-theme .menu{
    box-shadow: 7px 0px 12px rgba(180, 162, 180, 0.5);
    background-color: rgb(23, 23 ,23);
    border: solid 1px #323232;
}
body.night-theme .header.open .header__burger-btn span {
    color: #d4d4d4;
    background-color: #d4d4d4;
}
body.night-theme {
    background-color: rgb(23, 23 ,23);
    color: #d4d4d4;
}
body.night-theme a{
  text-decoration: none;
  color: var(--text-color);
}
body.night-theme .ep1>a:hover{  
    color: var(--main-color);
  transform: scale(1.15);
}
body.night-theme .ep>a:hover{  
    color: var(--main-color);
  transform: scale(1.15);
}
body.night-theme .menu__item > a:hover {
  color: var(--main-color);
  transition: all 0.2s;
}
body.night-theme .topnav {
  background-color: rgb(23, 23 ,23);
  box-shadow: 5px 0px 20px 0px rgba(255, 255, 255, 0.3);
}
body.night-theme>a:hover {
    color: rgb(22, 202, 7);
}
body.night-theme .title.active {
    border-top: 3px solid var(--main-color);
  color: var(--main-color);
}
body.night-theme .night-theme-btn {
    background-color: rgba(138, 223, 80, 0.5);
}
body.night-theme .night-theme-btn__icon_moon {
    opacity: 0;
}
body.night-theme .night-theme-btn__icon_sun {
    opacity: 1;
}
body.night-theme .header__burger-btn span {
    background-color: #d4d4d4;
}
.work>h6>a{
    color: blue;
}
.Dub>h6>a{
    color: blue;
}
@media screen and (min-width: 1190px) {
	body{
		height:100%;
	}
}
.sneg {
  background-color: #ffe4c400;
}
body.night-theme .footer {
  color: #d4d4d4;
}
/* Общие стили */
.topnav-wrapper {
    width: 100%;
    position: relative;
    /*! height: ; */
}
.topnav-text-container {
    width: 100%;
    padding: 10px 15px;
    background-color: #f2f2f2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    font-family: Pompadur, 'site', cursive;
    text-align: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.text-items-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    max-width: 1200px;
}
.text-item {
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: rgb(43, 36, 43);
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    outline: none;
}
.text-item:hover {
    background-color: var(--bg-color-light);
    color: var(--main-color);
}
.text-bold {
    font-weight: bold;
}
.text-underlined {
    text-decoration: underline;
    text-decoration-skip-ink: none;
}
/* Темная тема */
body.night-theme .topnav-text-container {
    background-color: rgb(23, 23, 23);
    box-shadow: 0 2px 5px rgba(255,255,255,0.05);
}
body.night-theme .text-item {
    color: #d4d4d4;
    background-color: rgba(34, 34, 34, 0.7);
}
body.night-theme .text-item:hover {
    color: var(--main-color);
    background-color: var(--bg-color-dark);
}
/* Адаптивность */
@media screen and (max-width: 768px) {
    .topnav-text-container {
        padding: 8px 10px;
    }
    .text-item {
        padding: 4px 8px;
        font-size: 14px;
        white-space: normal;
    }
}

body.night-theme .spinner {
  border: 3px solid rgba(128, 128, 128, 0.5);
  border-top: 3px solid var(--main-color);
}
  body.night-theme #searchInput {
    background-color: #333;
    color: #d4d4d4;
    border: 1px solid #444;
  }

  body.night-theme .results-count {
    color: #d4d4d4;
  }

  body.night-theme #clearSearch {
    color: #d4d4d4;
  }
body.night-theme #searchInput {
    background-color: #333;
    color: #d4d4d4;
    border: 1px solid #444;
}

body.night-theme #searchInput:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 5px var(--main-color);
}

body.night-theme .results-count {
    color: #d4d4d4;
}

body.night-theme .search-results-title {
    color: #d4d4d4;
}

body.night-theme #clearSearch {
    color: #d4d4d4;
}

body.night-theme #clearSearch:hover {
    color: var(--main-color);
}
body.night-theme .results-count strong {
    color: var(--main-color);
}
body.night-theme .views-counter {
    color: #d4d4d4;
}

.notifications-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    max-width: 350px;
}

.notification {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid var(--main-color);
}

body.night-theme .notification {
    background: #2d2d2d;
    color: #fff;
}

.notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.notification-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
}

.notification-link {
    display: block;
    color: var(--main-color);
    text-decoration: none;
    font-size: 13px;
    margin-top: 5px;
}

.notification-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #888;
}

.notification-close:hover {
    color: #333;
}

body.night-theme .notification-close {
    color: #aaa;
}

body.night-theme .notification-close:hover {
    color: #fff;
}

.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}
body.night-theme .color-theme-selector {
  background-color: var(--main-color-dark-opaque);
}
/* ==== menu.css ==== */
@media screen and (max-width: 472px){
.element_niz>.theme-mode-toggle {
    display: block;
    transform: scale(1.2);
}
}
.spinner {
  border: 3px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  border-top: 3px solid var(--main-color);
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.dropbtn {
  content: ⋁;
  background-color: rgb(205,11,12);
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
font-family: Pompadur, 'site', cursive;
}
#pjs_thumbnail_player {
    border-radius: 15px;
}
a{
    border-radius: 10px;
}
@media screen and (min-width: 370px) {
    .topnav{
height: 62px;
display: block ruby;
}
}
@media screen and (max-width: 369px) {
.topnav {
  height: 110px;
}
}
.topnav {
width: 100%;
  font-family: Pompadur, 'site', cursive;
  background-color: rgb(242, 242, 242);
  box-shadow: 5px 0px 20px 0px rgba(0, 0, 0, 0.3);
}
.nav_a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  background-color: rgb(43, 36, 43);
}
.nav_a:hover {
  background-color: #ddd;
  color: black;
}
.nav_a.active {
  background-color: rgb(205,11,12);
  color: white;
}
@media screen and (max-width: 305px) /* Mobile */ {
.nav_a {
  color: #f2f2f2;
  text-align: center;
  padding: 11px 13px;
  text-decoration: none;
  font-size: 17px;
}
.topnav {
  width: 100%;
  font-family: Pompadur, 'site', cursive;
  height: 50px;
}
}
#player {
  border-radius: 10px;
}
.player{
  border-radius: 10px;
}
html {
    box-sizing: border-box;
}
*,
*::before,
*::after {
    box-sizing: inherit;
}
a {
    text-decoration: none;
}
.header {
    box-shadow: 0px 4px 21px -1px rgba(34, 60, 80, 0.13);
    height: 50px;
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}
.header__burger-btn {
    z-index: 10000;
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background-color: #0000;
    left: 20px;
    position: absolute;
    top: 5px;
}
.header__burger-btn span {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: black;
    left: 5px;
    transition: transform .5s, opacity .5s, background-color .5s;
}
.header__burger-btn span:nth-child(1) {
    transform: translateY(-10px);
}
.header__burger-btn span:nth-child(3) {
    transform: translateY(10px);
}
.header.open .header__burger-btn span {
    background-color: black;
}
.header.open .header__burger-btn span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}
.header.open .header__burger-btn span:nth-child(2) {
    opacity: 0;
}
.header.open .header__burger-btn span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}
.logo {
    display: block;
}
.logo__img {
    width: 200px;
}
.menu__list {
    display: flex;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.menu__item:not(:last-child) {
    margin-right: 20px;
}
.menu__link {
    font-size: 16px;
}
    .header__burger-btn {
        display: block;
        float: left;
        cursor: pointer;
    }
    .menu {
        left: -320px;
        top: 0;
        width: 300px;
        background-color: #fff;
        padding: 75px 20px 20px 40px;
        transition: transform .5s;
        height: 100%;
        box-shadow: 5px 0px 20px 0px rgba(0, 0, 0, 0.3);
        z-index: 9999;
        position: fixed;
    }
    .menu__list {
        display: grid;
    }
    
    .menu__link {
        color: black;
        font-size: 21px;
        display: block;
        padding: 10px 0;
    }
    .header.open .menu {
        transform: translateX(100%);
    }
.menu__item {
  width: fit-content;
  font-family: lobster, 'lobster', cursive;
  text-decoration: none;
  color: rgb(43, 36, 43);
  transition: all 0.2s;
  /*! font-size: 8px; */
}
.menu__item>a:hover{
  color: var(--main-color);
  transition: all 0.2s;
}
   @font-face{
      font-family: lobster;
      /* Гарнитура шрифта */
      src: url(https://miraculous.cfd/font/lobster.ttf)
      /* Путь к файлу со шрифтом */
    }
#glav_text {
  margin-bottom: 5px;
}
.header.open .header__burger-btn{
    position: fixed;
}
.element_niz {
    position: absolute;
    right: 20px;
    /*! bottom: 20px; */
    left: auto;
    display: flex;
    top: 10px;
}
.pystota {
    height: 300px;
}

/* Обновляем стили для контейнера текста */
.topnav-text-container {
    padding: 8px 10px; /* Уменьшаем отступы для мобильных */
}

.text-items-container {
    gap: 8px; /* Уменьшаем промежутки между элементами */
}

.text-item {
    white-space: normal; /* Разрешаем перенос текста */
    text-align: center; /* Центрируем текст */
    line-height: 1.3; /* Увеличиваем межстрочный интервал */
    padding: 5px 8px; /* Увеличиваем внутренние отступы */
    min-height: 32px; /* Минимальная высота для 2 строк */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Для очень маленьких экранов делаем шрифт меньше */
@media screen and (max-width: 360px) {
    .text-item {
        font-size: 13px;
        padding: 4px 6px;
        min-height: 36px; /* Высота для 2-3 строк */
    }
}

/* Для средних мобильных устройств */
@media screen and (max-width: 480px) {
    .text-item {
        font-size: 14px;
        min-height: 30px; /* Высота для 2 строк */
    }
}

/* Убираем nowrap для мобильных устройств */
@media screen and (max-width: 768px) {
    .text-item {
        white-space: normal;
        word-break: break-word; /* Разрешаем перенос длинных слов */
        hyphens: auto; /* Автоматическая расстановка переносов */
    }
}

/* Для десктопов оставляем в одну строку */
@media screen and (min-width: 769px) {
    .text-item {
        white-space: nowrap;
    }
}








/* Стили для выпадающего меню сезонов */
.menu__item--has-dropdown {
    position: relative;
    width: 100%;
}

.menu__link--dropdown-trigger {
    display: flex;
    align-items: center;
    cursor: pointer; /* Меняем на center для выравнивания по центру */
    width: 100%;
    padding: 10px 0;
    gap: 8px; /* Расстояние между текстом и стрелкой */
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    width: 30px; /* Немного уменьшим размер */
    height: 30px;
    flex-shrink: 0; /* Запрещаем сжатие */
    margin-left: 0; /* Убираем отступ слева */
}

.menu__item--has-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.menu__dropdown {
    max-height: 0;
    overflow: hidden;
    padding-left: 0;
    list-style: none;
    margin: 0;
    transition: max-height 0.3s ease;
    width: 100%;
}

.menu__item--has-dropdown.active .menu__dropdown {
    max-height: 500px;
}

.menu__dropdown-item {
    margin: 0;
    width: 100%;
}

.menu__dropdown-link {
    color: black;
    font-size: 21px;
    padding: 10px 0;
    display: block;
    transition: color 0.2s;
    width: 100%;
    text-align: left;
    margin: 0;
}

.menu__dropdown-link:hover {
    color: var(--main-color);
}

/* Убираем все лишние отступы у родительских элементов */
.menu__list {
    padding-left: 0;
    margin: 0;
}

.menu__item {
    margin: 0;
    padding: 0;
}
/* ==== footer.css ==== */
/* Стили для футера */
.footer {
  position: relative;
  width: 100%;
  background-color: var(--main-color-light-opaque);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--main-color);
  padding: 12px 0;
  backdrop-filter: blur(5px);
  z-index: 1000;
  margin-top: auto;
  box-sizing: border-box;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
  font-family: Pompadur, 'site', cursive;
  flex-wrap: wrap;
}

/* Ссылки в футере */
.footer-link {
  color: var(--main-color);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  border-radius: 4px;
}

.footer-link:hover {
  transform: scale(1.08);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Кнопка доната - обновленная */
/* Кнопка доната - оранжевая иконка на синем фоне */
.donat-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark-opaque) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 auto 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.donat-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--main-color-light) 0%, var(--main-color) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.donat-btn:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 6px 15px rgba(32, 158, 217, 0.25);
}

.donat-btn:hover::before {
  opacity: 1;
}

.donat-btn:active {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 3px 8px rgba(32, 158, 217, 0.3);
}

.donat-btn svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.donat-btn:hover svg {
  transform: scale(1.1);
}

/* Эффект пульсации при наведении для доната */
.donat-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: scale(1);
  transition: all 0.4s ease;
}

.donat-btn:hover::after {
  opacity: 1;
  transform: scale(1.3);
}

/* Восстанавливаем оранжевые градиенты для Donation Alerts */
.donat-btn svg path {
  fill: url(#linearGradient-2) !important;
}

.donat-btn svg linearGradient#linearGradient-1 stop:first-child {
  stop-color: #FC8722 !important;
}

.donat-btn svg linearGradient#linearGradient-1 stop:last-child {
  stop-color: #F57507 !important;
}

.donat-btn svg linearGradient#linearGradient-2 stop:first-child {
  stop-color: #F59C07 !important;
}

.donat-btn svg linearGradient#linearGradient-2 stop:last-child {
  stop-color: #F57507 !important;
}

/* Контейнер для кнопок */
.footer-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
  .footer-buttons {
    gap: 10px;
  }
  
  .donat-btn {
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
  }
  
  .donat-btn svg {
    width: 18px;
    height: 18px;
  }
}
/* Кнопка телеграма */
.telegram-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark-opaque) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 auto 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.telegram-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--main-color-light) 0%, var(--main-color) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.telegram-btn:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 6px 15px rgba(32, 158, 217, 0.25);
}

.telegram-btn:hover::before {
  opacity: 1;
}

.telegram-btn:active {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 3px 8px rgba(32, 158, 217, 0.3);
}

.telegram-icon {
  width: 20px;
  height: 20px;
  fill: white;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.telegram-btn:hover .telegram-icon {
  transform: scale(1.1);
}

/* Эффект пульсации при наведении */
.telegram-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: scale(1);
  transition: all 0.4s ease;
}

.telegram-btn:hover::after {
  opacity: 1;
  transform: scale(1.3);
}

/* Контейнер для кнопок */
.footer-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
  .footer {
    padding: 10px 0;
  }
  
  .footer-links {
    gap: 16px;
    padding: 0 10px;
    margin-bottom: 12px;
  }
  
  .footer-link {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .footer-buttons {
    gap: 10px;
  }
  
  .donat-btn,
  .telegram-btn {
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
  }
  
  .donat-btn svg,
  .telegram-icon {
    width: 18px;
    height: 18px;
  }
}

/* Ночная тема */
body.night-theme .footer {
  background-color: rgba(0, 0, 0, 0.3);
}

body.night-theme .footer-link {
  color: var(--main-color);
}

body.night-theme .footer-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
/* ==== qq.css ==== */
@font-face {
      font-family: Pompadur;
      src: url(https://miraculous.cfd/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: var(--main-color);
    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: var(--main-color);
    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"],
.ep1 .image-loader img.ep_thumb_left[style*="display: none"] {
    display: none !important;
}

/* Стили для спиннера в image-loader */
.image-loader {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}

/* ===== Скелетон-заглушка для карточек серий (в т.ч. карточки «Все серии» .ep1) ===== */
.ep .image-loader,
.ep1 .image-loader {
    background: linear-gradient(135deg, var(--primary-950, #1a1025) 0%, var(--primary-900, #2b2140) 50%, var(--bg-color-dark, #2b2140) 100%);
    min-height: 96px;
}

.ep .image-loader::after,
.ep1 .image-loader::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 40%, rgba(255,190,240,0.14) 50%, rgba(255,255,255,0.06) 60%, transparent 100%);
    animation: ep-skeleton-shimmer 1.6s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes ep-skeleton-shimmer {
    100% { transform: translateX(100%); }
}

/* Плавное появление картинки после загрузки.
   ВАЖНО: никаких z-index на img — бейджи (.new-badge, .teaser-badge) имеют z-index:1
   и должны оставаться поверх изображения.
   Картинка всегда заполняет коробку целиком (object-fit: cover),
   чтобы заглушка не выглядывала из-за краёв постера */
.ep .image-loader img.ep_thumb_left,
.ep1 .image-loader img.ep_thumb_left {
    opacity: 0;
    transition: opacity .45s ease;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.ep .image-loader img.ep_thumb_left.img-loaded,
.ep1 .image-loader img.ep_thumb_left.img-loaded {
    opacity: 1;
}

/* После загрузки — убираем shimmer (::after больше не нужен) */
.ep .image-loader.img-done::after,
.ep1 .image-loader.img-done::after {
    display: none;
}

/* Плейсхолдер премьеры вместо картинки — shimmer не нужен */
.ep .image-loader:has(.premiere-placeholder)::after,
.ep1 .image-loader:has(.premiere-placeholder)::after {
    display: none;
}

.ep .image-loader img.ep_thumb_left.img-error,
.ep1 .image-loader img.ep_thumb_left.img-error {
    opacity: .25;
}

/* Ошибка загрузки — штриховка */
.ep .image-loader.img-load-error,
.ep1 .image-loader.img-load-error {
    background: repeating-linear-gradient(45deg, #2b2140, #2b2140 12px, #31254a 12px, #31254a 24px);
}

.ep .image-loader.img-load-error::after,
.ep1 .image-loader.img-load-error::after {
    display: none;
}

/* Уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .ep .image-loader::after,
    .ep1 .image-loader::after { animation: none; }
}

body.night-theme .premiere-placeholder-content {
  text-shadow: 2px 2px 3px rgba(78, 78, 78, 1);
}

/* ==== Футер прижат к низу страницы даже при коротком контенте ==== */
body {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
}
html {
    min-height: 100%;
}
