/* ============================================
   ТЕМНАЯ ТЕМА - ОСНОВНЫЕ СТИЛИ
   ============================================ */

body.dark-theme {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --secondary: #2563eb;
    --accent: #dc2626;
    --dark: #f8fafc;
    --light: #1e293b;
    --text: #cbd5e1;
    --background: #0f172a;
    --border: #475569;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --header-bg: #1e293b;
    --error: #dc2626;
    
    background: #0f172a !important;
    background-color: #0f172a !important;
    background-image: none !important;
    color: #cbd5e1 !important;
}

/* Шапка */
body.dark-theme header {
    background: #1e293b !important;
    border-bottom-color: #475569 !important;
}

/* Подвал */
body.dark-theme footer {
    background: #0f172a !important;
    border-top: 1px solid #1e293b !important;
}

body.dark-theme .footer-column ul li a,
body.dark-theme .footer-description,
body.dark-theme .copyright {
    color: #cbd5e1 !important;
}

body.dark-theme .footer-column ul li a:hover {
    color: #ffffff !important;
}

body.dark-theme .social-icons a {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .social-icons a:hover {
    background: #dc2626 !important;
}

body.dark-theme .footer-column h3 {
    color: #f8fafc !important;
    border-bottom-color: #dc2626 !important;
}

body.dark-theme .footer-brand-subtext {
    color: #dc2626 !important;
}

/* Заголовки */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme .section-title,
body.dark-theme .hero-content h1,
body.dark-theme .character-text h2,
body.dark-theme .banner-header h3,
body.dark-theme .stream-header h2,
body.dark-theme .offline-content h2,
body.dark-theme .modal-header h3,
body.dark-theme .brand-main,
body.dark-theme .footer-brand-text {
    color: #f8fafc !important;
}

/* Основной текст */
body.dark-theme p,
body.dark-theme .hero-content p,
body.dark-theme .character-text p,
body.dark-theme .banner-header p,
body.dark-theme .stream-header p,
body.dark-theme .offline-content p,
body.dark-theme .stream-info p,
body.dark-theme .feature-card p {
    color: #cbd5e1 !important;
}

/* Время */
body.dark-theme .time-value,
body.dark-theme .hero-time-value {
    color: #dc2626 !important;
}

body.dark-theme .real-time .time-value,
body.dark-theme .hero-real-time .hero-time-value {
    color: #2563eb !important;
}

/* Карточки и блоки */
body.dark-theme .feature-card,
body.dark-theme .benefit,
body.dark-theme .stream-info,
body.dark-theme .schedule-info,
body.dark-theme .stream-chat,
body.dark-theme .time-item,
body.dark-theme .hero-time-item,
body.dark-theme .community-banner,
body.dark-theme .highlight {
    background: #1e293b !important;
    border-color: #475569 !important;
}

/* Кнопка "Перейти на канал" */
body.dark-theme .go-to-channel-btn {
    background: #000000 !important;
    background-color: #000000 !important;
    border: 2px solid #e11d48 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8) !important;
}

body.dark-theme .go-to-channel-btn .channel-link {
    color: #ffffff !important;
}

body.dark-theme .go-to-channel-btn .channel-link:hover {
    color: #ff6b6b !important;
}

body.dark-theme .go-to-channel-btn .channel-icon {
    background: #e11d48 !important;
    color: white !important;
}

body.dark-theme .go-to-channel-btn .hide-btn {
    background: #333333 !important;
    color: white !important;
}

body.dark-theme .go-to-channel-btn .hide-btn:hover {
    background: #e11d48 !important;
}

/* Плеер */
body.dark-theme .floating-player {
    background: #1e1e2f !important;
}

body.dark-theme .platform-player {
    background: #000000 !important;
}

body.dark-theme .player-content {
    background: #000000 !important;
}

body.dark-theme .player-header,
body.dark-theme .player-footer {
    background: #2d2d44 !important;
}

/* Модальные окна - ИСПРАВЛЕНО: красный заголовок заменен на #4a5568 */
body.dark-theme .modal {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

body.dark-theme .modal-content {
    background: #1e293b !important;
}

body.dark-theme .modal-header {
    background: #4a5568 !important; /* Изменено с dc2626 на 4a5568 */
    border-bottom-color: #475569 !important;
}

body.dark-theme .modal-header h3 {
    color: #ffffff !important;
}

body.dark-theme .close-modal {
    color: #ffffff !important;
}

body.dark-theme .form-group label {
    color: #f8fafc !important;
}

/* Таблицы */
body.dark-theme table,
body.dark-theme .points-table,
body.dark-theme .records-table {
    background: #1e293b !important;
    border-color: #475569 !important;
}

body.dark-theme table th {
    background: #1b5e20;
    color: #fff;
    border-bottom: 2px solid rgba(76, 175, 80, 0.3);
}

body.dark-theme table td {
    background: transparent;
    color: #c0c4d0;
    font-size: 14px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

body.dark-theme table tr:nth-child(even) td {
    background: transparent;
}

/* Формы */
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #94a3b8 !important;
}

/* Кнопки */
body.dark-theme .submit-btn,
body.dark-theme .notify-btn,
body.dark-theme .fallback-btn {
    background: #dc2626 !important;
    color: #ffffff !important;
}

body.dark-theme .submit-btn:hover,
body.dark-theme .notify-btn:hover,
body.dark-theme .fallback-btn:hover {
    background: #b91c1c !important;
}

body.dark-theme .youtube-btn {
    background: #dc2626 !important;
    color: white !important;
}

/* Активные кнопки меню */
body.dark-theme nav ul li a.active,
body.dark-theme .mobile-nav ul li a.active {
    background: #dc2626 !important;
    color: #ffffff !important;
}

/* Мобильное меню */
body.dark-theme .mobile-nav {
    background: #1e293b !important;
}

body.dark-theme .mobile-nav ul li a {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

body.dark-theme .mobile-nav ul li a:hover,
body.dark-theme .mobile-nav ul li a.active {
    background: #dc2626 !important;
    color: white !important;
}

@media (max-width: 768px) {
    body.dark-theme .mobile-menu-toggle {
        background: #1e293b !important;
        border-color: #475569 !important;
        color: #cbd5e1 !important;
    }
    
    body.dark-theme .mobile-nav-close {
        background: #1e293b !important;
        color: #cbd5e1 !important;
    }
}

/* Плавные переходы */
body.dark-theme * {
    transition: background-color 0.3s ease, 
                border-color 0.3s ease, 
                color 0.3s ease,
                box-shadow 0.3s ease;
}