/* ==========================================================================
   AniVault - Responsividade Inteligente (Mobile -> Full HD -> Ultrawide 36" / 4K)
   ========================================================================== */

/* 1. Celulares e Telas Pequenas (até 768px) */
@media screen and (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-content {
    padding: 1rem;
  }

  .header-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .search-container {
    width: 100%;
  }

  .hero-banner {
    padding: 1.5rem;
  }

  .hero-content h2 {
    font-size: 1.6rem;
  }
}

/* 2. Tablets e Monitores Menores (769px a 1199px) */
@media screen and (min-width: 769px) and (max-width: 1199px) {
  .app-container {
    grid-template-columns: 220px 1fr;
  }

  .main-content {
    padding: 1.5rem 2rem;
  }

  .carousel-card {
    flex: 0 0 150px;
    width: 150px;
  }

  .poster-container {
    height: 210px;
  }
}

/* 3. Monitores Padrão e Full HD (1200px a 1600px) */
@media screen and (min-width: 1200px) and (max-width: 1600px) {
  .app-container {
    grid-template-columns: 240px 1fr;
  }

  .carousel-card {
    flex: 0 0 170px;
    width: 170px;
  }

  .poster-container {
    height: 240px;
  }

  .hero-banner {
    min-height: 320px;
  }
}

/* 4. Monitores Ultrawide 21:9 / 36" (1601px a 2199px) */
@media screen and (min-width: 1601px) {
  .app-container {
    grid-template-columns: 270px 1fr;
    max-width: 2200px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  .main-content {
    padding: 2.5rem 4rem;
  }

  .hero-banner {
    min-height: 380px;
    padding: 3rem 4rem;
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: center;
  }

  .hero-content h2 {
    font-size: 2.8rem;
  }

  .hero-synopsis {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 750px;
  }

  .carousel-card {
    flex: 0 0 190px;
    width: 190px;
  }

  .poster-container {
    height: 270px;
  }

  .card-title {
    font-size: 1rem;
  }
}

/* 5. Telas Gigantes / Super Ultrawide 36"+ / 4K (a partir de 2200px) */
@media screen and (min-width: 2200px) {
  .app-container {
    max-width: 2500px;
    grid-template-columns: 300px 1fr;
  }

  .hero-banner {
    min-height: 440px;
    padding: 4rem 5rem;
  }

  .hero-content h2 {
    font-size: 3.2rem;
  }

  .carousel-card {
    flex: 0 0 210px;
    width: 210px;
  }

  .poster-container {
    height: 300px;
  }
}