/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    margin: 16px;
  }
  
  h1 {
    margin: 0;
  }
  
  h2 {
    margin-bottom: 8px;
  }
  
  a {
    text-decoration: none;
    color: blue;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* Layout */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .navbar {
    position: sticky;
    top:0;
    width:100%;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px 30px;
    background-color: darkolivegreen;
    }
  .navbar a {
    color:white;
    text-decoration: none;
    gap: 20px
  }

  .navbar a:hover{
    color:gray;
  }

  #navSearch{
    margin-left:auto;
    padding: 6px 10px;
  }


  .section {
    margin-top: 24px;
  }
  
  /* Utilities */
  .muted {
    color: #666;
    font-size: 14px;
  }
  
  .row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  /* Form */
  input[type="text"] {
    padding: 8px;
    min-width: 240px;
  }
  
  button {
    padding: 8px 12px;
    cursor: pointer;
  }
  
  /* Grid + Cards */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    cursor: pointer;
  }
  
  .card:hover {
    background: #fafafa;
  }
  
  .poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #f3f3f3;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
  }
  
  .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Error */
  .error {
    display: none;
    border: 1px solid #c00;
    padding: 10px;
    border-radius: 10px;
    margin-top: 12px;
    color: #c00;
  }

  /* Swiper */
  .trending-swiper {
    height: 340px;
    position: relative;
    padding: 10px 0;
  }
  
  .trending-swiper .swiper-wrapper {
    height: 100%;
    align-items: stretch;
  }
  
  .trending-swiper .swiper-slide {
    width: 160px;
    height: 100%;
    display: flex;
  }
  
  .trending-swiper .card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  /* About Page */
  .aboutTitle {
    text-align: center;
    padding: 12px;
  }
  .aboutBox {
    border: 2px black solid;
    padding: 5px;
  }


  /* List Page Only*/
  #listResults {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}
#listResults .movie-card {
    width: 180px;
    text-align: center;
}

#listResults .movie-card img {
    width: 100%;
    border-radius: 8px;
}
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 700px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

#listResults .movie-card img {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#listResults .movie-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

#listResults .movie-card:hover::after {
    opacity: 1;
}

#listResults .movie-card {
    position: relative;
    overflow: hidden;
}
/* List Page */

