/* static/css/explore.css */

.explore-container {
    padding-bottom: 100px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 100px;
    display: flex;
    align-items: flex-end;
    padding: 1rem 30px;
    margin: -30px -30px 1rem -30px;
    background: linear-gradient(135deg, rgba(157,78,221,0.2), rgba(45,212,191,0.1)), url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-banner {
        margin: -10px -10px 1rem -10px;
        padding: 1rem 10px;
        min-height: 100px;
    }
}
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to top, var(--bg-app) 0%, transparent 40%),
        linear-gradient(to bottom, var(--bg-app) 0%, transparent 30%),
        linear-gradient(to right, var(--bg-app) 0%, transparent 15%),
        linear-gradient(to left, var(--bg-app) 0%, transparent 15%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.hero-tag {
    background: var(--accent-color);
    color: #121929;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    display: inline-block;
}
.hero-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.hero-desc {
    display: none;
}
.btn-play-hero {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-play-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(45,212,191,0.4);
    color: #000;
}

/* Section Title */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}
.section-more-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.2s;
}
.section-more-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Horizontal Scroll Container */
.horizontal-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-top: 10px; /* Thêm khoảng trống để hover không bị cắt */
    padding-bottom: 1.5rem;
    margin-top: -10px; /* Bù trừ lại padding-top để layout không đổi */
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.horizontal-scroll::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.horizontal-scroll > * {
    scroll-snap-align: start;
}

/* Music Card */
.music-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.music-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-5px);
}
.music-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.music-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}
.music-card:hover .music-card-img {
    transform: scale(1.05);
}
.btn-card-play {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(45,212,191,0.3);
    font-size: 1.2rem;
}
.music-card:hover .btn-card-play {
    opacity: 1;
    transform: translateY(0);
}
.music-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-card-artist {
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Top Genres Grid */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.genre-card {
    position: relative;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    display: flex;
    padding: 1rem;
}
.genre-card:hover {
    transform: scale(1.03);
}
.genre-title {
    font-size: 1.25rem;
    font-weight: 800;
    z-index: 2;
}
.genre-img {
    position: absolute;
    right: -15px;
    bottom: -10px;
    width: 80px;
    height: 80px;
    transform: rotate(25deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 8px;
}
.bg-pop { background: linear-gradient(135deg, #FF416C, #FF4B2B); }
.bg-chill { background: linear-gradient(135deg, #36D1DC, #5B86E5); }
.bg-hiphop { background: linear-gradient(135deg, #F09819, #EDDE5D); color: #000; }
.bg-electronic { background: linear-gradient(135deg, #8A2387, #E94057, #F27121); }

/* Featured Artists */
.artist-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: var(--transition);
}
.artist-card:hover {
    transform: translateY(-5px);
}
.artist-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 4px solid transparent;
    transition: var(--transition);
}
.artist-card:hover .artist-avatar {
    border-color: var(--primary);
    box-shadow: 0 10px 25px var(--primary-glow);
}
.artist-name {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}
.artist-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.playlist-card {
    width: 100%; min-width: 0; box-sizing: border-box; background: var(--bg-card);
    padding: 1rem; border-radius: 12px; transition: all 0.3s ease;
    cursor: pointer; text-decoration: none; color: white; display: block;
}
.playlist-card:hover { background: rgba(255,255,255,0.05); transform: translateY(-5px); color: white; }
.playlist-card-img-wrap { position: relative; width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; margin-bottom: 1rem; box-shadow: 0 8px 16px rgba(0,0,0,0.2); }
.playlist-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.playlist-card:hover .playlist-card-img-wrap img { transform: scale(1.05); }
.btn-card-play-pl {
    position: absolute; bottom: 10px; right: 10px; width: 40px; height: 40px;
    border-radius: 50%; background: var(--accent-color); color: #000;
    display: flex; align-items: center; justify-content: center; border: none;
    opacity: 0; transform: translateY(10px); transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(45,212,191,0.3); font-size: 1.1rem; cursor: pointer; z-index: 2;
}
.playlist-card:hover .btn-card-play-pl { opacity: 1; transform: translateY(0); }
.playlist-card-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-card-sub { color: var(--text-secondary); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, #2a2a35 50%, var(--bg-card) 75%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card { width: 100%; min-width: 0; box-sizing: border-box; background: var(--bg-card); border-radius: 12px; padding: 1rem; }
.skeleton-card .sk-img { width: 100%; aspect-ratio: 1; border-radius: 8px; margin-bottom: 1rem; }
.skeleton-card .sk-title { height: 14px; border-radius: 4px; margin-bottom: 8px; width: 80%; }
.skeleton-card .sk-sub { height: 12px; border-radius: 4px; width: 55%; }
.skeleton-artist { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.skeleton-artist .sk-avatar { width: 140px; height: 140px; border-radius: 50%; margin-bottom: 1rem; }
.skeleton-artist .sk-name { height: 14px; border-radius: 4px; width: 100px; margin-bottom: 6px; }
.skeleton-artist .sk-role { height: 10px; border-radius: 4px; width: 60px; }

