body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, Arial, sans-serif;
    background-color: #ffffff !important;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: #333333;
    position: relative;
    padding-top: 15vh;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
    z-index: 1;
    opacity: 0.2;
}

.stars::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #666;
    border-radius: 50%;
    box-shadow: 
        100px 200px 1px #666, 300px 150px 2px #666, 500px 300px 1px #666, 
        700px 100px 2px #666, 900px 400px 1px #666, 200px 600px 2px #666,
        400px 500px 1px #666, 600px 250px 2px #666, 800px 350px 1px #666;
    animation: twinkle 3s infinite;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    z-index: 2;
    background: linear-gradient(to right, #010101, #666666);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.form-container {
    z-index: 2;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

#movie-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#movie-request {
    width: 100%;
    max-width: 400px;
    padding: 18px 20px;
    font-size: 0.95em;
    color: #333333;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

#movie-request:focus {
    border-color: #666666;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

#movie-request::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-style: italic;
    font-size: 0.9em;
}

#submit-btn {
    padding: 18px 30px;
    font-size: 1.1em;
    color: #ffffff;
    background: linear-gradient(to right, #333333, #666666);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#submit-btn:hover {
    background: linear-gradient(to right, #444444, #777777);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    color: #999999;
    box-shadow: none;
}

#loading {
    margin-top: 20px;
    font-size: 1em;
    color: #666666;
    display: none;
    z-index: 2;
    position: relative;
    min-height: 24px;
}

#loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #666666;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

#loading-stage {
    display: none;
    font-size: 0.85em;
    color: #999999;
    margin-top: 5px;
}

.error-container {
    margin-top: 15px;
}

.error-message {
    color: #ff3860;
    background-color: rgba(255, 56, 96, 0.1);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    animation: fadeIn 0.3s;
}

.recommendations {
    margin-top: 30px;
    text-align: center;
    z-index: 2;
    font-size: 0.9em;
    color: #666666;
}

.char-counter {
    text-align: right;
    font-size: 0.8em;
    color: #666666;
    margin: 5px auto 0;
    display: none;
    max-width: 400px;
}

#cancel-btn {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    color: #333333;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9em;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

#cancel-btn:hover {
    background: #e5e5e5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.hot-playlists {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
    z-index: 2;
    padding: 0 10px;
}

.hot-playlist-item {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
    color: #555555;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.hot-playlist-item:hover {
    background: #f0f0f0;
    border-color: #cccccc;
    transform: translateY(-2px);
    color: #333333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.more-playlists {
    text-align: center;
    margin: 15px 0 10px;
    z-index: 2;
    position: relative;
}

.more-playlists-link {
    display: inline-block;
    font-size: 1em;
    color: #666666;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.more-playlists-link:hover {
    color: #333333;
}

.more-playlists-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #666666;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.more-playlists-link:hover::after {
    transform: scaleX(1);
}

/* Animations */
@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 768px) {
    body {
        justify-content: center;
        padding-top: 0;
    }
    
    h1 {
        font-size: 1.5em;
        line-height: 1.4;
        margin-bottom: 20px;
        max-width: 90%;
    }
    
    .form-container {
        max-width: 90%;
        padding: 0 15px;
    }
    
    #movie-search-form {
        flex-direction: column;
        gap: 15px;
    }
    
    #movie-request {
        max-width: 350px;
        font-size: 0.95em;
        padding: 16px 20px;
        min-height: 48px;
    }
    
    #submit-btn {
        font-size: 1em;
        padding: 16px 30px;
        max-width: 250px;
        min-height: 48px;
    }
    
    #loading {
        margin-top: 15px;
        font-size: 0.9em;
    }
    
    .error-container {
        margin-top: 10px;
    }
    
    .error {
        font-size: 0.8em;
        padding: 6px 12px;
    }
    
    .recommendations {
        margin-top: 25px;
        font-size: 0.8em;
        max-width: 90%;
        line-height: 1.4;
    }
    
    .char-counter {
        font-size: 0.75em;
        max-width: 350px;
    }
    
    .hot-playlists {
        flex-direction: column;
        align-items: center;
        margin-top: 25px;
        gap: 8px;
    }
    
    .hot-playlist-item {
        width: 90%;
        max-width: 350px;
        font-size: 0.8em;
        padding: 7px 15px;
        border-radius: 20px;
    }
    
    .more-playlists-link {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.3em;
    }
    
    #movie-request {
        max-width: 300px;
    }
    
    #submit-btn {
        max-width: 200px;
    }
    
    .hot-playlist-item {
        max-width: 300px;
    }
}