/* --- DLE Расписание выхода аниме --- */
.main-title {
    margin: 0 0 30px;
    font-size: 40px;
}
.top-description {
    line-height: 22px;
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
}
.calendar-date {
    margin-top: 30px;
    margin-bottom: 30px;
}
.calendar-date__list {
    display: flex;
    overflow-y: auto;
}
.calendar-date__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 30px;
    cursor: pointer;
}
.calendar-date__item-number {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    background-color: #f2f2f2;
    font-size: 1.4em;
    color: #1f1f1fab;
}
.calendar-date__item:nth-child(odd) .calendar-date__item-number {
    background-color: #e8e8e8ba;
}
.calendar-date .calendar-date__item.calendar-date__active .calendar-date__item-number {
    color: #f60;
    background-color: rgba(255,102,0,0.08);
    font-weight: 500;
}
.calendar-date .calendar-date__item.calendar-date__active .calendar-date__item-day {
    font-weight: 500;
}
.calendar-date__item-day {
    margin-top: 10px;
    color: rgba(31,31,31,.5);
}
.calendar-date__item:last-of-type {
    margin-right: 0;
}
.calendar-full .calendar__item {
    flex: 0 0 100%;
    max-width: 100%;
}
.calendar-date__item1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 0 123px;
    height: 70px;
    padding: 10px;
    border-radius: 5px;
    background-color: #f2f2f2;
    cursor: pointer;
    margin-right: 8px;
}
.calendar-date__item1:last-of-type {
    margin-right: 0px;
}
.calendar-date__item1:hover {
    border: 1px solid rgba(0,0,0,0.2);
}
.calendar-active {
    border: 1px solid rgba(0,0,0,0.05);
}
.calendar-active .calendar-date__item-day1 {
    color: #1f1f1f;
}
.calendar-date__item-day1 {
    color: #777;
    font-weight: 500;
    margin-bottom: 5px;
}
.calendar-date__item-month1 {
    color: rgba(31,31,31,.5);
    font-size: 0.85em;
}
.calendar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    width: unset!important;
    text-align: unset!important;
}
.calendar__item {
    flex: 0 0 48%;
    margin-right: 15px;
    max-width: 48%;
}
.visible-calendar {
    border-bottom: solid 1px transparent;
}
.calendar__item-anime:last-of-type {
    border-bottom: none;
}
.calendar__item-number {
    opacity: 0.4;
    font-size: 14px;
    line-height: 1.29;
    color: #1f1f1f;
    margin-right: 5px;
    position: absolute;
    top: 5px;
    left: -25px;
}
.calendar__item-img  {
    margin-right: 10px;
    width: 75px;
    height: 110px;
    flex-shrink: 0;
}
.calendar__item-img img {
    display: block;
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 5px;
    border: 1px solid;
}
.calendar__item-names {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    padding-right: 20px;
    margin-right: auto;
    overflow: hidden;
    padding-top: 8px;
    flex-shrink: 2;
}
.calendar__item-date {
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 1.23;
    color: #797979;
}
.calendar__item-episode {
    display: flex;
    flex-direction: column;
    margin-right: 40px;
    text-align: right;
}
.calendar__item-serie {
    font-size: 15px;
    font-weight: 500;
    color: #797979;
}
.calendar__item-time {
    line-height: 1.23;
    color: #797979;
    font-size: 13px;
    margin-top: 5px;
}
.calendar__item-day {
    font-size: 24px;
    font-weight: 500;
    font-family: 'Domine', serif;
}
.calendar__item-month {
    font-size: 13px;
}
.calendar__item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #060077;
    text-decoration: none;
    font-size: 14px;
    line-height: 16px;
    -webkit-transition: color 0.1s ease;
    transition: color 0.1s ease;
    white-space: pre-wrap;
}
.calendar__item-name:hover {
    color: #FF2488;
}
.calendar__item-english-name {
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.38;
    color: rgb(12 12 12 / 70%);
    white-space: pre-wrap;
}
.calendar__item-bookmark,
.top-users__send-msg {
    background-color: #f4f4f4;
    height: 30px;
    width: 30px;
    color: #f66600;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    border: 1px solid #cccccc7a;
    margin-left: 40px;
    cursor: pointer;
    flex-shrink: 0;
}
.calendar__item-weekday h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
    text-decoration: none;
    -webkit-transition: color 0.1s ease;
    transition: color 0.1s ease;
    margin: 7px 0;
}
@media only screen and (max-width:768px){
    .calendar__item {
        max-width: 100%;
    }
    .main-extra-block__shedule-list-container
    .calendar__item:last-of-type {
        width: auto !important;
    }
    .calendar__item-bookmark {
        margin-left: 30px;
    }
    .calendar__item {
        flex: 0 0 100%;
        max-width: 100%;
    }
	.wblock {padding:unset}
    .calendar__item-anime {margin-left:unset;}
}
@media only screen and (max-width:480px){
    .calendar__item-date {
        display: none;
    }
}
@media only screen and (max-width:380px){
    .calendar__item-episode {
        margin-right: 20px;
    }
}
@media only screen and (max-width:360px){
    .calendar__item-episode {
        margin-right: 10px;
    }
}
.watchlist_btn_success .far.fa-bookmark {
    font-weight: 900;
}
.watchlist_btn_success i {
    color: #f60;
}
/* --- Календарь на главной --- */

.calendar__item-anime {
    display: flex;
    padding-bottom: 12px;
    margin-top: 12px;
    border-bottom: solid 1px rgba(52,47,144,0.1);
    align-items: center;
    position: relative;
    margin-left: 25px;
}
.show-more-schedules {
    cursor: pointer;
    color: rgba(31,31,31,.5);
}
.watchlist_btn_success i {
    color: #f60;
    font-weight: 900;
}
@media only screen and (max-width:768px){
    .calendar__item {
        max-width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .calendar__item:last-of-type {
        display: none;
    }
    .calendar__item-bookmark {
        margin-left: 30px;
    }
}

/* =====================================================================
   ani-media 2026-09-12 — редизайн блока расписания (заменяет правки 07.08).

   ⚠️ Тёмная тема сайта — это класс .night, а НЕ .dark. Правила «.dark ...»,
   доставшиеся от исходной темы плагина, удалены как мёртвый код: они не
   применялись никогда, отсюда и блёклый вид тёмной темы.

   Палитра из styles.css: фон #1b2935, карточки #16242f, границы #2a3947,
   акцент #29b7d8. Ссылки: кримсон в светлой теме, бирюза в тёмной.

   ⚠️ .main-title и .top-description здесь НЕ переопределяются по размеру:
   этот файл подключается и на главной, а классы общие — правка утекла бы
   за пределы расписания.

   ⚠️ Файл отдаётся через минификатор /engine/classes/min/ — после правки
   чистить engine/cache и проверять БАНДЛ, а не сам файл.

   ⚠️ Иконка часов задана через width/height, без viewBox: так SVG в data-URI
   переживает любой обработчик на пути (минификатор, нормализаторы разметки).
   ===================================================================== */

:root {
    --sch-accent:      #dc143c;            /* кримсон — светлая тема */
    --sch-accent-hover:#a50f2d;
    --sch-accent-soft: rgba(220, 20, 60, .09);
    --sch-accent-line: rgba(220, 20, 60, .38);
    --sch-card:        #ffffff;
    --sch-card-alt:    #f8f9fb;
    --sch-chip:        #f1f3f6;
    --sch-row-alt:     rgba(15, 23, 42, .022);
    --sch-border:      #e5e8ec;
    --sch-border-soft: rgba(15, 23, 42, .07);
    --sch-text:        #151a21;
    --sch-title:       #1f2937;
    --sch-muted:       #6b7280;
    --sch-shadow:      0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px -14px rgba(16, 24, 40, .22);
    --sch-clock:       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.night {
    --sch-accent:      #29b7d8;            /* бирюза — тёмная тема */
    --sch-accent-hover:#5fd2ec;
    --sch-accent-soft: rgba(41, 183, 216, .13);
    --sch-accent-line: rgba(41, 183, 216, .42);
    --sch-card:        #16242f;
    --sch-card-alt:    #1b2935;
    --sch-chip:        #1e2e3b;
    --sch-row-alt:     rgba(255, 255, 255, .025);
    --sch-border:      #2a3947;
    --sch-border-soft: rgba(255, 255, 255, .07);
    --sch-text:        #e6eef5;
    --sch-title:       #f1f6fa;
    --sch-muted:       #8fa2b0;
    --sch-shadow:      0 1px 2px rgba(0, 0, 0, .34), 0 12px 30px -16px rgba(0, 0, 0, .7);
    --sch-clock:       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%238fa2b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.top-description { color: var(--sch-muted); }
.night .main-title { color: #fff; }

/* --- Лента дней недели --- */
.calendar-date__list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    /* padding-top обязателен: у ленты overflow:auto, без него подъём кнопки
       при наведении обрезается верхней границей скролл-бокса */
    padding: 6px 2px 10px;
    scrollbar-width: thin;
}
.calendar-date__item1 {
    position: relative;
    flex: 0 0 126px;
    height: auto;
    min-height: 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-right: 0;
    padding: 11px 10px;
    overflow: hidden;
    background-color: var(--sch-card);
    border: 1px solid var(--sch-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease,
                transform .16s ease, box-shadow .16s ease;
}
.calendar-date__item1:hover {
    border: 1px solid var(--sch-accent-line);
    transform: translateY(-2px);
    box-shadow: var(--sch-shadow);
}
.calendar-date__item1.calendar-active {
    background-color: var(--sch-accent-soft);
    border: 1px solid var(--sch-accent);
}
.calendar-date__item1.calendar-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background-color: var(--sch-accent);
}
.calendar-date__item-day1 {
    margin-bottom: 0;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--sch-muted);
}
.calendar-date__item1.calendar-active .calendar-date__item-day1 { color: var(--sch-accent); }
.calendar-date__item-month1 { font-size: 13px; color: var(--sch-muted); }
.calendar-date__item1.calendar-active .calendar-date__item-month1 {
    color: var(--sch-text);
    font-weight: 600;
}

/* --- Карточка-подложка списка --- */
.calendar__item {
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0;
    padding: 8px 12px 10px;
    background-color: var(--sch-card);
    border: 1px solid var(--sch-border);
    border-radius: 16px;
    box-shadow: var(--sch-shadow);
}
.calendar-full .calendar__item { margin-right: 0; }

/* --- Строка тайтла --- */
.calendar__item-anime {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 12px 14px 12px 48px;
    border: 0;
    border-radius: 12px;
    transition: background-color .16s ease;
}
.calendar__item-anime:nth-child(even) { background-color: var(--sch-row-alt); }
.calendar__item-anime::after {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background-color: transparent;
    transition: background-color .16s ease;
}
.calendar__item-anime:hover { background-color: var(--sch-accent-soft); }
.calendar__item-anime:hover::after { background-color: var(--sch-accent); }
.calendar__item-anime:last-of-type { border-bottom: none; }

.calendar .calendar__item-number {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    margin: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--sch-muted);
    opacity: .6;
}

/* --- Постер --- */
.calendar .calendar__item-img {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 78px;
    height: 112px;
    margin-right: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .16);
}
.night .calendar .calendar__item-img { box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.calendar .calendar__item-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: 10px;
    transition: transform .28s ease;
}
.calendar__item-anime:hover .calendar__item-img img { transform: scale(1.06); }

/* --- Названия --- */
.calendar__item-names {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    margin-right: auto;
    padding: 0 18px 0 0;
    overflow: hidden;
    background: transparent;
}
.calendar .calendar__item-names { flex: 1 1 auto; }
.calendar .calendar__item-name,
.calendar a.calendar__item-name:link,
.calendar a.calendar__item-name:visited {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.32;
    color: var(--sch-accent);
    text-decoration: none;
    white-space: normal;
    transition: color .16s ease;
}
.calendar .calendar__item-name:hover,
.calendar a.calendar__item-name:hover { color: var(--sch-accent-hover); }
.calendar .calendar__item-english-name {
    overflow: hidden;
    margin-top: 0;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--sch-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    background: transparent;
}

/* --- Серия и время --- */
.calendar__item-episode {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    margin-right: 24px;
    text-align: right;
    background: transparent;
}
.calendar__item-serie {
    padding: 4px 11px;
    border: 1px solid var(--sch-border-soft);
    border-radius: 999px;
    background-color: var(--sch-chip);
    font-size: 13px;
    font-weight: 600;
    color: var(--sch-text);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.calendar__item-time {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 0;
    font-size: 12.5px;
    line-height: 1;
    color: var(--sch-muted);
    font-variant-numeric: tabular-nums;
}
.calendar__item-time::before {
    content: "";
    /* flex:0 0 13px обязателен: иначе в узкой строке flex сплющивает иконку */
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    background: var(--sch-clock) center / 13px 13px no-repeat;
    opacity: .8;
}

/* --- Дата --- */
.calendar__item-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    min-width: 58px;
    padding: 4px 0;
    border-left: 1px solid var(--sch-border-soft);
    color: var(--sch-muted);
    line-height: 1.1;
}
.calendar__item-day {
    font-family: inherit;
    font-size: 21px;
    font-weight: 700;
    color: var(--sch-text);
    font-variant-numeric: tabular-nums;
}
.calendar__item-month {
    font-size: 10.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--sch-muted);
}
.calendar__item-weekday h3 { color: var(--sch-text); }

/* --- Кнопка «в список» --- */
.calendar__item-bookmark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin-left: 18px;
    margin-right: 2px;
    border: 1px solid var(--sch-border);
    border-radius: 50%;
    background-color: var(--sch-card-alt);
    color: var(--sch-muted);
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease,
                background-color .16s ease, transform .16s ease;
}
.calendar__item-bookmark:hover {
    border-color: var(--sch-accent);
    color: var(--sch-accent);
    background-color: var(--sch-accent-soft);
    transform: scale(1.07);
}
/* SVG нарисован обводкой, цвет наследуется от кнопки через currentColor */
.calendar__item-bookmark svg { display: block; width: 17px; height: 17px; }
.calendar__item-bookmark svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: fill .16s ease, stroke .16s ease;
}
/* Уже в списке — заливаем акцентом, чтобы состояние читалось с одного взгляда */
.watchlist_btn_success {
    color: var(--sch-accent);
    border-color: var(--sch-accent);
    background-color: var(--sch-accent-soft);
}
.watchlist_btn_success svg path { fill: currentColor; stroke: currentColor; }
.watchlist_btn_success i { color: var(--sch-accent); font-weight: 900; }

/* --- Адаптив --------------------------------------------------------
   ⚠️ Блок с названием — единственный гибкий элемент строки (у остальных
   flex-shrink:0), поэтому на узком экране сжимается именно он и может
   схлопнуться в ноль. Чтобы название не исчезало, на малых ширинах
   убираем колонку даты (в базовой части плагина это делал медиазапрос,
   но правила ниже по файлу его перебивали) и поджимаем отступы.
   -------------------------------------------------------------------- */
@media only screen and (max-width: 768px) {
    .calendar__item { padding: 6px 8px 8px; }
    .calendar__item-anime { padding: 10px 8px 10px 40px; }
    .calendar .calendar__item-number { left: 8px; width: 22px; }
    .calendar__item-episode { margin-right: 14px; }
    .calendar__item-bookmark { margin-left: 12px; margin-right: 0; }
    .calendar-date__item1 { flex: 0 0 104px; }
    .calendar .calendar__item-names { padding-right: 12px; }
}
@media only screen and (max-width: 560px) {
    /* дата уходит: её место нужнее названию */
    .calendar__item-date { display: none; }
    .calendar__item-episode { margin-right: 10px; }
}
@media only screen and (max-width: 480px) {
    .calendar .calendar__item-img { width: 62px; height: 90px; margin-right: 11px; }
    .calendar .calendar__item-name { font-size: 14px; }
    .calendar .calendar__item-names { padding-right: 8px; }
    .calendar__item-anime { padding-left: 34px; }
    .calendar .calendar__item-number { left: 6px; width: 20px; font-size: 12px; }
    .calendar__item-serie { padding: 3px 9px; font-size: 12.5px; }
    .calendar__item-bookmark { width: 30px; height: 30px; margin-left: 8px; }
}

/* --- Разбор конфликта со styles.css -----------------------------------
   templates/Anime/css/styles.css подключается ПОСЛЕ бандла минификатора и
   содержит дубли правил расписания (.calendar__item-img / -number / -name /
   -english-name и др.). При равной весомости побеждал он — поэтому выше
   селекторы привязаны к контейнеру .calendar.
   ⚠️ Если дубли из styles.css когда-нибудь уберут, подпорки можно упростить.
   -------------------------------------------------------------------- */
.calendar .calendar__item-names a { margin-bottom: 0; }
/* в styles.css цвет задан через !important — иначе не перебить */
.night .calendar .calendar__item-english-name { color: var(--sch-muted) !important; }
/* чужой hover-фильтр насыщенности конфликтует с нашим мягким зумом */
.calendar .calendar__item-img img:hover { filter: none; }

/* --- Расписание как вход на сайт (17.09.2026) ------------------------------
   Главная в Яндексе убрана из выдачи, и по запросу «анимедия» он показывает эту
   страницу (16 тыс. показов за 2 недели при CTR 0,5 %). Человек ищет сайт, а не
   таблицу, поэтому над расписанием стоит блок переходов в основные разделы.
   -------------------------------------------------------------------------- */
.sch-hello { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.sch-hello a,
.sch-hello a:link,
.sch-hello a:visited {
    padding: 8px 14px;
    border: 1px solid var(--sch-border);
    border-radius: 999px;
    background-color: var(--sch-card);
    color: var(--sch-text);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.sch-hello a:hover { border-color: var(--sch-accent); color: var(--sch-accent); background-color: var(--sch-accent-soft); }
@media only screen and (max-width: 600px) {
    .sch-hello { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
    .sch-hello a { flex: 0 0 auto; white-space: nowrap; }
}

/* --- Лента «Новые серии» на странице расписания (engine/mods/schedule-fresh.php) --- */
.sf-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; margin: 0 0 34px; }
.sf-card, .sf-card:link, .sf-card:visited { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--sch-text); text-decoration: none; }
.sf-card__img { position: relative; display: block; aspect-ratio: 218 / 298; overflow: hidden; border-radius: 10px; background-color: var(--sch-card-alt); box-shadow: 0 1px 3px rgba(16, 24, 40, .16); }
.sf-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.sf-card:hover .sf-card__img img { transform: scale(1.05); }
.sf-card__img i { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background-color: rgba(10, 14, 20, .78); color: #fff; font-style: normal; font-size: 12px; font-weight: 600; line-height: 1.3; }
.sf-card__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 500; line-height: 1.3; transition: color .16s ease; }
.sf-card:hover .sf-card__t { color: var(--sch-accent); }
@media only screen and (max-width: 1000px) { .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media only screen and (max-width: 600px)  { .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; } .sf-card__t { font-size: 12.5px; } }
