* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #121212;
    font-family: "Inter", sans-serif;
}

header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url(../assets/moviepost2.jpg)no-repeat;
    background-size: cover;
    height: 25vh;
    color: white;
    background-position: center;
}

.con-h {
    margin: auto 2rem;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0rem;
}

.con-h h1 {
    font-size: 4rem;
    font-weight: 800;
}

.con-h p {
    font-size: 1.135rem;
}

button {
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s ease;
    font-size: 16px;
}

button:hover {
    background-color: #b4b5b8;
}

.search {
    display: flex;
    justify-content: center;
    z-index: 1;
    position: absolute;
    top: 23.5vh;
    left: 50%;
    transform: translate(-50%, -25%);
    width: 80%;
}

#user-input {
    width: 75%;
    padding: 1rem 1rem 1rem 3.5rem;
    border-radius: 1em 0 0 1em;
    border: none;
    background: #2E2E2F;
    color: #a2a9b4;
    background-image: url("./assets/search.png");
    background-repeat: no-repeat;
    background-size: 2.275rem;
    background-position: 1em center;
    outline: none;
    font-size: 20px;
}

#user-input::placeholder {
    font-size: 20px;
    color: gray;
}

#s-btn {
    width: 20%;
    padding: 10px;
    border-radius: 0 0.5em 0.5em 0;
    ;
    border: none;
    color: white;
    background: #4B4B4B;
    cursor: pointer;
}

.s-btn:hover {
    background: black;
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    background: transparent;
    height: 85vh;
    padding-top: 2rem;
}

.m-list {
    margin: 2rem auto;
    width: 80%;
}

.poster {
    width: 11rem;
    height: 12rem;
}

.m-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.m-header,
.m-subheader {
    color: white;
}

.m-header {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    width: 40%;
}

.m-subheader {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}

.m-plot {
    color: #A5A5A5;
    overflow-y: auto;
    scrollbar-width: none;
}


.rating {
    font-size: 1rem;
}

.m-item {
    display: flex;
    gap: 2rem;
    width: 100%;
    height: 15rem;
    padding: 2rem 0 2rem 0;
    border-bottom: 1px solid #2C2C2C;

}

.add,
.delete {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    cursor: pointer;
}

.add-icon,
.delete-icon {
    width: 1rem;
    background: white;
    border-radius: 50%;
    padding: 0.25rem;
}

.star-icon {
    width: 1.25rem;
    background: transparent;
}

.camera-icon {
    width: 5rem;
}

.img-placeholder {
    text-align: center;
    color: #2E2E2F;
    font-weight: bold;
    font-size: 1.25rem;
    margin-top: 10em;
}

#notification {
    display: none;
    padding: 1rem;
    margin: 1rem auto;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
}

.bonus-buttons {
    margin-top: 10px;
    display: flex;
    gap: 20px;
}

.bonus-buttons button {
    background: #ffcc00;
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.bonus-buttons button:hover {
    background: #ffaa00;
}




.watchlist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    width: 90%;
    max-width: 1400px;
}

.watchlist-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 300px;
}

.section-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #2E2E2F;
}

.section-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.watchlist-item {
    background: #2E2E2F;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.watchlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.watchlist-poster {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.watchlist-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.watchlist-title {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.watchlist-meta {
    display: flex;
    gap: 1rem;
    color: #A5A5A5;
    font-size: 0.9rem;
}

.watchlist-year {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.watchlist-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.state-selector {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #4B4B4B;
    background: #1a1a1a;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    flex: 1;
    min-width: 120px;
}

.state-selector:hover {
    border-color: #666;
}

.remove-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #ff6b6b;
    background: transparent;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: #ff6b6b;
    color: white;
}

.delete-icon {
    width: 1.378rem;
    height: 1rem;
    color: white;
}

.remove-btn:hover .delete-icon {
    filter: brightness(0) invert(1);
}

.empty-section-msg {
    color: #666;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.empty-state {
    text-align: center;
    color: #666;
    margin-top: 5rem;
}

.empty-state p {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.empty-state button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #4B4B4B;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.empty-state button:hover {
    background: #666;
}


@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .watchlist-container {
        grid-template-columns: 1fr;
    }

    .watchlist-item {
        flex-direction: column;
    }

    .watchlist-poster {
        width: 100%;
        height: 200px;
    }

    .watchlist-actions {
        flex-direction: column;
    }

    .state-selector,
    .remove-btn {
        width: 100%;
    }

    .con-h h1 {
        font-size: 3rem;
    }

    header {
        height: 20vh;
    }
}