/* --- DLE Расписание выхода аниме --- */
:root {
    --primary-orange: #f66600;
    --primary-blue: #060077;
    --white: #ffffff;
    --light-gray: #ffffff;
    --border-light: rgba(255, 255, 255, 0.15);
    --hover-orange: #ff8533;
    --active-gradient: linear-gradient(135deg, #f66600 0%, #ff8c42 100%);
}

* {
    color: #ffffff !important;
}

.main-title {
    margin: 0 0 35px;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.top-description {
    line-height: 1.6;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-date {
    margin: 35px 0;
    padding: 20px 0;
}

.calendar-date__list {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-orange) transparent;
}

.calendar-date__list::-webkit-scrollbar {
    height: 6px;
}

.calendar-date__list::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 3px;
}

.calendar-date__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    min-width: 70px;
}

.calendar-date__item:hover {
    transform: translateY(-2px);
}

.calendar-date__item-number {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 55px;
    width: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: 1.3em;
    font-weight: 600;
    color: #ffffff;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.calendar-date__item:hover .calendar-date__item-number {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-orange);
}

.calendar-date .calendar-date__item.calendar-date__active .calendar-date__item-number {
    background: var(--active-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(246, 102, 0, 0.4);
    transform: scale(1.05);
}

.calendar-date__item-day {
    margin-top: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.calendar-date__item.calendar-date__active .calendar-date__item-day {
    color: #ffffff;
    font-weight: 600;
}

.calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 45px;
}

.calendar__item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendar__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.calendar__item-weekday h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-orange);
    position: relative;
}

.calendar__item-weekday h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--active-gradient);
}

.calendar__item-anime {
    display: flex;
    align-items: center;
    padding: 15px 0;
    margin: 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    padding-left: 15px;
    padding-right: 15px;
}

.calendar__item-anime:hover {
    background: rgba(255, 255, 255, 0.08);
}

.calendar__item-anime:last-of-type {
    border-bottom: none;
}

.calendar__item-number {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(246, 102, 0, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    position: static;
    margin-right: 12px;
}

.calendar__item-img {
    margin-right: 15px;
    width: 45px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.calendar__item-img:hover {
    transform: scale(1.05);
}

.calendar__item-img img {
    display: block;
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease;
}

.calendar__item-names {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding-right: 15px;
}

.calendar__item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.calendar__item-name:hover {
    color: #ffffff;
}

.calendar__item-english-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.3;
    color: #ffffff;
    opacity: 0.9;
}

.calendar__item-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.calendar__item-episode {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.calendar__item-serie {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.calendar__item-time {
    font-size: 11px;
    color: #ffffff;
    opacity: 0.8;
}

.calendar__item-bookmark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    height: 32px;
    width: 32px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.calendar__item-bookmark:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: scale(1.1);
}

.watchlist_btn_success .calendar__item-bookmark {
    background: var(--active-gradient);
    border-color: var(--primary-orange);
}

.watchlist_btn_success i {
    color: #ffffff;
}

.show-more-schedules {
    cursor: pointer;
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    padding: 15px;
    margin-top: 20px;
    border-radius: 10px;
    background: rgba(246, 102, 0, 0.1);
    border: 1px solid rgba(246, 102, 0, 0.3);
    transition: all 0.3s ease;
}

.show-more-schedules:hover {
    background: rgba(246, 102, 0, 0.2);
    transform: translateY(-2px);
}

.calendar-date__item-day1 {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 5px;
}

.calendar-date__item-month1 {
    color: #ffffff;
    font-size: 0.85em;
}

.calendar__item-date {
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 1.23;
    color: #ffffff;
}

.calendar__item-day {
    font-size: 24px;
    font-weight: 500;
    font-family: 'Domine', serif;
    color: #ffffff;
}

.calendar__item-month {
    font-size: 13px;
    color: #ffffff;
}

.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: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    margin-right: 8px;
    color: #ffffff;
}

.calendar-date__item1:last-of-type {
    margin-right: 0;
}

.calendar-date__item1:hover {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.calendar-active {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-active .calendar-date__item-day1 {
    color: #ffffff;
    font-weight: 600;
}

.calendar-date__item-number {
    color: #ffffff !important;
}

.calendar-date .calendar-date__item.calendar-date__active .calendar-date__item-number {
    color: #ffffff !important;
}

.calendar__item-name:hover {
    color: #ffffff !important;
}

/* Темная тема улучшения */
.dark .calendar__item {
    background: rgba(30, 30, 40, 0.7);
}

.dark .calendar__item-anime:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dark .calendar__item-name,
.dark .calendar-date__item-day1 {
    color: #ffffff;
}

.dark .calendar__item-english-name {
    color: #ffffff;
}

.dark .calendar__item-bookmark {
    background: hsla(240, 5%, 48%, 0.1);
    border-color: #2d3236;
}

.dark .calendar-date__item1 {
    background-color: hsl(240deg 1% 16%);
    color: #ffffff;
    opacity: 1;
}

.dark .calendar-date__item-month1 {
    color: #ffffff;
}

.dark .main-title {
    color: #ffffff;
}

.dark .calendar-date__item1:hover {
    border-color: #2d3236;
}

.dark .calendar-active .calendar-date__item-day1,
.dark .calendar__item-name,
.dark .top-description {
    color: #ffffff;
}

.dark .calendar__item-weekday h3 {
    color: #ffffff;
}

.dark .calendar__item-bookmark {
    background: hsla(240, 5%, 48%, 0.1);
    border-color: #2d3236;
}

/* Адаптивность */
@media only screen and (max-width: 1024px) {
    .calendar {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calendar__item {
        padding: 18px;
    }
}

@media only screen and (max-width: 768px) {
    .main-title {
        font-size: 36px;
        margin-bottom: 25px;
    }
    
    .calendar-date__list {
        gap: 12px;
    }
    
    .calendar-date__item-number {
        height: 50px;
        width: 50px;
        font-size: 1.2em;
    }
    
    .calendar__item-info {
        gap: 15px;
    }
    
    .calendar__item-bookmark {
        height: 30px;
        width: 30px;
    }
}

@media only screen and (max-width: 480px) {
    .main-title {
        font-size: 28px;
    }
    
    .calendar__item {
        padding: 15px;
        border-radius: 12px;
    }
    
    .calendar__item-anime {
        padding: 12px 10px;
    }
    
    .calendar__item-img {
        width: 40px;
        height: 60px;
        margin-right: 12px;
    }
    
    .calendar__item-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }
    
    .calendar__item-episode {
        align-items: flex-end;
    }
}

@media only screen and (max-width: 360px) {
    .calendar__item-names {
        padding-right: 10px;
    }
    
    .calendar__item-name {
        font-size: 13px;
    }
    
    .calendar__item-english-name {
        font-size: 11px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar__item-anime {
    animation: fadeInUp 0.4s ease forwards;
}

.calendar__item-anime:nth-child(odd) {
    animation-delay: 0.1s;
}

.calendar__item-anime:nth-child(even) {
    animation-delay: 0.2s;
}

/* Гарантия белого цвета для всех текстовых элементов */
body, div, span, h1, h2, h3, h4, h5, h6, p, a, li, td, th, input, textarea, select, button, label {
    color: #ffffff !important;
}

/* Особое внимание для псевдоэлементов */
::placeholder {
    color: #ffffff !important;
    opacity: 0.7;
}

::-webkit-input-placeholder {
    color: #ffffff !important;
    opacity: 0.7;
}

::-moz-placeholder {
    color: #ffffff !important;
    opacity: 0.7;
}

:-ms-input-placeholder {
    color: #ffffff !important;
    opacity: 0.7;
}