:root {
    --bg-black: #000000;
    --lime: #32CD32;     
    --baby-blue: #89CFF0; 
    --dark-gray: #1a1a1a;
    --text-white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
}

.hidden { display: none !important; }

/* WELCOME SCREEN */
#welcome-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-black);
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 100;
}
.welcome-content { text-align: center; animation: fadeIn 2s ease; }
.welcome-content h1 { font-size: 3rem; color: var(--lime); margin-bottom: 20px; letter-spacing: 4px; }
.welcome-content p { color: var(--baby-blue); font-size: 1.2rem; animation: pulse 2s infinite; }

/* MAIN APP */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid #333;
    background-color: var(--bg-black); position: sticky; top: 0; z-index: 50;
}
.logo { color: var(--lime); font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; }

.page-title {
    color: var(--text-white); font-size: 1.8rem; margin: 25px 20px 10px 20px;
    border-left: 5px solid var(--baby-blue); padding-left: 15px;
}

#favorites-container, #search-results {
    padding: 20px; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

/* MOVIE CARD (Minimal Version) */
.movie-card {
    background-color: var(--dark-gray);
    border-radius: 10px; overflow: hidden;
    border: 1px solid #333; transition: 0.2s;
    cursor: pointer; position: relative;
}
.movie-card:hover { transform: scale(1.03); border-color: var(--lime); }

.movie-poster { width: 100%; height: 200px; object-fit: cover; }
.no-poster {
    width: 100%; height: 200px; background-color: #333;
    display: flex; justify-content: center; align-items: center; color: #555;
}

.movie-title {
    color: var(--text-white); font-size: 0.9rem; padding: 10px;
    text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* SEARCH OVERLAY */
#search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95); z-index: 200;
    padding: 20px; overflow-y: auto;
}
.search-header { display: flex; gap: 10px; margin-bottom: 20px; }
#search-input {
    flex-grow: 1; padding: 15px; background-color: var(--dark-gray);
    border: 2px solid var(--lime); border-radius: 8px; color: white; outline: none;
}
.close-btn { background: none; border: none; color: var(--baby-blue); font-weight: bold; cursor: pointer; }

/* NEW: DETAILS SCREEN STYLING */
#details-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-black); z-index: 300;
    overflow-y: auto; padding-bottom: 40px;
    animation: slideUp 0.3s ease;
}

.back-btn {
    display: flex; align-items: center; gap: 5px;
    background: none; border: none; color: var(--baby-blue);
    font-size: 1.1rem; padding: 20px; cursor: pointer; font-weight: bold;
}

.details-content { padding: 0 20px; text-align: center; max-width: 600px; margin: 0 auto; }

#detail-poster {
    width: 200px; border-radius: 10px;
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.2); margin-bottom: 20px;
}

#detail-title { color: var(--lime); font-size: 2rem; margin-bottom: 20px; line-height: 1.2; }

.section-label {
    color: #666; font-size: 0.8rem; letter-spacing: 2px;
    margin-top: 20px; margin-bottom: 10px; border-bottom: 1px solid #333; display: inline-block;
}

.platform-container-large {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 30px;
}

.large-platform-tag {
    background-color: var(--baby-blue); color: black;
    padding: 8px 15px; border-radius: 20px; font-weight: bold; font-size: 1rem;
}

#detail-fav-btn {
    margin-top: 30px; width: 100%; padding: 15px;
    background: transparent; border: 2px solid var(--lime); color: var(--lime);
    font-size: 1.2rem; font-weight: bold; border-radius: 8px; cursor: pointer;
}

#detail-overview {
    color: #ccc; line-height: 1.6; text-align: left; margin-top: 20px;
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }