:root {
    --primary-color: #ff6b00;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #ffffff;
    --secondary-text-color: #b3b3b3;
    --spacing-unit: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow: auto;
}

.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-unit);
    background-color: var(--surface-color);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

header {
    display: flex;
    justify-content: center;
    padding: var(--spacing-unit) 0 0 0;
    /* Zero bottom padding */
    position: relative;
}

#install-btn {
    margin-top: 0;
    margin-bottom: 5px;
    align-self: center;
    /* Center in column flex container */
    z-index: 5;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.subtitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.header-img {
    height: 120px;
    /* Adjust height as needed */
    max-width: 100%;
    object-fit: contain;
    /* Clean white look with glow */
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* Reduced from 2rem to pull items closer */
}

.vu-outer {
    width: 340px;
    height: 95px;
    background: #000;
    border-radius: 16px;
    border: 1px solid #333;
    padding: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 107, 0, 0.1);
    margin-bottom: 0.5rem;
    /* Reduced margin to give space to text */
}

/* ... existing code ... */

.track-info {
    text-align: center;
    margin: 0.5rem 0 1.5rem 0;
    height: 100px;
    /* Increased height for multiple lines */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Align text to bottom so it grows upwards */
    width: 100%;
}

h1 {
    font-size: 1.4rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    font-weight: 700;

    /* Allow wrapping */
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
    padding: 0 10px;
}

p {
    color: var(--primary-color);
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.3);

    /* Allow wrapping */
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
    padding: 0 10px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.play-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
}

.play-btn svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.volume-container {
    width: 80%;
    max-width: 300px;
    display: flex;
    align-items: center;
}

#volume-slider {
    width: 100%;
    appearance: none;
    height: 4px;
    background: #444;
    border-radius: 2px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

footer {
    display: flex;
    justify-content: center;
    padding-top: var(--spacing-unit);
    padding-bottom: 10px;
}

.copyright {
    color: #00bfff;
    /* Deep Sky Blue */
    font-size: 0.7rem;
    font-family: monospace;
    text-align: center;
    text-shadow: 0 0 5px #00bfff, 0 0 10px #00bfff;
    /* Blue glow */
    opacity: 0.8;
}

#install-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
}