/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0f0f0f;
    color: #fff;
    overflow-x: hidden;
}

.discover-container {
    display: flex;
    min-height: 100vh;
    padding-bottom: 90px; /* Space for now playing bar */
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: #121212;
    padding: 25px 20px;
    position: fixed;
    height: calc(100vh - 90px);
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo i {
    font-size: 2.2rem;
    color: #ff4757;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    list-style: none;
    margin-bottom: 30px;
}

.main-nav li {
    margin-bottom: 5px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: #b3b3b3;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.main-nav a i {
    width: 20px;
    text-align: center;
}

.main-nav li.active a {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border-left: 3px solid #ff4757;
}

.user-playlists {
    margin-top: 30px;
}

.user-playlists h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #b3b3b3;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.user-playlists ul {
    list-style: none;
}

.user-playlists li {
    margin-bottom: 5px;
}

.user-playlists a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    color: #b3b3b3;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.user-playlists a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.user-playlists .count {
    margin-left: auto;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.user-info p {
    font-size: 0.8rem;
    color: #ff4757;
}

.user-profile i {
    margin-left: auto;
    color: #b3b3b3;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 25px;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #b3b3b3;
}

.search-bar input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #ff4757;
    background: rgba(255, 255, 255, 0.1);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.07);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.upgrade-btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #ffd700, #ffa500);
    border: none;
    border-radius: 25px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.music-visual {
    width: 200px;
    height: 150px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}

.visualizer .bar {
    width: 10px;
    background: white;
    border-radius: 5px;
    animation: equalizer 1.5s infinite ease-in-out;
}

.visualizer .bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.visualizer .bar:nth-child(2) { height: 40px; animation-delay: 0.2s; }
.visualizer .bar:nth-child(3) { height: 60px; animation-delay: 0.4s; }
.visualizer .bar:nth-child(4) { height: 80px; animation-delay: 0.6s; }
.visualizer .bar:nth-child(5) { height: 60px; animation-delay: 0.4s; }
.visualizer .bar:nth-child(6) { height: 40px; animation-delay: 0.2s; }
.visualizer .bar:nth-child(7) { height: 20px; animation-delay: 0s; }

@keyframes equalizer {
    0%, 100% { height: 20px; }
    50% { height: 80px; }
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.view-all {
    color: #ff4757;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s ease;
}

.view-all:hover {
    opacity: 0.8;
}

/* Categories Section */
.categories-section {
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.category-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* New Releases */
.new-releases {
    margin-bottom: 40px;
}

.filter-options {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #b3b3b3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
    color: white;
}

.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.release-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.release-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.release-cover {
    position: relative;
    overflow: hidden;
}

.release-cover img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.release-card:hover .release-cover img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: #1db954;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.release-card:hover .play-btn {
    opacity: 1;
    transform: translateY(0);
}

.play-btn:hover {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.release-card:hover .overlay {
    opacity: 1;
}

.overlay i {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.overlay i:hover {
    background: rgba(0, 0, 0, 0.9);
}

.release-info {
    padding: 20px;
}

.release-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.release-info p {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.release-date {
    font-size: 0.85rem;
    color: #ff4757;
    font-weight: 500;