177 lines
2.9 KiB
CSS
177 lines
2.9 KiB
CSS
.home-page {
|
|
width: 100%;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 40px;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-size: 36px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.search-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
padding: 12px 20px;
|
|
border-radius: 30px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
min-width: 300px;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.search-bar:focus-within {
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.search-bar input {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: none;
|
|
color: #fff;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.search-bar input::placeholder {
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.songs-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 24px;
|
|
}
|
|
|
|
.song-card {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
transition: all 0.3s;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.song-card:hover {
|
|
transform: translateY(-8px);
|
|
background: rgba(255, 255, 255, 0.1);
|
|
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.song-cover {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 1;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
margin-bottom: 16px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.song-cover img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.default-cover {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 64px;
|
|
color: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.play-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
transition: all 0.3s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.song-card:hover .play-overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.play-overlay:hover {
|
|
background: rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
.song-info {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.song-info h3 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin-bottom: 6px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.song-info p {
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-size: 14px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.song-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.download-btn {
|
|
padding: 8px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.download-btn:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.page-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.search-bar {
|
|
width: 100%;
|
|
}
|
|
|
|
.songs-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
}
|