/* Music Filters Widget v17.6.1 - Style */

/* Основные стили формы - ЗОЛОТАЯ ТЕМА */
.music-filters-form-v17 {
    background: transparent;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Admin Notice - ЗОЛОТОЙ */
.admin-notice-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #B38600 100%);
    color: #1a1a1a;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 15px;
    border-left: 4px solid #8B7500;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.terms-count-v17 {
    color: #D4AF37;
    font-size: 11px;
    font-weight: normal;
}

/* Активные фильтры - ЗОЛОТЫЕ */
.active-filters-gold {
    background: rgba(212, 175, 55, 0.05);
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 3px solid #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.active-filters-title-gold {
    color: #D4AF37;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.active-filters-wrapper-gold {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.active-filter-tag-gold {
    display: inline-flex;
    align-items: center;
    background: rgba(212, 175, 55, 0.12);
    color: #D4AF37;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: normal;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    line-height: 1.4;
    gap: 4px;
}

.active-filter-tag-gold:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #B38600 100%);
    color: #1a1a1a;
    border-color: #D4AF37;
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.active-filter-tag-gold .filter-label-gold {
    opacity: 0.6;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-filter-tag-gold .filter-value-gold {
    font-weight: 500;
}

.active-filter-tag-gold .filter-remove-gold {
    margin-left: 4px;
    font-weight: bold;
    font-size: 14px;
    opacity: 0.5;
}

.active-filter-tag-gold:hover .filter-remove-gold {
    opacity: 1;
}

.clear-all-filters-gold {
    display: inline-flex;
    align-items: center;
    color: #888;
    font-size: 11px;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #333;
    border-radius: 3px;
    transition: all 0.3s ease;
    line-height: 1.4;
    gap: 4px;
}

.clear-all-filters-gold:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #B38600 100%);
    color: #1a1a1a;
    border-color: #D4AF37;
    transform: scale(1.05);
}

/* Все группы имеют одинаковый отступ */
.filter-group-v17 { 
    margin-bottom: 6px; 
}

.year-range-group-v17 {
    margin-bottom: 6px;
}

.keyword-search-group {
    margin-bottom: 6px;
}

.artist-search-group {
    margin-bottom: 6px;
}

/* Year Range Header */
.year-range-header {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    gap: 10px;
}

.year-range-header .filter-label-v17 {
    margin-bottom: 0;
}

/* Чекбокс Exact Year - ЗОЛОТОЙ */
.exact-year-label {
    color: #bbb !important;
    font-weight: normal !important;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid transparent;
}

.exact-year-label:hover {
    color: #D4AF37 !important;
}

.exact-year-label.active {
    color: #D4AF37 !important;
    border-color: rgba(212, 175, 55, 0.25);
    background: rgba(212, 175, 55, 0.05);
}

.exact-year-label input[type="checkbox"] {
    accent-color: #D4AF37;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* НАЗВАНИЯ ФИЛЬТРОВ - ЗОЛОТЫЕ */
.filter-label-v17 {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.filter-label-gold-text {
    color: #D4AF37 !important;
    font-weight: normal !important;
}

/* Убираем лишние символы перед названиями */
.filter-label-v17::before {
    content: none !important;
}

/* SEARCHABLE DROPDOWN - ЗОЛОТАЯ ТЕМА */
.searchable-dropdown-v17 {
    position: relative;
}

.dropdown-display-v17 {
    padding: 6px 10px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.3s ease;
    padding-right: 30px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dropdown-display-v17::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #D4AF37;
    font-size: 12px;
}

.dropdown-display-v17:hover {
    border-color: #D4AF37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}

.dropdown-options-v17 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    z-index: 1000;
    margin-top: 4px;
    max-height: 300px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.dropdown-options-v17.show {
    display: block;
    border-color: #D4AF37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.dropdown-search-wrap-v17 {
    position: relative;
    padding: 6px 8px;
    border-bottom: 1px solid #444;
}

.dropdown-search-v17 {
    width: 100%;
    padding: 5px 8px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.dropdown-search-v17:focus {
    border-color: #D4AF37;
    outline: none;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}

.dropdown-search-icon {
    display: none;
}

.dropdown-list-v17 {
    max-height: 220px;
    overflow-y: auto;
}

.dropdown-option-v17 {
    padding: 6px 10px;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #333;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-option-v17.selected {
    background: #D4AF37;
    border-left: 3px solid #B38600;
    font-weight: bold;
    color: #1a1a1a !important;
}

.dropdown-option-v17.selected span {
    color: #1a1a1a !important;
}

.dropdown-option-v17.selected input[type="checkbox"] {
    accent-color: #B38600;
}

.dropdown-option-v17:hover {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: #D4AF37;
    padding-left: 14px;
}

.dropdown-option-v17 label {
    width: 100%;
    cursor: pointer;
    color: inherit;
}

.dropdown-option-v17 input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: #D4AF37;
}

.dropdown-option-v17 input[type="checkbox"]:checked + span {
    color: #1a1a1a !important;
    font-weight: bold;
}

.count-badge {
    color: #999;
    font-size: 11px;
    font-weight: normal;
    opacity: 0.7;
    margin-left: 2px;
}

.dropdown-option-v17.selected .count-badge {
    color: #1a1a1a;
    opacity: 1;
}

.dropdown-no-results-v17 {
    padding: 10px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.dropdown-list-v17::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list-v17::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.dropdown-list-v17::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 3px;
}

.dropdown-list-v17::-webkit-scrollbar-thumb:hover {
    background: #B38600;
}

/* Year selects */
.year-selects-wrapper-v17 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-select-v17 {
    flex: 1;
    padding: 6px 10px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-select-v17:focus {
    border-color: #D4AF37;
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.year-select-v17 option:checked {
    background: #D4AF37;
    color: #1a1a1a;
}

.year-select-v17.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.year-separator-v17 {
    color: #D4AF37;
    font-weight: bold;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

.year-separator-v17.disabled {
    opacity: 0.3;
}

.year-hint-v17 {
    margin-top: 2px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 11px;
    color: #D4AF37;
    text-align: left;
    font-weight: normal;
    letter-spacing: 0.2px;
    opacity: 0.8;
    min-height: 18px;
}

/* Keyword Search */
.keyword-search-input {
    width: 100%;
    padding: 6px 10px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.keyword-search-input:focus {
    border-color: #D4AF37 !important;
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* ARTIST AUTOCOMPLETE */
.artist-autocomplete-wrap {
    position: relative;
}

.artist-autocomplete-input {
    width: 100%;
    padding: 6px 10px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.artist-autocomplete-input:focus {
    border-color: #D4AF37 !important;
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.artist-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid #D4AF37;
    border-radius: 4px;
    z-index: 1001;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.artist-suggestions.active {
    display: block;
}

.artist-suggestion-item {
    padding: 8px 12px;
    color: #fff;
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: all 0.2s ease;
    font-size: 13px;
}

.artist-suggestion-item:hover {
    background: rgba(212, 175, 55, 0.15);
    padding-left: 16px;
}

.artist-suggestion-item .count {
    color: #999;
    font-size: 11px;
    opacity: 0.7;
    margin-left: 6px;
}

.artist-suggestion-item .selected-tag {
    color: #D4AF37;
    font-weight: bold;
}

.artist-suggestions .no-results {
    padding: 12px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.artist-suggestions::-webkit-scrollbar {
    width: 6px;
}

.artist-suggestions::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.artist-suggestions::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 3px;
}

/* Кнопка поиска */
.filter-submit-v17 {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #FFE082 0%, #D4AF37 50%, #B38600 100%);
    color: #1a1a1a;
    border: 1px solid #B38600;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.filter-submit-v17:hover {
    background: linear-gradient(135deg, #FFF176 0%, #E5C158 50%, #9E7400 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.filter-submit-v17:active {
    transform: translateY(0);
}

.clear-filters-link-v17 {
    display: block;
    text-align: center;
    color: #D4AF37;
    font-size: 13px;
    font-weight: bold;
    margin-top: 8px;
    text-decoration: none;
    padding: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.clear-filters-link-v17:hover {
    border-color: #D4AF37;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.05);
    transform: scale(1.02);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.active-filters-gold {
    animation: fadeIn 0.3s ease;
}

.active-filter-tag-gold {
    animation: fadeIn 0.3s ease;
}