@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #ffffff;      /* Changed to white */
    --primary-purple: #9d7af5;    /* Light purple from image */
    --primary-green: #59e368;     /* Bright green from image */
    --light-bg: #f5f5ff;          /* Light background for content */
    --text-light: #ffffff;        /* White text */
    --text-dark: #282848;         /* Dark text */
    --accent-color: #1c2442;      /* Purple accent */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-dark);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    color: var(--text-dark);  /* Changed text color to dark for white background */
}

/* Navigation */
nav {
    background-color: var(--accent-color); /* Changed to purple for contrast */
    height: 60px;
    width: 100%;
    border-bottom: 1px solid rgba(157, 122, 245, 0.2);
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.nav-content {
    display: flex;
    align-items: center;
    height: 60px;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
}

.logo {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: 20px;
}

.nav-links {
    display: flex;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0 15px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-light);
}

.nav-links a.active {
    color: var(--text-light);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--primary-green);
}

/* Search Bar Styles */
.search-container {
    position: relative;
    margin-right: 20px;
}

.search-container input {
    background-color: rgba(107, 73, 245, 0.1);
    border: 1px solid rgba(157, 122, 245, 0.3);
    border-radius: 25px;
    color: var(--text-light);
    padding: 8px 15px 8px 40px;
    width: 310px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    background-color: rgba(107, 73, 245, 0.2);
    border-color: rgba(157, 122, 245, 0.6);
    box-shadow: 0 0 0 2px rgba(157, 122, 245, 0.2);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-purple);
    font-size: 1rem;
}

/* Main Content */
main {
    width: 100%;
    background-color: var(--primary-dark);
}

.page {
    display: none;
    width: 100%;
}

.page.active {
    display: block;
}

/* Banner Image */
.banner-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: block;
    max-height: 75vh; /* Limit height to ensure content is visible without scrolling */
}

.banner-image {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Player Container (Renamed from nowplaying-container) */
.player-container {
    width: 100%;
    background-color: var(--light-bg);
    padding: 20px 0;
    margin-top: 0;
    border-top: 1px solid rgba(157, 122, 245, 0.3);
    border-bottom: 1px solid rgba(157, 122, 245, 0.3);
}

.player-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* Play Button */
.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 20px;
    box-shadow: 0 0 15px rgba(157, 122, 245, 0.5);
    flex-shrink: 0;
}

.play-button:hover {
    transform: scale(1.05);
    background-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(157, 122, 245, 0.7);
}

.play-button i {
    font-size: 1.5rem;
    margin-left: 3px; /* Slight adjustment for play icon centering */
}

.hidden {
    display: none;
}

/* Song Details */
.song-details {
    display: flex;
    flex-direction: column;
}

.nowplaying-label {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.nowplaying-text {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

.status-text {
    color: rgba(40, 40, 72, 0.7);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Controls Container (keeping for consistency, but not used in updated design) */
.controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 0;
    background-color: var(--primary-dark);
}

/* Media Player Page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 10px;
    text-align: center;
}

.container p {
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.content-box {
    background-color: rgba(157, 122, 245, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(157, 122, 245, 0.2);
    padding: 30px;
    text-align: center;
    color: var(--text-dark);
}

/* Green accents */
.green-accent {
    color: var(--primary-green);
}

/* Media Query for Responsive Design */
@media (max-width: 768px) {
    .player-container {
        padding: 15px 0;
    }
    
    .player-content {
        padding: 0 15px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .play-button i {
        font-size: 1.2rem;
    }
    
    .nowplaying-text {
        font-size: 1rem;
    }
    
    .search-container input {
        width: 180px;
    }
}