body {
    background-color: #0f0f0f;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

header {
    text-align: center;
    padding: 2px 10px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
}

h1 {
    color: #e50914; /* Netflix-style red for AC Movies */
    font-size: 3rem;
    margin-bottom: 1px;
}

.nm:link, .nm:visited, .nm:hover, .nm:active {
    color: inherit;
    text-decoration: none;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#movie-search {
    width: 60%;
    padding: 5px 20px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: #333;
    color: white;
}

#search-btn {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    background-color: #e50914;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

#search-btn:hover {
    background-color: #b20710;
}

#movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px;
}

.movie-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.movie-card:hover {
    transform: scale(1.05);
}

.movie-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.movie-info {
    padding: 15px;
    text-align: center;
}

.l {
    background-color:  #b20710;
}

.movie-card a {
    text-decoration: none;
    color: white;
    display: block; /* Makes the whole area clickable */
}

.movie-card img {
    cursor: pointer;
    transition: opacity 0.3s;
}

.movie-card img:hover {
    opacity: 0.8; /* Slight fade effect when hovering */
}