/* Стили для блока ближайшей премьеры */
.next-premiere-section {
    max-width: 600px;
    padding: 0 15px;
    padding: 5px;
}

.next-premiere-item {
    /*! background: white; */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid var(--main-color);
}

.next-premiere-header {
    background-color: var(--main-color);
    padding: 15px 20px;
    text-align: center;
    color: white;
}

.next-premiere-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: lobster, 'lobster', cursive;
}

.next-premiere-content {
    padding: 20px;
    font-family: Pompadur, 'site', cursive;
}

.next-premiere-info {
    text-align: center;
}

.next-episode-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.next-episode-meta {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-weight: 500;
}

.next-premiere-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--bg-color-light);
    border-radius: 6px;
    display: inline-block;
}

.next-episode-language {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 15px;
    font-style: italic;
}

/* Стили для таймера */
.next-countdown-timer {
    margin: 20px 0;
}

.next-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.next-time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.next-time-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--main-color);
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.next-time-label {
    font-size: 0.9rem;
    color: var(--main-color);
    margin-top: 8px;
    font-weight: 500;
}

.countdown-ended {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
}

.timer-loading {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Ссылка на просмотр */
.next-premiere-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.next-premiere-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

/* Сообщения */
.no-premiere-message,
.error-message {
    text-align: center;
    padding: 30px 20px;
    color: #95a5a6;
    font-style: italic;
    font-size: 1.1rem;
}

.error-message {
    color: #e74c3c;
}

/* Ночная тема */
body.night-theme .next-premiere-item {
    /*! background-color: var(--bg-secondary); */
    border-color: var(--main-color);
}

body.night-theme .next-episode-title {
    color: var(--main-color);
}

body.night-theme .next-episode-meta,
body.night-theme .next-episode-language {
    color: #d4d4d4;
}

body.night-theme .next-time-value {
    background: rgba(255, 255, 255, 0.1);
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .next-premiere-section {
        margin: 15px auto;
        padding: 0 10px;
    }
    
    .next-premiere-header h3 {
        font-size: 1.1rem;
    }
    
    .next-episode-title {
        font-size: 1.1rem;
    }
    
    .next-countdown {
        gap: 10px;
    }
    
    .next-time-unit {
        min-width: 60px;
    }
    
    .next-time-value {
        font-size: 1.5rem;
        min-width: 50px;
        padding: 8px;
    }
    
    .next-time-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .next-countdown {
        gap: 8px;
    }
    
    .next-time-unit {
        min-width: 55px;
    }
    
    .next-time-value {
        font-size: 1.3rem;
        min-width: 45px;
        padding: 6px;
    }
}