/* ===================================== */
/*              ALBUM PAGE               */
/* ===================================== */

.album-page {
    width: 100%;
    min-height: 100%;
    background: linear-gradient(180deg, rgba(255,215,0,0.02) 0%, transparent 400px);
}

/* Шапка альбома */
.album-header {
    position: relative;
    padding: 30px 40px 40px 40px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #1a1a1f 0%, #0f0f12 100%);
    border-bottom: 1px solid rgba(255,215,0,0.1);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Кнопка назад */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,215,0,0.2);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    width: fit-content;
}

.back-button:hover {
    background: rgba(255,215,0,0.1);
    border-color: var(--accent);
    transform: translateX(-5px);
}

.back-icon {
    font-size: 18px;
}

/* Контент шапки */
.album-header-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* Обложка */
.album-cover-wrapper {
    flex-shrink: 0;
    position: relative;
}

.album-cover-wrapper::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 16px;
    z-index: -1;
}

.album-cover-large {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.album-cover-large:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(255,215,0,0.2);
}

.album-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-cover-large::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    background: rgba(0,0,0,0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.album-cover-large:hover::after {
    opacity: 1;
}

/* Информация */
.album-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.album-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 30px;
    width: fit-content;
    background: rgba(255,215,0,0.15);
    color: var(--accent);
    border: 1px solid rgba(255,215,0,0.3);
    text-transform: uppercase;
}

.album-title {
    font-size: 48px;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
    color: white;
    word-break: break-word;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.album-artist {
    font-size: 18px;
    color: var(--accent);
    cursor: pointer;
    display: inline-block;
    padding: 8px 0;
    transition: all 0.2s ease;
    width: fit-content;
    border-bottom: 1px solid transparent;
}

.album-artist:hover {
    border-bottom-color: var(--accent);
}

.album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-dim);
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.album-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.album-meta-item::before {
    content: '•';
    color: var(--accent);
    margin-right: 5px;
}

.album-meta-item:first-child::before {
    display: none;
}

/* Действия */
.album-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Секция с треками */
.album-tracks-section {
    padding: 0 40px 40px 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Таблица треков */
.tracks-table-container {
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.02);
}

.album-tracks-table {
    width: 100%;
    border-collapse: collapse;
}

.album-tracks-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.album-tracks-table tr:last-child td {
    border-bottom: none;
}

.album-tracks-table tr:hover {
    background: rgba(255,215,0,0.05);
}

.album-tracks-table tr.active {
    background: rgba(255,215,0,0.1);
    position: relative;
}

.album-tracks-table tr.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.track-index {
    width: 40px;
    font-weight: 600;
    color: var(--accent);
    font-family: monospace;
}

.track-title {
    max-width: 400px;
}

.track-name {
    font-weight: 500;
    display: block;
}

.track-plays,
.track-duration {
    color: var(--text-dim);
    font-size: 13px;
    font-family: monospace;
}

.track-menu {
    width: 40px;
    text-align: center;
}

/* Страница ошибки */
.album-error {
    text-align: center;
    padding: 80px 20px;
}

.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.album-error h2 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #fff;
}

.album-error p {
    color: var(--text-dim);
    margin: 0 0 30px 0;
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 1024px) {
    .album-header-content {
        gap: 30px;
    }
    
    .album-cover-large {
        width: 180px;
        height: 180px;
    }
    
    .album-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .album-header {
        padding: 20px 20px 30px 20px;
        margin-bottom: 20px;
    }
    
    .back-button {
        margin-bottom: 20px;
    }
    
    .album-header-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .album-cover-wrapper::after {
        display: none;
    }
    
    .album-cover-large {
        width: 160px;
        height: 160px;
    }
    
    .album-info {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .album-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .album-title {
        font-size: 32px;
        text-align: center;
    }
    
    .album-artist {
        margin-left: auto;
        margin-right: auto;
    }
    
    .album-meta {
        justify-content: center;
    }
    
    .album-actions {
        justify-content: center;
    }
    
    .album-tracks-section {
        padding: 0 20px 30px 20px;
    }
    
    .album-tracks-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .track-title {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .album-cover-large {
        width: 140px;
        height: 140px;
    }
    
    .album-title {
        font-size: 28px;
    }
    
    .album-meta {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .album-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .album-actions button {
        width: 100%;
    }
    
    .album-tracks-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .track-title {
        max-width: 150px;
    }
    
    .track-plays,
    .track-duration {
        font-size: 11px;
    }
}