/* Responsive Design */

/* КРИТИЧЕСКОЕ: Принудительное удаление всех фонов у video-card */
.video-card,
.video-card *:not(.video-thumbnail):not(.video-thumbnail *):not(.video-badge):not(.video-badge *) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
}

/* ВАЖНО: Все медиа-запросы для адаптивности теперь в style.css */
/* Этот файл содержит только вспомогательные стили без конфликтов */

/* Landscape orientation for mobile */
@media (max-width: 560px) and (orientation: landscape) {
    .promo-banner {
        margin-top: 0;
        padding: 0.8rem 1rem;
    }
    
    .promo-content {
        flex-direction: row;
        text-align: left;
    }
    
    .main-content {
        margin-bottom: 60px;
    }
    
    .bottom-nav {
        padding: 0.2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .video-thumbnail img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header, .promo-banner, .nav-tabs, .bottom-nav, .modal {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .video-card {
        break-inside: avoid;
        box-shadow: none;
        border: none;
        background: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .spinner {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #ffffff;
        color: #e0e0e0;
    }
    
    .video-card, .profile-section, .phone-section, .account-section, .notification-card {
        background: none !important;
        color: #e0e0e0;
    }
    
    .profile-section, .phone-section, .account-section, .notification-card {
        background: #2d2d2d !important;
    }
    
    .nav-tabs {
        background: #2d2d2d;
        border-bottom-color: #444;
    }
    
    .nav-tab {
        color: #ccc;
    }
    
    .nav-tab.active {
        color: #4a9eff;
        border-bottom-color: #4a9eff;
    }
    
    .bottom-nav {
        background: #2d2d2d;
        border-top-color: #444;
    }
    
    .nav-item {
        color: #ccc;
    }
    
    .nav-item.active {
        color: #4a9eff;
    }
    
    .video-title {
        color: #e0e0e0;
    }
    
    .video-date {
        color: #aaa;
    }
    
    .section-header h3 {
        color: #e0e0e0;
    }
    
    .section-description {
        color: #aaa;
    }
}

/* Адаптивные стили для красивых бейджей */
@media (max-width: 768px) {
    .video-badge {
        top: 8px !important;
        left: 8px !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.7rem !important;
        border-radius: 35px !important;
    }
}

@media (max-width: 480px) {
    .video-badge {
        top: 6px !important;
        left: 6px !important;
        padding: 0.3rem 0.6rem !important;
        font-size: 0.65rem !important;
        border-radius: 30px !important;
    }
}
