/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-base: #0f0f11;
    --bg-surface: rgba(244, 244, 242, 0.05);
    --bg-overlay: rgba(0, 0, 0, 0.35);
    --text-primary: #f4f4f2;
    --text-secondary: #cfcec9;
    --text-muted: #989791;
    --accent-primary: #00c48c;
    --accent-primary-hover: #00e6a3;
    --accent-secondary: #c46a2d;
    --accent-secondary-hover: #e07c36;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg-overlay);
    padding: 40px 0;
    text-align: center;
    border-bottom: 3px solid var(--accent-primary);
}

header h1 {
    font-size: 3em;
    color: var(--accent-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.artist-media {
    margin-bottom: 15px;
}

.artist-video {
    width: 160px;
    height: 160px;
    object-fit: cover;
    display: block;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.tagline {
    font-size: 1.2em;
    color: var(--text-primary);
    font-style: italic;
}

/* Main Content */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 2em;
    color: var(--accent-primary);
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 196, 140, 0.35);
    padding-bottom: 10px;
}

/* Featured Section */
.featured-content {
    background: var(--bg-surface);
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 196, 140, 0.2);
}

.featured-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.featured-item img {
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.featured-info h3 {
    font-size: 2em;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.featured-info .type {
    display: inline-block;
    background: var(--accent-secondary);
    color: var(--text-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.featured-info p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Library */
.library-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.library-nav {
    display: inline-flex;
    gap: 10px;
}

.library-tab {
    border: 1px solid rgba(0, 196, 140, 0.35);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.95rem;
    cursor: pointer;
}

.library-tab.is-active {
    border-color: var(--accent-primary);
    background: rgba(0, 196, 140, 0.15);
}

.library-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.library-search-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.library-search {
    width: min(420px, 70vw);
    border: 1px solid rgba(244, 244, 242, 0.25);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    padding: 10px 12px;
}

.library-search::placeholder {
    color: var(--text-muted);
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.library-card {
    background: var(--bg-surface);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 196, 140, 0.2);
}

.library-card-clickable {
    cursor: pointer;
}

.library-card-clickable:hover {
    border-color: rgba(0, 196, 140, 0.55);
}

.library-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.25);
}

.library-card-info {
    padding: 16px;
}

.library-card-info h3 {
    color: var(--accent-primary);
    margin-bottom: 6px;
}

.library-card-type {
    display: inline-block;
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(196, 106, 45, 0.5);
    color: var(--accent-secondary-hover);
}

.library-empty {
    grid-column: 1 / -1;
    color: var(--text-secondary);
}

.album-detail {
    margin-top: 24px;
    background: var(--bg-surface);
    border: 1px solid rgba(0, 196, 140, 0.25);
    border-radius: 10px;
    padding: 18px;
}

.album-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.album-detail-close {
    border: 1px solid rgba(244, 244, 242, 0.25);
    background: rgba(0, 0, 0, 0.28);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
}

.album-detail-tracks {
    margin-left: 20px;
    color: var(--text-secondary);
    display: grid;
    gap: 8px;
}

/* Albums List */
.albums-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.album-card {
    background: var(--bg-surface);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 196, 140, 0.2);
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 230, 163, 0.28);
}

.album-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.album-info {
    padding: 20px;
}

.album-info h3 {
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.album-info .year {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.album-info .description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.album-info .track-count {
    margin-top: 15px;
    color: var(--accent-secondary);
    font-weight: bold;
}

/* Songs List */
.songs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.song-card {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(196, 106, 45, 0.25);
    transition: transform 0.3s ease;
}

.song-card:hover {
    transform: translateX(5px);
    border-color: var(--accent-secondary-hover);
}

.song-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.song-card h3 {
    color: var(--accent-primary);
    margin-bottom: 8px;
    font-size: 1.2em;
}

.song-card .album-name {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.song-card .duration {
    color: var(--text-secondary);
    font-size: 0.9em;
}


.media-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(244, 244, 242, 0.2);
    padding: 7px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.media-link + .media-link {
    margin-left: 8px;
}

.media-link-icon {
    font-size: 0.95em;
    line-height: 1;
}

.media-link-video {
    border-color: rgba(0, 196, 140, 0.45);
}

.media-link-video:hover,
.media-link-video:focus-visible {
    color: #001a12;
    background: var(--accent-primary-hover);
    border-color: var(--accent-primary-hover);
}

.media-link-spotify {
    border-color: rgba(196, 106, 45, 0.55);
}

.media-link-spotify:hover,
.media-link-spotify:focus-visible {
    color: #1d0f06;
    background: var(--accent-secondary-hover);
    border-color: var(--accent-secondary-hover);
}

/* Footer */
footer {
    background: var(--bg-overlay);
    padding: 30px 0;
    text-align: center;
    border-top: 3px solid var(--accent-primary);
    margin-top: 60px;
}

footer p {
    color: var(--text-muted);
}

.featured-info .type:hover {
    background: var(--accent-secondary-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    .artist-video {
        width: 120px;
        height: 120px;
    }
    
    .featured-item {
        flex-direction: column;
    }
    
    .featured-item img {
        max-width: 100%;
    }
    
    .albums-list,
    .songs-list,
    .library-grid {
        grid-template-columns: 1fr;
    }

    .library-search {
        width: 100%;
    }
}
