*{
    margin: 0;
    padding: 0;
  }
  body{
    font-family: 'Netflix Sans', sans-serif;
    background-color: #111;
  }
  ::-webkit-scrollbar{
    width: 7px;
    background-color: #111;
  }
  ::-webkit-scrollbar-thumb{
    background-color: white;
    border-radius: 10px;
  }
  .nav{
    position: fixed;
    top: 0;
    padding: 20px 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    transition-timing-function: ease-in;
    transition: all .5s;
  }
  .nav.active{
    background-color: #111;
  }
  .nav__left{
    margin-left: 10px;
    flex: 0 0 auto;
  }
  .nav__center{
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
  }
  .nav_logo{
    width: 180px
  }
  .nav__right{
    position: fixed;
    right: 30px;
    display: flex;
    margin-right: 10px;
    flex: 0 0 auto;
  }
  .nav_avatar{
    width: 40px;
  }
  
  /* Search functionality styles */
  .search-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 350px;
  }
  
  #search-input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 14px;
    outline: none;
    border: 1px solid #333;
  }
  
  #search-input::placeholder {
    color: #999;
  }
  
  #search-input:focus {
    border-color: #e50914;
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  #search-button {
    padding: 8px 16px;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: #e50914;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid #e50914;
  }
  
  #search-button:hover {
    background-color: #f40612;
  }
  
  /* Search results styles */
  .search-results {
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    display: none;
  }
  
  .search-results.active {
    display: block;
  }
  
  .search-results h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
  }
  
  .no-results {
    text-align: center;
    color: #999;
    font-style: italic;
  }
  
  .search-count {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.9rem;
  }
  
  .search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
  }
  
  .search-result-item {
    display: flex;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }
  
  .search-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .search-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .search-info h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: white;
    line-height: 1.2;
  }
  
  .search-year {
    color: #999;
    font-size: 0.8rem;
    margin: 0 0 8px 0;
  }
  
  .search-overview {
    color: #ccc;
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0;
  }
  #banner{
    color: white;
    object-fit: contain;
    height: 644px;
    background-position: center center;
    background-size: cover;
  }
  #banner__contents{
    margin-left: 70px;
    padding-top: 340px;
    height: 190px;
  
  }
  #banner__title{
    font-size: 3rem;
    font-weight: 800;
    padding-bottom: 0.3rem;
  }
  #banner__description{
    width: 45rem;
    line-height: 1.5;
    padding-top: 1rem;
    font-size: .9rem;
    max-width: 360px;
    height: 80px;
  }
  #banner__button{
    cursor: pointer;
    color: white;
    outline: none;
    border: none;
    font-weight: 700;
    border-radius: .2vw;
    padding-left: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
    margin-right: 1rem;
    padding-top: .5rem;
    background-color: rgba(51,51,51,.5);
    padding-bottom: .5rem;
  }
  #banner__button:hover{
    color: black;
    background-color: #e6e6e6;
    transition: all .3s;
  }
  #banner__fadeBottom{
    height: 7.4rem;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(37,37,37, .61),
      #111
    );
  }
  
  .row{
    margin-left: 20px;
    color: white;
  }
  .row__poster{
    object-fit: contain;
    width: 100%;
    max-height: 120px;
    margin-right: 10px;
    transition: transform 500ms;
  }
  .row__posters::-webkit-scrollbar{
    display: none;
  }
  .row__posters{
    display: flex;
    overflow-y: hidden;
    overflow-x: scroll;
    padding: 20px;
    
  }
  .row__poster:hover{
    transform: scale(1.08);
  }
  .row__posterLarge, 
  .row__posterLarge1,
  .row__posterLarge2{
    object-fit: contain;
    width: 100%;
    max-height: 250px;
    margin-right: 10px;
    transition: transform 500ms;
  
  }
  .row__posterLarge:hover,
  .row__posterLarge1:hover,
  .row__posterLarge2:hover{
    transform: scale(1.09);
    opacity: 1;
    cursor: pointer;
  }
  
  /* Loading spinner styles */
  .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #333;
    border-radius: 50%;
    border-top-color: #e50914;
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .row-loading {
    text-align: center;
    padding: 40px;
  }
  
  /* Movie detail modal styles */
  .movie-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
  }
  
  .movie-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background-color: #111;
    color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s;
  }
  
  .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
  }
  
  .close-modal:hover {
    color: white;
  }
  
  .modal-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #e50914;
  }
  
  .modal-overview {
    line-height: 1.6;
    margin-bottom: 15px;
  }
  
  .modal-details {
    font-size: 0.9rem;
    color: #ccc;
  }
  
  .modal-rating {
    background-color: #e50914;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
    font-weight: bold;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  /* Responsive design improvements */
  @media (max-width: 768px) {
    .nav {
      flex-direction: column;
      padding: 15px 20px;
      gap: 10px;
    }
    
    .nav__center {
      order: 3;
      max-width: 100%;
    }
    
    .nav__right {
      position: relative;
      right: auto;
      margin-right: 0;
      order: 2;
    }
    
    .search-container {
      max-width: 100%;
    }
    
    #banner__contents {
      margin-left: 20px;
      padding-top: 280px;
    }
    
    #banner__title {
      font-size: 2rem;
    }
    
    #banner__description {
      width: 90%;
      max-width: none;
    }
    
    .modal-content {
      margin: 20px;
      padding: 20px;
    }
    
    .modal-title {
      font-size: 1.5rem;
    }
  }