/* ===== MUSIC PAGE STYLES ===== */

/* Page Header */
.music-header {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/images/music/music-header.jpg') center/cover;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.music-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    font-family: 'Playfair Display', serif;
}

.music-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #ccc;
}

/* Featured Track Section */
.featured-section {
    padding: 3rem 0;
    background: var(--bg-dark);
}

.featured-card {
    display: grid;
    width: 100%;
    grid-template-columns: 65% 35%; /* wider image column */
    gap: 5rem; /* more space between image and text */
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(197,165,114,0.2);
}

.featured-card-wrapper {
    display: grid;
    width: 80%;
    grid-template-columns: 420px 1fr; /* wider image column */
    gap: 5rem; /* more space between image and text */
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(197,165,114,0.2);
}

.featured-image {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center 20%; /* Shows more of the top/head */
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.featured-image-wrapper {
    width: 300px;
    height: 169px;  /* 16:9 ratio (300/16*9 = 169) */
    overflow: hidden;
    border-radius: 10px;
    background: #1a1a1a;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* This will now work perfectly with landscape ratio */
    object-position: center;
}

.featured-content {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.featured-content h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.3rem;
}

.featured-artist {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.featured-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.featured-buttons {
    display: flex;
    gap: 1rem;
}

.btn-youtube {
    background: #FF0000;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,0,0,0.3);
}

.btn-spotify {
    background: #1DB954;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-spotify:hover {
    background: #169c46;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29,185,84,0.3);
}

/* Music Catalog */
.music-catalog {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    margin: 0 auto;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    width: 80%;
}

.catalog-header h2 {
    color: white;
    font-size: 2rem;
}

.catalog-stats {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Year Section */
.year-section {
    margin-bottom: 2rem;
    background: rgba(40,40,40,0.95);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(197,165,114,0.2);
}

.year-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(50,50,50,0.9);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(197,165,114,0.2);
}

.year-header:hover {
    background: rgba(60,60,60,0.9);
}

.year-header h3 {
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.year-header h3 span {
    color: var(--primary-color);
    font-size: 0.9rem;
    background: rgba(197,165,114,0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

.year-toggle {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Genre Section */
.genre-section {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.genre-section:last-child {
    border-bottom: none;
}

.genre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.genre-header h4 {
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.genre-header h4 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.genre-count {
    color: var(--primary-color);
    font-size: 0.9rem;
    background: rgba(197,165,114,0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

/* Track List */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.track-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.track-item:hover {
    background: rgba(255,255,255,0.05);
}

.track-artwork {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
}

.track-info {
    display: flex;
    flex-direction: column;
}

.track-title {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.track-artist {
    color: #aaa;
    font-size: 0.85rem;
}

.track-duration {
    color: #888;
    font-size: 0.9rem;
}

.track-actions {
    display: flex;
    gap: 0.5rem;
}

.track-action {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.8rem;
}

.track-action.youtube {
    background: #FF0000;
}

.track-action.spotify {
    background: #1DB954;
}

.track-action:hover {
    transform: scale(1.1);
}

.track-action.no-link {
    background: #444;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Empty State */
.no-tracks {
    padding: 2rem;
    text-align: center;
    color: #888;
}

/* Responsive */
@media (max-width: 992px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .featured-content {
        padding: 0 2rem 2rem 2rem;
    }
}

@media (max-width: 768px) {
    .music-title {
        font-size: 2.5rem;
    }
    
    .featured-buttons {
        flex-direction: column;
    }
    
    .btn-youtube, .btn-spotify {
        width: 100%;
        justify-content: center;
    }
    
    .track-item {
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
    }
    
    .track-artwork {
        display: none;
    }
    
    .track-actions {
        grid-column: 2;
    }
}