/* ===== Global Styles ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Vend Sans", sans-serif;
}

body {
    background-color: #121212;
    color: #eee;
    line-height: 1.3;
    display: flex;
    justify-content: center;
    padding: 1.8rem;
}

.wrapper {
    width: 100%;
    max-width: 900px;
}

/* ===== Search Section ===== */
.search-section {
    margin-bottom: 2rem;
    text-align: center;
}

.search-section h3 {
    margin-bottom: 1rem;
    font-weight: 400;
}

.search {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.search input {
    width: 60%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    outline: none;
}

.search button {
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    background-color: #ff3d00;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search button:hover {
    background-color: #ff5722;
}

/* ===== Movie Cards ===== */
#results {
    display: grid;
    gap: 1.2rem;
}

.card {
    background-color: #1f1f1f;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}



.card h4 {
    margin-bottom: 0.5rem;
    text-align: center;
}

.card p {
    font-size: 0.95rem;
    text-align: justify;
    margin-bottom: 1rem;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: center;
    background-color: hsl(0, 0%, 25%);
    width: 100%;
    padding: 20px;
    border-radius: 10px;
}

.links a {
    text-decoration: none;
    color: #ff3d00;
    transition: color 0.3s;
}

.links a:hover {
    color: hsl(14, 100%, 70%);
}

.links span {
    margin-bottom: 0.1rem;
    font-weight: 500;
}
