/* === БАЗА === */
.rounded-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rounded-list li {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #3498db;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
    line-height: 1.6;
}

.rounded-list li i {
    color: #3498db;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.rounded-list li b {
    color: #333;
    white-space: nowrap;
}

#highlight-area {
    padding: 10px;
    border-radius: 10px;
    background: #fff;
}

/* === ЦВЕТНЫЕ АКЦЕНТЫ === */
.info-version { color: #2b9be3; font-weight: 700; }
.info-size { color: #e67e23; font-weight: 700; }
.info-edit { color: #e74c3c; font-weight: 600; }

/* === ТЕГИ (УНИВЕРСАЛЬНЫЕ) === */
.info-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0;
}

.info-tags a,
.info-tags .info-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    background: linear-gradient(135deg, #667eea, #5a67d8);
    min-height: 26px;
    box-sizing: border-box;
}

.info-tags a:hover,
.info-tags .info-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    text-decoration: none !important;
}

/* --- Цвета по типу поля --- */
.fa-calendar-days ~ .info-tags a,
.fa-calendar-days ~ .info-tags .info-tag { background: linear-gradient(135deg, #34495e, #2c3e50); }

.fa-list ~ .info-tags a,
.fa-list ~ .info-tags .info-tag { background: linear-gradient(135deg, #3498db, #2980b9); }

.fa-layer-group ~ .info-tags a,
.fa-layer-group ~ .info-tags .info-tag { background: linear-gradient(135deg, #27ae60, #1e8449); }

.fa-person-shelter ~ .info-tags a,
.fa-person-shelter ~ .info-tags .info-tag { background: linear-gradient(135deg, #1abc9c, #16a085); }

.fa-arrows-to-dot ~ .info-tags a,
.fa-arrows-to-dot ~ .info-tags .info-tag { background: linear-gradient(135deg, #5c6bc0, #3f51b5); }

.fa-language ~ .info-tags a,
.fa-language ~ .info-tags .info-tag { background: linear-gradient(135deg, #e67e22, #d35400); }

.fa-microphone ~ .info-tags a,
.fa-microphone ~ .info-tags .info-tag { background: linear-gradient(135deg, #e74c3c, #c0392b); }

.fa-tags ~ .info-tags a,
.fa-tags ~ .info-tags .info-tag { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

/* === РУССКИЙ ЯЗЫК (СПЕЦИАЛЬНЫЙ ТЕГ) === */
.info-tag--russian,
.info-tags a.info-tag--russian {
    background: linear-gradient(135deg, #c0392b, #e74c3c) !important;
    cursor: help;
    position: relative;
    animation: rus-glow 2s ease-in-out infinite;
}

.info-tag--russian::before { content: "🇷🇺 "; font-size: 0.85em; }

.info-tag--russian:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(231,76,60,0.6) !important;
}

@keyframes rus-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(231,76,60,0.3); }
    50% { box-shadow: 0 0 15px rgba(231,76,60,0.5); }
}

/* Тултип для русского */
.info-tag--russian[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #2c3e50;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    pointer-events: none;
}

.info-tag--russian[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* === ЗАЛИТО НА === */
.upload-sources {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 12px !important;
}

.upload-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 6px;
}

.upload-tag {
    display: inline-block;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff !important;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.82em;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.upload-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155,89,182,0.4);
}

/* === РЕЙТИНГ (ИСПРАВЛЕННЫЙ) === */
.emp-rating {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px auto;
    max-width: 280px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.emp-rating__title { margin-bottom: 12px; }
.emp-rating__title b { color: #2c3e50; font-size: 1.05em; }

.emp-rating__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.emp-rating__btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border: 2px solid transparent;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1em;
    min-width: 70px;
    min-height: 40px;
    margin: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 1;
}

.emp-rating__btn * {
    text-decoration: none !important;
    border: none !important;
    background: none !important;
}

.emp-rating__btn--like {
    color: #27ae60;
    border-color: #d4edda;
}

.emp-rating__btn--like:hover {
    border-color: #27ae60;
    background: #eafaf1;
    transform: scale(1.05);
}

.emp-rating__btn--dislike {
    color: #e74c3c;
    border-color: #f8d7da;
}

.emp-rating__btn--dislike:hover {
    border-color: #e74c3c;
    background: #fdedec;
    transform: scale(1.05);
}

.emp-rating__score {
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    min-width: 40px;
}

.emp-rating__count {
    font-weight: 600;
    font-size: 0.9em;
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
    .rounded-list li {
        padding: 7px 10px;
        font-size: 0.88em;
    }
    
    .info-tags a,
    .info-tags .info-tag {
        padding: 3px 9px;
        font-size: 0.78rem !important;
        min-height: 24px;
    }
    
    .upload-tag {
        padding: 3px 8px;
        font-size: 0.78em;
    }
    
    .emp-rating { padding: 12px 15px; }
    .emp-rating__btn { padding: 6px 10px; min-width: 60px; font-size: 1em; }
    .emp-rating__score { font-size: 1.2em; }
    
    .info-tag--russian[data-tooltip]::after {
        font-size: 0.68rem;
        padding: 6px 10px;
        max-width: 180px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .rounded-list li {
        padding: 6px 8px;
        font-size: 0.82em;
        border-left-width: 2px;
    }
    
    .rounded-list li i { width: 16px; font-size: 0.85em; }
    
    .info-tags a,
    .info-tags .info-tag {
        padding: 2px 7px;
        font-size: 0.72rem !important;
        border-radius: 12px;
        min-height: 22px;
    }
    
    .upload-tag {
        padding: 2px 6px;
        font-size: 0.72em;
        border-radius: 10px;
    }
    
    .upload-tags { gap: 4px; }
    .upload-sources { padding: 8px !important; }
    #highlight-area { padding: 6px; }
    
    .emp-rating {
        padding: 10px;
        max-width: 100%;
    }
    
    .emp-rating__bar { gap: 8px; }
    .emp-rating__btn { padding: 5px 8px; min-width: 55px; font-size: 0.95em; }
    .emp-rating__score { font-size: 1.1em; min-width: 30px; }
}