/* album.css — полностью обновлённый стиль */

/* ===== Hero-секция ===== */
.album-hero {
    margin-bottom: 32px;
    border-radius: 32px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}
.album-hero-bg {
    padding: 32px 40px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.album-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 0;
}
.album-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 40px;
    align-items: center;
    color: #fff;
}

/* Обложка и кнопка воспроизведения */
.album-hero-media {
    flex-shrink: 0;
}
.album-hero-cover-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.album-hero-cover-wrapper:hover {
    transform: scale(1.02);
}
.album-hero-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%);
    pointer-events: none;
}
.album-hero-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    transition: transform 0.2s, background 0.2s;
    z-index: 2;
}
.album-hero-play-btn:hover {
    background: var(--accent-hover);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Информация */
.album-hero-info {
    flex: 1;
    min-width: 0;
}
.album-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.album-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    word-break: break-word;
}
.album-hero-artist {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.album-artist-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    object-fit: cover;
}
.artist-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.artist-link:hover {
    opacity: 0.8;
}

/* Галочка верификации */
.artist-verified {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.artist-verified .fa-circle {
    color: #1d9bf0 !important;
}
.artist-verified .check-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.55em;
    color: #ffffff !important;
}

/* Мета и статистика */
.album-hero-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    flex-wrap: wrap;
}
.album-hero-meta i {
    margin-right: 6px;
    opacity: 0.8;
}
.album-hero-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 14px;
    color: rgba(255,255,255,0.95);
}
.stat-badge i {
    opacity: 0.9;
}
.album-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-btn {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.hero-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}
.hero-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}
.hero-btn.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
.hero-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}

/* ===== Описание альбома ===== */
.album-description {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 20px 24px;
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
    animation: fadeInUp 0.6s ease-out 0.15s backwards;
}
.album-description p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ===== Секция треков ===== */
.album-tracks-section {
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.tracks-total {
    color: var(--text-secondary);
    font-size: 14px;
}
.album-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== Похожие альбомы ===== */
.similar-albums-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.45s backwards;
}
.similar-albums-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.album-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--border-light);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.album-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--shadow-heavy);
}
.album-card-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
}
.album-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.album-card-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.album-card-artist {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Анимации ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Адаптивность ===== */
@media (max-width: 1100px) {
    .album-hero-bg {
        padding: 24px 28px;
    }
    .album-hero-content {
        gap: 32px;
    }
    .album-hero-cover-wrapper {
        width: 240px;
        height: 240px;
    }
    .album-hero-title {
        font-size: 36px;
    }
    .similar-albums-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Планшеты */
@media (max-width: 860px) {
    .album-hero-content {
        flex-direction: column;
        text-align: center;
    }
    .album-hero-media {
        display: flex;
        justify-content: center;
    }
    .album-hero-cover-wrapper {
        width: 280px;
        height: 280px;
    }
    .album-hero-info {
        text-align: center;
    }
    .album-hero-artist {
        justify-content: center;
    }
    .album-hero-meta,
    .album-hero-stats,
    .album-hero-actions {
        justify-content: center;
    }
    .similar-albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобильные */
@media (max-width: 600px) {
    .album-hero-bg {
        padding: 20px 16px;
        border-radius: 24px;
    }
    .album-hero-content {
        gap: 24px;
    }
    .album-hero-media {
        display: flex;
        justify-content: center;
    }
    .album-hero-cover-wrapper {
        width: 220px;
        height: 220px;
        border-radius: 24px;
    }
    .album-hero-play-btn {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    .album-hero-title {
        font-size: 28px;
    }
    .album-hero-meta {
        gap: 12px;
        font-size: 13px;
    }
    .stat-badge {
        font-size: 12px;
        padding: 4px 12px;
    }
    .hero-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    .album-description {
        padding: 16px;
        border-radius: 20px;
    }
    .section-header h2 {
        font-size: 20px;
    }
    .tracks-total {
        font-size: 12px;
    }
    .similar-albums-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .album-card {
        border-radius: 16px;
        padding: 12px;
    }
    .album-card-title {
        font-size: 13px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
    .album-hero-cover-wrapper {
        width: 180px;
        height: 180px;
    }
    .album-hero-title {
        font-size: 24px;
    }
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    .similar-albums-grid {
        grid-template-columns: 1fr;
    }
}