* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
  height: 100vh;
  margin: 0;
  background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 40%, #ffb92a 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Container Style */
.container {
    font-size: 16px;
    width: 90vw;
    max-width: 38em;
    padding: 3em 2em;
    background: #1f1f2e;
    border-radius: 1em;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

/* Search Container */
.search-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1em;
    margin-bottom: 2em;
}

.search-container input,
.search-container button {
    font-size: 1em;
    border-radius: 0.5em;
    padding: 0.75em;
    outline: none;
    transition: 0.3s ease-in-out;
}

.search-container input {
    background-color: #2d2d3a;
    color: #ffffff;
    border: 1px solid #555;
}

.search-container input:focus {
    border-color: #ffb92a;
}

.search-container button {
  background: #ffb92a;
  color: #1a1a1a;
  font-weight: 600;
  border: none;
  border-radius: 0.5em;
  box-shadow: 0 0 10px rgba(255, 185, 42, 0.6);
  transition: 0.3s;
}

.search-container button:hover {
  background: #ffd76b;
  box-shadow: 0 0 20px rgba(255, 185, 42, 0.9);
}


/* Result Display */
#result {
    color: #ffffff;
}

/* Info Section */
.info {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 1.2em;
    align-items: center;
    margin-bottom: 1.5em;
}

.poster {
    width: 100%;
    border-radius: 0.5em;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Title */
h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 0.3em;
    text-align: center;
}

/* Rating */
.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin: 0.5em 0;
}

.rating img {
    width: 1.4em;
    filter: drop-shadow(0 0 5px #ffb92a);
}

.rating h4 {
    font-size: 1.1em;
    font-weight: 500;
}

/* Movie Details */
.details {
    display: flex;
    justify-content: center;
    gap: 1em;
    color: #bbbbbb;
    font-size: 0.9em;
    margin: 0.6em 0;
}

/* Genre Tags */
.genre {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
    margin-top: 1em;
}

.genre div {
    background-color: #2d2d3a;
    border: 1px solid #444;
    padding: 0.4em 1em;
    font-size: 0.8em;
    border-radius: 2em;
    color: #ffb92a;
    font-weight: 500;
    transition: 0.2s;
}


/* Plot & Cast */
h3 {
    font-weight: 600;
    margin: 1.2em 0 0.5em;
    font-size: 1.2em;
}

p {
    font-size: 0.95em;
    font-weight: 300;
    line-height: 1.7em;
    color: #cccccc;
    text-align: justify;
}

.msg {
    text-align: center;
    font-size: 1.1em;
    margin-top: 2em;
    color: #ffb92a;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .container {
        font-size: 14px;
        padding: 2em 1.2em;
    }

    .info {
        grid-template-columns: 1fr;
    }

    .poster {
        margin: auto;
        width: 70%;
        max-height: 12em;
    }

    .search-container {
        grid-template-columns: 1fr;
    }

    .search-container button {
        width: 100%;
    }
}
