* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    height: 80px;
    background-color: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#form {
    width: 100%;
    max-width: 500px;
}

#searchInput {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #333;
    color: white;
    outline: none;
    transition: 0.3s ease;
}

#searchInput::placeholder {
    color: #aaa;
}

#searchInput:focus {
    background-color: #444;
    box-shadow: 0 0 0 2px #e50914;
}

/* ------------------------------------------- */
/* --------------------------circle-x---------------------- */

.inputWrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

#searchInput {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #333;
    color: white;
    outline: none;
}

.clearIcon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #aaa;
    cursor: pointer;
    display: none;
    /* Yazı yokken gizli */
    transition: color 0.2s ease;
}

.clearIcon:hover {
    color: #e50914;
}

.clearIcon svg {
    width: 100%;
    height: 100%;
}


/* ------------------------------------------- */

.movies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie {
    background-color: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.movie:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.moviePicture {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
}

.info {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.movieName {
    font-size: 1rem;
    font-weight: bold;
}

.imdbPoint {
    /* background-color: #2c9b00; */
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* ----------------BUTTON------------------- */

.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination button {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 1rem;
    margin: 0 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pagination button:hover {
    background-color: #c30811;
}