@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

body {
    font-family: 'Orbitron', monospace;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('hmm.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #e6e6fa;
    text-align: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 25, 35, 0.4);
    z-index: -1;
}

.container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(25, 25, 35, 0.4);
    border: 2px solid #8b008b;
    border-radius: 15px;
    box-shadow: 
        0 0 30px #8b008b,
        inset 0 0 30px rgba(139, 0, 139, 0.2);
    backdrop-filter: blur(10px);
}

h1 {
    color: #e6e6fa;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 
        0 0 15px #8b008b,
        0 0 25px #8b008b,
        0 0 35px #8b008b;
    letter-spacing: 3px;
    text-transform: uppercase;
}

h2 {
    color: #e6e6fa;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 0 10px #8b008b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    color: #e6e6fa;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 5px #8b008b;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #e6e6fa;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px #8b008b;
}

/* Special styling for playlist selection */
#playlist-select-label {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.playlist-selection-frame {
    background: rgba(25, 25, 35, 0.9);
    border: 2px solid #8b008b;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 15px rgba(139, 0, 139, 0.4);
    margin-bottom: 1rem;
}

.playlist-selection-frame label {
    margin-bottom: 0.75rem;
}

.playlist-selection-frame select {
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
    padding: 0.5rem 0;
}

input, select {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem;
    border: 2px solid #8b008b;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Orbitron', monospace;
    background: rgba(25, 25, 35, 0.9);
    color: #e6e6fa;
    text-align: center;
    box-shadow: 0 0 15px rgba(139, 0, 139, 0.4);
    transition: all 0.3s ease;
}

/* Special styling for playlist dropdown */
#playlist-select {
    font-size: 1.2rem;
    padding: 1rem;
    background: rgba(25, 25, 35, 0.95);
}

/* Smaller duration field */
#duration {
    max-width: 120px;
    font-size: 1.1rem;
    padding: 0.6rem;
}

input:focus, select:focus {
    outline: none;
    border-color: #8b008b;
    box-shadow: 
        0 0 20px #8b008b,
        0 0 30px rgba(139, 0, 139, 0.6);
    background: rgba(139, 0, 139, 0.2);
}

/* Style dropdown options */
select option {
    background: rgba(25, 25, 35, 0.95);
    color: #e6e6fa;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    padding: 0.5rem;
}

select option:hover {
    background: rgba(139, 0, 139, 0.3);
}

button {
    background: linear-gradient(45deg, #1db954, #1ed760);
    color: #e6e6fa;
    border: 2px solid #1db954;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(29, 185, 84, 0.6),
        inset 0 0 15px rgba(230, 230, 250, 0.1);
    margin: 0.5rem;
}

button:hover {
    background: linear-gradient(45deg, #1ed760, #1db954);
    box-shadow: 
        0 0 30px #1db954,
        0 0 40px rgba(29, 185, 84, 0.8),
        inset 0 0 20px rgba(230, 230, 250, 0.2);
    transform: translateY(-2px);
}

button:disabled {
    background: linear-gradient(45deg, #666, #888);
    border-color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.back-button {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    border-color: #4a90e2;
    box-shadow: 
        0 0 20px rgba(74, 144, 226, 0.6),
        inset 0 0 15px rgba(230, 230, 250, 0.1);
}

.back-button:hover {
    background: linear-gradient(45deg, #357abd, #4a90e2);
    box-shadow: 
        0 0 30px #4a90e2,
        0 0 40px rgba(74, 144, 226, 0.8),
        inset 0 0 20px rgba(230, 230, 250, 0.2);
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.button-group button {
    flex: 1;
    min-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#regenerate-button {
    background: linear-gradient(45deg, #8b4513, #a0522d);
    border-color: #8b4513;
    box-shadow: 
        0 0 20px rgba(139, 69, 19, 0.6),
        inset 0 0 15px rgba(230, 230, 250, 0.1);
}

#regenerate-button:hover {
    background: linear-gradient(45deg, #a0522d, #8b4513);
    box-shadow: 
        0 0 30px #8b4513,
        0 0 40px rgba(139, 69, 19, 0.8),
        inset 0 0 20px rgba(230, 230, 250, 0.2);
}

#logout-button {
    background: linear-gradient(45deg, #2a2a2a, #404040);
    border-color: #2a2a2a;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    box-shadow: 
        0 0 10px rgba(42, 42, 42, 0.4),
        inset 0 0 5px rgba(230, 230, 250, 0.05);
    opacity: 0.7;
}

#logout-button:hover {
    background: linear-gradient(45deg, #404040, #2a2a2a);
    box-shadow: 
        0 0 15px #2a2a2a,
        0 0 25px rgba(42, 42, 42, 0.6),
        inset 0 0 10px rgba(230, 230, 250, 0.1);
    opacity: 1;
}

.playlist-info {
    background: rgba(139, 0, 139, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 2px solid #8b008b;
    box-shadow: 0 0 20px rgba(139, 0, 139, 0.4);
}

.playlist-info p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.track-list {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #8b008b;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: rgba(25, 25, 35, 0.9);
    box-shadow: 0 0 20px rgba(139, 0, 139, 0.4);
}

.track-list::-webkit-scrollbar {
    width: 8px;
}

.track-list::-webkit-scrollbar-track {
    background: rgba(25, 25, 35, 0.9);
    border-radius: 4px;
}

.track-list::-webkit-scrollbar-thumb {
    background: #8b008b;
    border-radius: 4px;
    box-shadow: 0 0 5px #8b008b;
}

.track-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(139, 0, 139, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.track-item:hover {
    background: rgba(139, 0, 139, 0.2);
}

.track-item:last-child {
    border-bottom: none;
}

.track-info {
    flex: 1;
    text-align: left;
}

.track-name {
    font-weight: 700;
    color: #e6e6fa;
    text-shadow: 0 0 5px #8b008b;
    margin-bottom: 0.25rem;
}

.track-artist {
    color: #dda0dd;
    font-size: 0.9rem;
    text-shadow: 0 0 3px #8b008b;
}

.track-duration {
    color: #e6e6fa;
    font-weight: 700;
    text-shadow: 0 0 5px #8b008b;
    min-width: 60px;
    text-align: right;
}

#playlist-link {
    color: #e6e6fa;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border: 2px solid #8b008b;
    border-radius: 8px;
    display: inline-block;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(139, 0, 139, 0.4);
    background: rgba(139, 0, 139, 0.2);
}

#playlist-link:hover {
    background: rgba(139, 0, 139, 0.4);
    box-shadow: 0 0 25px #8b008b;
    transform: translateY(-2px);
}

.search-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-input-frame {
    flex: 1;
}

.search-input-frame label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e6e6fa;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-input-frame input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #1db954;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #e6e6fa;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.3);
}

.search-input-frame input:focus {
    outline: none;
    border-color: #1ed760;
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.6);
    background: rgba(0, 0, 0, 0.5);
}

.discover-weekly-button {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-color: #ff6b35;
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.6),
        inset 0 0 15px rgba(230, 230, 250, 0.1);
    white-space: nowrap;
}

.discover-weekly-button:hover {
    background: linear-gradient(45deg, #f7931e, #ff6b35);
    box-shadow: 
        0 0 30px #ff6b35,
        0 0 40px rgba(255, 107, 53, 0.8),
        inset 0 0 20px rgba(230, 230, 250, 0.2);
}

.discover-weekly-button:disabled {
    background: linear-gradient(45deg, #666, #888);
    border-color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group button {
        min-width: auto;
    }
    
    .track-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .track-duration {
        text-align: left;
    }
}
