:root {
    --bg-color: #f0f2f5;
    --header-bg: rgba(255, 255, 255, 0.85);
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --accent-color: #6c5ce7;
    --accent-hover: #5b4cc4;
    --border-color: #e1e4e8;
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --font-family: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dark-mode {
    --bg-color: #0f172a;
    --header-bg: rgba(15, 23, 42, 0.85);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-color: #818cf8;
    --accent-hover: #6366f1;
    --border-color: #334155;
    --card-bg: #1e293b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    transition: var(--transition);
    overflow-x: hidden;
}

/* Glass Header */
/* Glass Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: center;
    /* Center everything by default */
    align-items: center;
    padding: 0 2rem;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
    box-sizing: border-box;
}

.header-center-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-center-logo .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.header-right {
    position: absolute;
    right: 2rem;
    display: flex;
    align-items: center;
}

/* Search Container (Below Header) */
.search-container-wrapper {
    margin-top: 90px;
    /* Header height + spacing */
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 2rem;
    box-sizing: border-box;
}

.search-form-full {
    width: 100%;
    max-width: 800px;
    /* Width of the content logic */
    display: flex;
    position: relative;
}

.square-search {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    border-radius: 0;
    /* Square corners */
    outline: none;
    transition: var(--transition);
}

.square-search:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
}

.search-btn-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
}

/* Theme Toggle */
.theme-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-btn:hover {
    background-color: var(--bg-color);
    color: var(--accent-color);
}

/* Main Content */
.content {
    margin-top: 20px;
    /* Reduced since search is separate block now */
    padding: 1rem 2rem;
    max-width: 800px;
    /* Match search width */
    margin-left: auto;
    margin-right: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    /* Added separator for header */
    padding-bottom: 1rem;
}

.page-title {
    font-size: 1.8rem;
    /* Slightly smaller */
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.result-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Song List (Text Only Style) */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.song-item {
    position: relative;
    /* For progress bar positioning */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 0.5rem 0.5rem;
    /* Reduced vertical padding */
    border-radius: 0;
    box-shadow: none !important;
    /* Force no shadow */
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    cursor: pointer;
    border-top: none;
    border-left: none;
    border-right: none;
    transform: none !important;
    /* Force no transform */
}

/* New Image Icon */
.list-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 15px;
    flex-shrink: 0;
}

.progress-bar-audio {
    position: absolute;
    bottom: -1px;
    /* Align with bottom border */
    left: 0;
    height: 2px;
    /* Thin line */
    width: 0%;
    background-color: var(--accent-color);
    transition: width 0.1s linear;
    z-index: 10;
}

.song-item:last-child {
    border-bottom: none;
}

.song-item:hover {
    background-color: transparent;
    /* No hover background */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.dark-mode .song-item:hover {
    background-color: transparent;
}

.song-details-simple {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    flex-grow: 1;
}

.list-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.song-text {
    font-weight: 400;
}

.download-btn-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: transparent;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    text-decoration: none;
    font-size: 1rem;
}

.download-btn-simple:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* New Tag */
.new-tag {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Downloading Item */
#downloading-section {
    margin-bottom: 2rem;
}

.download-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.fa-spinner {
    color: var(--accent-color);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: var(--bg-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

/* New Song Animation */
.new-song-anim {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-results {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-header {
        padding: 0 1rem;
        height: 70px;
        flex-direction: row;
    }

    .header-right {
        right: 1rem;
    }

    .content {
        margin-top: 20px;
        padding: 1rem;
    }

    .search-wrapper input {
        width: 100%;
    }

    .search-wrapper input:focus {
        width: 100%;
    }
}