/**
 * Legacy Compatibility Styles
 * Обеспечивает работу старых классов со новым дизайном
 */

/* FontAwesome Icons Support */
@font-face{
    font-family:FontAwesome;
    src:url(/fonts/fontawesome-webfont.eot?v=4.0.2);
    font-display:swap;
    src:url(/fonts/fontawesome-webfont.eot?v=4.0.2#iefix) format('embedded-opentype'),
        url(/fonts/fontawesome-webfont.woff?v=4.0.2) format('woff'),
        url(/fonts/fontawesome-webfont.ttf?v=4.0.2) format('truetype'),
        url(/fonts/fontawesome-webfont.svg?v=4.0.2#fontawesomeregular) format('svg');
    font-weight:400;
    font-style:normal;
}

.fa{
    font-family:FontAwesome;
    font-style:normal;
    line-height:1;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

.fa-spin{
    -webkit-animation:2s linear infinite spin;
    animation:2s linear infinite spin;
}

@keyframes spin{
    0%{transform:rotate(0)}
    100%{transform:rotate(359deg)}
}

.fa-home:before{content:"\f015"}
.fa-bars:before{content:"\f0c9"}
.fa-times:before{content:"\f00d"}
.fa-play:before{content:"\f04b"}
.fa-pause:before{content:"\f04c"}
.fa-search:before{content:"\f002"}
.fa-spinner:before{content:"\f110"}
.fa-download:before{content:"\f019"}
.fa-clock:before{content:"\f017"}
.fa-file-size:before{content:"\f016"}
.fa-hdd:before{content:"\f0a0"}

/* Старые классы контейнеров -> новые */
#content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

#content > h1,
#content > h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2d5f7e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2d5f7e;
}

#content p {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Старые классы песен */
.song_list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.song_list item,
.song_list li {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: row;
    height: auto;
    min-height: 85px;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    margin: 0 !important;
}

.song_list item:hover,
.song_list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.little_thumb,
.resim_thumb {
    border: none;
    border-radius: 0;
    padding: 0;
    width: 85px;
    height: 85px;
    flex-shrink: 0;
}

.little_thumb img,
.resim_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song_datas {
    display: flex !important;
    padding: 10px 12px;
    border: none;
    border-radius: 0;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 85px);
    flex: 1;
    gap: 8px;
}

.song_datas .left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.song_datas .left h3,
.song_datas .left span {
    font-weight: 600;
    font-size: 14px !important;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    line-height: 1.3;
}

.another_datas {
    color: #7f8c8d;
    font-size: 12px !important;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song_datas .right {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.song_datas .right button,
.song_datas .right a {
    display: flex !important;
    width: 38px;
    height: 38px;
    border-radius: 8px !important;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    margin: 0;
    font-size: 14px !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.playbtn,
.song_datas .right .playbtn {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%) !important;
    color: #fff !important;
}

.playbtn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4) !important;
}

.downloadbtn,
.song_datas .right .downloadbtn,
.song_datas .right a[download] {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: #fff !important;
}

.downloadbtn:hover,
.song_datas .right a[download]:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4) !important;
}

/* Детальная страница песни */
.__item {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    margin-bottom: 20px;
}

.__item .__thumb {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.__item .__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.__item .__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.__item .__info .__songdata {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.__item .__info .__songdata strong,
.__item .__info .song-info__title {
    font-weight: 600;
    font-size: 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.__item .__info .__songdata .__bottom {
    color: #64748b;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
}

.__item .__info .__songdata .__bottom i {
    margin-right: 5px;
    color: #7c3aed;
}

.__item .__info .__controller {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.__item .__info .__controller .__play_btn {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.__item .__info .__controller .__play_btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.__item .__info .__controller .__play_btn i {
    color: #fff;
    font-size: 22px;
}

.__item .__info .__controller .__download_btn {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    color: #fff;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.__item .__info .__controller .__download_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
}

.__item .__info .__controller .__download_btn i {
    color: #fff;
    margin-right: 8px;
    font-size: 18px;
}

/* Дополнительные стили для старых блоков play-download */
.play-download {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.play-btn-contain {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.play-btn-contain:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.play-btn-contain.playBtnContain {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.play-btn-contain.playBtnContain:hover {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.listen {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bg-playbtn,
.bg-download {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.bg-playbtn i,
.bg-download i {
    color: #fff;
    font-size: 20px;
}

.bg-download a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
}

.mp3-data {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.mp3-data-1,
.mp3-data-2 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.mp3-data-1 i,
.mp3-data-2 i {
    color: #7c3aed;
    font-size: 18px;
}

.mp3-data-1 span,
.mp3-data-2 span {
    font-size: 14px;
    color: #64748b;
}

.mp3-data-1 span:last-child,
.mp3-data-2 span:last-child {
    color: #1e293b;
    font-weight: 600;
}

.right-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

/* Адаптив для детальной страницы */
@media (max-width: 768px) {
    .__item {
        flex-direction: column;
        padding: 15px;
    }
    
    .__item .__thumb {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }
    
    .__item .__info {
        width: 100%;
    }
    
    .__item .__info .__songdata strong,
    .__item .__info .song-info__title {
        font-size: 20px;
        text-align: center;
    }
    
    .__item .__info .__songdata .__bottom {
        justify-content: center;
        font-size: 13px;
    }
    
    .__item .__info .__controller {
        justify-content: center;
    }
    
    .__item .__info .__controller .__download_btn {
        min-width: 120px;
    }
    
    .play-btn-contain {
        min-width: 100%;
        justify-content: center;
    }
    
    .play-download {
        gap: 10px;
    }
}

/* Плеер Plyr */
.plyr {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, #1c3144 0%, #2d5f7e 100%);
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    display: none;
}

.plyr.plyr--audio {
    display: block;
}

.plyr__controls {
    background: transparent !important;
    color: white !important;
}

/* Автокомплит поиска */
.autocomplete-suggestions {
    margin-top: 5px;
    text-align: left;
    cursor: pointer;
    padding: 5px;
    border: 2px solid #e0e0e0;
    border-top: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    position: absolute;
    display: none;
    z-index: 9999;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.autocomplete-suggestion {
    position: relative;
    padding: 10px 15px;
    line-height: 1.5;
    overflow: hidden;
    font-size: 14px;
    color: #2c3e50;
    transition: background 0.2s ease;
}

.autocomplete-suggestion:nth-child(2n) {
    background: #f8f9fa;
}

.autocomplete-suggestion:hover {
    background: #e0e0e0;
}

.autocomplete-suggestion.selected {
    background: #2d5f7e;
    color: #fff;
}

/* Адаптив для списка песен */
@media (max-width: 768px) {
    .song_list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .song_list item,
    .song_list li {
        min-height: 70px;
    }
    
    .little_thumb,
    .resim_thumb {
        width: 70px;
        height: 70px;
    }
    
    .song_datas {
        width: calc(100% - 70px);
        padding: 8px 10px;
    }
    
    .song_datas .left h3,
    .song_datas .left span {
        font-size: 13px !important;
    }
    
    .another_datas {
        font-size: 11px !important;
    }
    
    .song_datas .right button,
    .song_datas .right a {
        width: 36px;
        height: 36px;
        font-size: 13px !important;
    }
}

/* Утилиты */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-inline-block {
    display: inline-block !important;
}

/* Текст песни */
.song-text {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    line-height: 1.8;
}

.song-text.music-str {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.song-text__desc {
    padding-left: 15px;
    margin-top: 12px;
    color: #2c3e50;
}

.icon-strinfo::before {
    content: "ℹ️";
    font-size: 24px;
    margin-right: 10px;
}

/* Mobile Navigation Toggle Script */
.main-nav.active {
    display: flex !important;
}

