*,
*::before,
*::after {
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    color: white;
    justify-content: space-between;
    padding: 70px 30px;

    background:
        linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5)),
        url("./images/dafefd9440637dd9b0240098474b6d8dd9487d8c.png");
    background-position: 50% 20%;
    background-size: cover;
    background-repeat: no-repeat;
    align-items: center;
}



header h1 {
    font-size: 3rem;
    font-weight: 600;
}

header a {
    text-decoration: none;
    color: white;
}

.search {
    position: relative;
    top: -25px;
    /* Adjust this value to control how much overlaps */
    margin: 0 30px;
    z-index: 10;

    /* Your existing styles */
    display: flex;
    justify-content: space-between;
    border: 1px solid gray;
    font-size: 1.25rem;
    border-radius: 10px;
    background-color: white;
}



.search img {
    width: 30px;
    padding: 10px;
}

.search input {
    align-self: center;
    border: none;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

.search .left {
    display: flex;
    width: 100%;
}

.search button {
    padding: 5px 20px;
    border-radius: 0;
    background: lightgray;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    border-radius: 0 10px 10px 0;
    padding: 0 40px;
}

.movie-feed {
    background-color: whitesmoke;
    width: 100vw;
    height: 100vh;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 75px;
    padding-bottom: 50px;
    overflow-y: auto;
}

.movie-feed .explore {
    color: #DFDDDD;
    text-align: center;
    font-family: Inter;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
    padding-top: 10px;
}

.movie-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    position: relative;
}

.movie-poster {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
}

.movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.movie-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.movie-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.movie-rating {
    font-weight: 500;
}

.movie-genre {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
    font-style: italic;
}

.add-to-watchlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.add-to-watchlist-btn:hover {
    background-color: #555;
}

.movie-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-description.expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.read-more-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 0;
    text-decoration: underline;
    margin-top: 5px;
}

.read-more-btn:hover {
    color: #0056b3;
}

