/* wplayer-styles.css */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    display: flex; /* Keep flex to allow vertical centering if it's the main content */
    justify-content: center; /* Center horizontally for the whole page */
    align-items: center; /* Center vertically for the whole page */
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}
.wplayer-container {
    background-color: #ffffff;
    border-radius: 1.5rem; /* More rounded corners */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid #e0e0e0;
    margin: 0 auto; /* This line ensures horizontal centering within its parent */
}
.wplayer-header {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}
.wplayer-cover {
    width: 150px;
    height: 150px;
    background-color: #aeb6bf; /* Placeholder color */
    border-radius: 1rem;
    margin: 1.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f8f9fa;
    font-size: 3rem;
    font-weight: 600;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden; /* Ensure image fits within bounds */
}
.wplayer-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if necessary */
}
.wplayer-info {
    position: relative;
    width: 100%;
    margin-bottom: 0.3rem;
}
.wplayer-info h3 {
    font-size: 1.4rem; /* Song Title */
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0.2rem; /* Reduced margin for closer spacing */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}
.wplayer-info .artist-name { /* New class for artist styling */
    font-size: 1.1rem; /* 1 size larger than original p, now 1.1rem */
    font-weight: 700; /* Bold */
    color: #7f8c8d;
    margin-bottom: 0.3rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}
.wplayer-info .album-title { /* New class for album styling */
    font-size: 1.1rem; /* Adjusted to be 2 sizes larger (0.9 -> 1.0 -> 1.1) */
    font-weight: 700; /* Bold */
    color: #3498db; /* Blue color */
    margin-bottom: 0.3rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}
.wplayer-info .playlist-status-info { /* New class for playlist status */
    font-size: 0.9rem; /* Smaller, appropriate for status */
    color: #555; /* A subtle color */
    border: 1px solid #ddd; /* 1pt border */
    border-radius: 0.5rem; /* Slightly rounded corners for the border */
    padding: 0.4rem 0.6rem;
    margin-top: 0.5rem; /* Space from artist name */
    display: inline-block; /* Inline block to fit content and border */
    max-width: 100%; /* Ensure it respects container width */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}


.wplayer-soundwave {
    width: 100%;
    height: 60px; /* Height for the sound wave canvas */
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa; /* Light background for the wave */
    border-radius: 0.75rem;
    overflow: hidden;
}
.wplayer-soundwave canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.wplayer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem; /* Adjusted margin after soundwave */
    margin-bottom: 1.5rem;
}
.wplayer-control-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 9999px; /* Fully rounded */
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.wplayer-control-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
.wplayer-control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.wplayer-control-btn.play-pause {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    background-color: #2ecc71; /* Green for play/pause */
}
.wplayer-control-btn.play-pause:hover {
    background-color: #27ae60;
}

.file-input-label {
    display: inline-block;
    background-color: #9b59b6; /* Purple for file selection */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.file-input-label:hover {
    background-color: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
.file-input-label:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
input[type="file"] {
    display: none; /* Hide the default file input */
}

.message-box {
    background-color: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #34495e;
    display: none; /* Hidden by default */
}
.message-box.active {
    display: block;
}
