/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
}

h1, h2, h3, h4 {
    color: #ffffff;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    padding: 15px 40px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: #ffc9db;
    font-size: 24px;
    letter-spacing: 1px;
    cursor: pointer;
}

.search-bar {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    width: 400px;
    outline: none;
    transition: border-color 0.2s;
}

.search-bar:focus {
    border-color: #ffc9db;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-pink {
    background-color: #ffc9db;
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-pink:hover {
    background-color: #e0a3bb;
}

.profile-pic-small {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    border: 2px solid #ffc9db;
    cursor: pointer;
}

/* Profile Layout */
.profile-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-pic-large {
    width: 120px;
    height: 120px;
    background-color: #333;
    border-radius: 50%;
    border: 3px solid #ffc9db;
}

.user-details h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.handle {
    color: #888;
    margin-bottom: 15px;
}

.bio {
    max-width: 400px;
    line-height: 1.5;
    color: #bbb;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #ffc9db;
    margin-bottom: 5px;
}

.stat-label {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Favorites Section */
.favorites-section {
    margin-bottom: 40px;
}

.favorites-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.favorite-card {
    background-color: #000000;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
    cursor: pointer;
}

.favorite-card:hover {
    transform: translateY(-5px);
}

.album-art {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #333;
    border-radius: 4px;
    margin-bottom: 15px;
}

.track-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.track-artist {
    color: #888;
    font-size: 14px;
}

/* Recent Activity & Global List Items */
.recent-activity h3 {
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.log-card {
    display: flex;
    align-items: center;
    background-color: #000000;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.log-art {
    width: 80px;
    height: 80px;
    background-color: #333;
    border-radius: 4px;
    margin-right: 20px;
    flex-shrink: 0;
}

.log-details {
    flex-grow: 1;
    padding-right: 20px;
}

.review-text {
    margin-top: 10px;
    color: #bbb;
    line-height: 1.4;
}

.log-action-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-play {
    background-color: #1e1e1e;
    color: #ffc9db;
    border: 1px solid #ffc9db;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-play:hover {
    background-color: #ffc9db;
    color: #000;
}

.log-rating {
    background-color: #1e1e1e;
    border: 2px solid #ffc9db;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0; 
}

.rating-score {
    font-size: 20px;
    font-weight: bold;
    color: #ffc9db;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #121212;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 12px;
    width: 450px;
    min-height: 650px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-input {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    width: 100%;
    outline: none;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.modal-input:focus {
    border-color: #ffc9db;
}

textarea.modal-input {
    resize: vertical;
    border-radius: 12px;
}

.close-btn {
    color: #888;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #ffc9db;
}

/* Modal Dynamic Content Extensions */
.results-container {
    margin-top: 20px;
    flex-grow: 1;
    max-height: 480px;
    overflow-y: auto;
    text-align: left;
}

.result-item {
    background-color: #1e1e1e;
    padding: 12px;
    border: 1px solid #333;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.result-item:hover {
    border-color: #ffc9db;
}

.result-title {
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.result-artist {
    font-size: 14px;
    color: #888;
}

.log-section-header {
    margin-bottom: 20px;
    color: #ffc9db;
    text-align: center;
    font-size: 18px;
}

.input-label {
    display: block;
    text-align: left;
    color: #888;
    font-size: 14px;
    margin-bottom: 5px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-dark {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-dark:hover {
    background-color: #555;
}

/* Artist Page Specifics */
.artist-header {
    text-align: center;
    background-color: #000000;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.artist-header h2 {
    font-size: 36px;
    color: #ffc9db;
    margin-bottom: 10px;
}

/* Floating Native Audio Player */
.floating-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #121212;
    border: 2px solid #ffc9db;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    z-index: 1000;
    display: none;
    width: 400px;
}

.audio-track-info {
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: left;
    padding-right: 20px;
}

.audio-artist-info {
    color: #ffc9db;
    font-weight: normal;
    font-size: 12px;
    margin-top: 2px;
}

.close-player-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    transition: color 0.2s;
}

.close-player-btn:hover {
    color: #ffc9db;
}

/* Custom Progress Bar Elements */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #bbb;
    width: 100%;
}

#seek-bar {
    flex-grow: 1;
    cursor: pointer;
    accent-color: #ffc9db; 
}

/* Placeholder colors */
.placeholder-1 { background: linear-gradient(45deg, #2b1055, #7597de); }
.placeholder-2 { background: linear-gradient(45deg, #1f4037, #99f2c8); }
.placeholder-3 { background: linear-gradient(45deg, #cb2d3e, #ef473a); }
.placeholder-4 { background: linear-gradient(45deg, #4b6cb7, #182848); }
.placeholder-5 { background: linear-gradient(45deg, #834d9b, #d04ed6); }
.placeholder-6 { background: linear-gradient(45deg, #141e30, #243b55); }