body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}
header {
    background-color: #333;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header h1 {
    margin: 0;
}
.home-icon {
    font-size: 24px;
    color: white;
    cursor: pointer;
    text-decoration: none;
}
.search-container {
  max-width: 900px;      /* controls line length */
  margin: 0 auto;        /* centers the block */
  padding: 1rem;
}

.search-container p {
  text-align: center;    /* centers the text */
  line-height: 1.6;
  word-wrap: break-word; /* safety for long URLs */
  font-weight: 700;
}

.search-container input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 60%;
    max-width: 400px;
}
.search-container button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.search-container button:hover {
    background-color: #555;
}
.movie-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
    gap: 24px;
    padding: 24px;

    justify-content: center;
}
.movie-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}
.movie-card:hover {
    transform: scale(1.05);
}
.movie-card img {
    width: 100%;
    height: 450px;   /* bigger posters */
    object-fit: contain;
    background-color: #000;
}

.movie-info {
    padding: 15px;
}
.movie-info h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
}
.release-date {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}
.button {
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    text-decoration: none;
}
.button:hover {
    background-color: #555;
}
.buttons-container {
    display: flex;
    justify-content: space-between;
}

/* Modal (for the trailer video) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Darken background */
    padding-top: 60px;
}
.modal-content {
    background-color: transparent;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    position: relative;
}
.modal-content iframe {
    width: 100%;
    height: 700px; /* Increase the height */
    border: none; /* Remove the white border */
}
.close {
    color: #aaa;
    font-size: 50px; /* Larger close button */
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}
.site-title {
  font-size: 1.8rem;   /* main title */
  font-weight: 700;
}

.site-title .byline {
  font-size: 0.6em;    /* smaller, relative */
  font-weight: 400;
  opacity: 0.7;
}
