/* ===== ОБЩИЕ СТИЛИ И ТЕМА ===== */
/* Единый шрифт Roboto везде */
* {
    font-family: 'Roboto', sans-serif;
}

/* Темная серебристая тема */
body {
    padding-top: 70px;
    background-color: #0c0b0e;
    color: #e5e5e5;
}

/* Фон с тонкой текстурой + изображение киностудии */
.bg-silver-dark {
    background:
    linear-gradient(145deg, rgba(18, 16, 22, 0.85) 0%, rgba(10, 8, 12, 0.85) 100%),
    url('/images/1773930014.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.bg-silver-dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(192, 192, 192, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Серебряные акценты */
.text-silver {
    color: #c0c0c0;
}

.text-silver-bright {
    color: #e8e8e8;
}

.border-silver {
    border-color: #3a3840 !important;
}

.btn-silver {
    background: #2a2730;
    color: #f0f0f0;
    border: 1px solid #5a5665;
    font-weight: 500;
    padding: 12px 32px;
    border-radius: 40px;
    transition: 0.2s;
}

.btn-silver:hover {
    background: #3f3b48;
    border-color: #a0a0b0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

.btn-outline-silver {
    background: transparent;
    border: 1px solid #5e5a6b;
    color: #d0d0d0;
    padding: 12px 32px;
    border-radius: 40px;
}

.btn-outline-silver:hover {
    background: #2a2730;
    border-color: #a0a0b0;
    color: white;
}

/* Карточки с серебристым свечением */
.card-silver {
    background: rgba(22, 20, 28, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid #3f3c48;
    border-radius: 28px;
    transition: 0.2s;
}

.card-silver:hover {
    border-color: #8a85a0;
    box-shadow: 0 20px 30px -12px rgba(150, 150, 180, 0.2);
}

/* Плашки услуг */
.service-tile {
    background: #1b1921;
    border: 1px solid #35323d;
    border-radius: 20px;
    padding: 24px 20px;
    transition: 0.15s;
}

.service-tile:hover {
    border-color: #8e8a9c;
    background: #24212b;
}

.service-icon {
    font-size: 2.2rem;
    color: #c5c5d3;
}

/* Бейдж "звезды" */
.star-badge {
    background: #1f1d26;
    border-left: 4px solid #a0a0b0;
    padding: 8px 18px;
    border-radius: 40px;
    color: #cccccc;
    font-weight: 400;
}

hr {
    border-top: 1px solid #333039;
}

footer a {
    color: #9a9a9a;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
}

/* ===== ЛОГОТИП ===== */
.logo-ira {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255,255,255,0.1);
}

.logo-euphoria {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: #a0a0a0;
    text-transform: uppercase;
}

/* ===== НАВБАР ===== */
.navbar-nav .nav-link-modern {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    padding: 8px 0 !important;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.3px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Эффект "наполнения" снизу вверх */
.navbar-nav .nav-link-modern::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c0c0c0, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navbar-nav .nav-link-modern:hover {
    color: #fff;
}

.navbar-nav .nav-link-modern:hover::before {
    transform: scaleX(1);
}

/* Активный пункт меню */
.navbar-nav .nav-link-modern.active {
    color: #fff;
}

.navbar-nav .nav-link-modern.active::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, transparent, #c0c0c0, transparent);
}

/* Эффект свечения при наведении */
.navbar-nav .nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c0c0c0;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    filter: blur(1px);
}

.navbar-nav .nav-link-modern:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1.5);
}

/* Кнопка "Связаться" с современным стилем */
.btn-modern {
    position: relative;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(192, 192, 192, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    letter-spacing: 0.5px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-modern:hover {
    border-color: #c0c0c0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 192, 192, 0.2);
}

.btn-modern:hover::before {
    left: 100%;
}

/* ===== ОСНОВНЫЕ СТИЛИ КОНТЕНТА (ИЗ SONG_LIST.CSS) ===== */
.like-btn {
    transition: transform 0.2s ease;
    cursor: pointer;
}
.like-btn:hover {
    transform: scale(1.1);
}
.like-btn.liked {
    color: #ff4d4d !important;
}
.play-count {
    font-size: 0.8rem;
}
.recommendation-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.lyrics-preview {
    max-height: 100px;
    overflow: hidden;
    position: relative;
}
.lyrics-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, #000);
}

/* Карточки песен с эффектом наведения */
.card-hover-effect {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.card-hover-effect:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.08),
    0 4px 8px rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Вертикальные полоски для характеров (moods) */
.mood-stripes {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    display: flex;
    flex-direction: column;
    z-index: 20;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    overflow: hidden;
}

.mood-stripe {
    flex: 1;
    width: 100%;
    min-height: 4px;
    transition: transform 0.2s ease;
}

.card:hover .mood-stripe {
    transform: scaleX(1.5);
}

/* Кнопка воспроизведения на карточке */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0;
    z-index: 15;
    cursor: pointer;
}

.play-button i {
    font-size: 1.8rem;
    color: #000;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.play-button:hover {
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.play-button:hover i {
    transform: scale(1.05);
}

.card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Индикатор воспроизведения */
.playing-indicator {
    z-index: 20;
    transition: opacity 0.3s ease;
}

.playing-indicator .badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* Поисковая строка */
.search-input {
    background: #1b1921;
    border: 1px solid #35323d;
    color: #e5e5e5;
    padding: 12px 20px;
    border-radius: 40px;
}

.search-input:focus {
    background: #24212b;
    border-color: #8a85a0;
    box-shadow: 0 0 0 3px rgba(138, 133, 160, 0.3);
    color: white;
    outline: none;
}

.search-btn {
    background: #2a2730;
    border: 1px solid #5a5665;
    color: #f0f0f0;
    border-radius: 40px;
    padding: 12px 30px;
}

.search-btn:hover {
    background: #3f3b48;
    border-color: #a0a0b0;
}

/* Бейджи для жанров и темпов */
.badge-genre {
    background: rgba(42, 39, 48, 0.8);
    border: 1px solid #5a5665;
    color: #c0c0c0;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.badge-tempo {
    background: #2a2730;
    border-left: 3px solid #a0a0b0;
    color: #e0e0e0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Компактный темп с BPM */
.tempo-badge {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid;
    font-size: 0.7rem;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
}

.tempo-badge i {
    font-size: 0.7rem;
    margin-right: 3px;
}

.bpm-indicator {
    background: rgba(0, 0, 0, 0.5);
    padding: 1px 4px;
    border-radius: 10px;
    font-size: 0.65rem;
    margin-left: 4px;
}

/* Like button */
.like-btn-container {
    transition: transform 0.2s;
}

.like-btn-container:hover {
    transform: scale(1.1);
}

.like-btn-container:active {
    transform: scale(0.95);
}

.bi-heart-fill, .bi-heart {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.like-btn-container:hover i {
    transform: scale(1.1);
}

.bi-heart-fill {
    filter: drop-shadow(0 0 6px rgba(220, 53, 69, 0.5));
}

/* Toast уведомления */
.toast-custom {
    background: #1b1921;
    border: 1px solid #5a5665;
    color: white;
    border-radius: 40px;
    backdrop-filter: blur(10px);
}

.toast {
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Стили для иконки редактирования - желтый цвет */
.edit-icon {
    transition: transform 0.2s ease, background-color 0.2s ease;
    background-color: #ffc107 !important;
    border: none !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.edit-icon:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #ffca2c !important;
}

.edit-icon i {
    color: #000 !important;
    font-size: 1rem;
}

/* Стили для иконок статуса и продажи */
.status-icon, .sell-icon {
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-icon:hover, .sell-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.status-icon:active, .sell-icon:active {
    transform: scale(0.95);
}

/* Улучшенные стили для обложки */
.card-img-top {
    transition: filter 0.3s ease;
}

.card:hover .card-img-top {
    filter: brightness(1.1);
}

/* Стили для бейджей */
.badge {
    transition: all 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Стили для тегов жанров и характеров */
.badge.bg-secondary.bg-opacity-25 {
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

.badge.bg-secondary.bg-opacity-25:hover {
    background-color: rgba(108, 117, 125, 0.4) !important;
    transform: translateY(-2px);
}

/* ===== ГЛОБАЛЬНЫЙ ПЛЕЕР ===== */
#globalPlayer .card {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

#globalPlayer .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.6);
}

/* Стили для прогресс-бара */
.progress {
    background: rgba(255, 255, 255, 0.1);
    transition: height 0.2s ease;
}

.progress:hover {
    height: 8px !important;
}

.progress-bar {
    transition: width 0.1s linear;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Улучшенные стили для кнопок в плеере */
#playerLikeBtn, #globalPlayer .btn-link {
    transition: transform 0.2s ease, color 0.2s ease;
}

#playerLikeBtn:hover, #globalPlayer .btn-link:hover {
    transform: scale(1.1);
}

#playerLikeBtn.liked i {
    color: #ff4d4d;
}

/* Стили для регулятора громкости */
.form-range::-webkit-slider-thumb {
    background: #667eea;
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #764ba2;
}

/* Стили для модальных окон */
.modal-content {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Стили для поиска */
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

/* Анимация появления карточек */
.col {
    animation: fadeInUp 0.5s ease backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержки анимации для карточек */
.col:nth-child(1) { animation-delay: 0.1s; }
.col:nth-child(2) { animation-delay: 0.15s; }
.col:nth-child(3) { animation-delay: 0.2s; }
.col:nth-child(4) { animation-delay: 0.25s; }
.col:nth-child(5) { animation-delay: 0.3s; }
.col:nth-child(6) { animation-delay: 0.35s; }
.col:nth-child(7) { animation-delay: 0.4s; }
.col:nth-child(8) { animation-delay: 0.45s; }
.col:nth-child(9) { animation-delay: 0.5s; }
.col:nth-child(10) { animation-delay: 0.55s; }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 576px) {
    .play-button {
        width: 40px;
        height: 40px;
    }
    .play-button i {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 0.5rem !important;
    }

    h6.card-title {
        font-size: 0.9rem;
    }

    p.card-text {
        font-size: 0.75rem;
    }

    .edit-icon {
        width: 28px;
        height: 28px;
    }

    .edit-icon i {
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.65rem;
    }

    .status-icon, .sell-icon {
        width: 28px !important;
        height: 28px !important;
    }

    .status-icon i, .sell-icon i {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 320px) {
    .navbar-brand span {
        font-size: 0.9rem !important;
        letter-spacing: 0.5px !important;
    }
    .navbar-brand img {
        height: 28px !important;
    }
}

/* ===== СТИЛИ ПЛЕЕРА (АДАПТИВНАЯ ВЕРСТКА) ===== */
#globalPlayer .d-flex.align-items-center.flex-wrap.gap-2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

#globalPlayer .d-flex.align-items-center[style*="min-width: 180px"] {
    min-width: 150px;
    flex: 2 1 auto;
}

#globalPlayer .d-flex.align-items-center.gap-2.flex-grow-1 {
    flex: 3 1 250px !important;
    min-width: 200px;
}

#globalPlayer .d-flex.align-items-center.gap-1:last-child {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 0.75rem !important;
}

#globalPlayer .d-flex.align-items-center.gap-1:last-child .btn-link {
    margin: 0 0.15rem;
    padding: 0.25rem 0.35rem;
}

#globalPlayer .progress {
    height: 4px !important;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

#globalPlayer .progress-bar {
    background-color: #0d6efd;
    border-radius: 2px;
    transition: width 0.1s linear;
}

#globalPlayer .progress:hover {
    height: 6px !important;
    margin-top: -1px;
    margin-bottom: -1px;
    transition: height 0.2s ease;
}

#globalPlayer .progress:hover .progress-bar {
    background-color: #0b5ed7;
}

#globalPlayer .small.mb-1 {
    font-size: 0.75rem;
    opacity: 0.8;
}

#globalPlayer .btn-link {
    opacity: 0.7;
    transition: all 0.2s;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#globalPlayer .btn-link:hover {
    opacity: 1;
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

#globalPlayer .btn-link:active {
    transform: scale(0.95);
}

#globalPlayer .btn-light.rounded-circle {
    transition: transform 0.2s, background-color 0.2s;
    width: 34px !important;
    height: 34px !important;
}

#globalPlayer .btn-light.rounded-circle:hover {
    transform: scale(1.05);
    background-color: #f8f9fa !important;
}

#globalPlayer .btn-light.rounded-circle:active {
    transform: scale(0.95);
}

@media (max-width: 576px) {
    #globalPlayer .btn-link {
        width: 36px;
        height: 36px;
    }

    #globalPlayer .btn-light.rounded-circle {
        width: 38px !important;
        height: 38px !important;
    }
}

@media (max-width: 768px) {
    #globalPlayer .d-flex.align-items-center.gap-1:last-child {
        gap: 1rem !important;
    }

    #globalPlayer .d-flex.align-items-center.gap-1:last-child .btn-link {
        margin: 0 0.2rem;
        padding: 0.35rem 0.45rem;
    }
}

@media (min-width: 576px) {
    #globalPlayer .d-flex.align-items-center.gap-2.flex-grow-1 {
        flex: 4 1 300px !important;
    }
}

@media (min-width: 768px) {
    #globalPlayer .card-body {
        padding: 0.5rem 1rem !important;
    }

    #globalPlayer .card-body .d-flex.align-items-center.flex-wrap.gap-2 {
        display: grid;
        grid-template-columns: auto minmax(300px, 1.5fr) auto;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    #globalPlayer .d-flex.align-items-center[style*="min-width: 180px"] {
        min-width: 200px;
        flex: none !important;
    }

    #globalPlayer .d-flex.align-items-center.gap-2.flex-grow-1 {
        flex: none !important;
        width: 100%;
        min-width: 300px;
        max-width: 500px;
        margin: 0 auto;
    }

    #globalPlayer .flex-grow-1[style*="min-width: 100px"] {
        min-width: 150px;
    }

    #globalPlayer .d-flex.align-items-center.gap-1:last-child {
        margin-left: 0;
        gap: 1rem !important;
    }

    #globalPlayer .d-flex.align-items-center.gap-1:last-child .btn-link i {
        font-size: 1.2rem !important;
    }
}

@media (min-width: 992px) {
    #globalPlayer .card-body .d-flex.align-items-center.flex-wrap.gap-2 {
        grid-template-columns: auto minmax(400px, 2fr) auto;
        gap: 2rem;
    }

    #globalPlayer .d-flex.align-items-center.gap-2.flex-grow-1 {
        min-width: 400px;
        max-width: 600px;
    }

    #globalPlayer .d-flex.align-items-center.gap-1:last-child {
        gap: 1.25rem !important;
    }
}

@media (min-width: 1400px) {
    #globalPlayer .d-flex.align-items-center.gap-2.flex-grow-1 {
        max-width: 700px;
    }
}

.pagination .page-link {
    background-color: #1a1a1a;
    border-color: #444;
    color: #fff;
}
.pagination .page-link:hover {
    background-color: #333;
    border-color: #666;
    color: #fff;
}
.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.pagination .page-item.disabled .page-link {
    background-color: #1a1a1a;
    border-color: #444;
    color: #666;
}