@media (max-width: 1340px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 1200px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-buttons {
      display: none;
    }
    
    .category-grid {
        column-gap: 16px;
        grid-template-columns: repeat(4, 1fr);
    }

    .featured-card {
        width: 250px;
        height: 375px;
    }
}

@media (max-width: 1080px) {
    .content-grid {
        column-gap: 2em;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.8rem 0;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        order: 2;
        display: flex;
        gap: 1rem;
    }
    
    .nav-actions {
        order: 3;
        display: flex;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        margin-top: -1rem;
    }

    .nav-actions .search-input {
      width: 88%;
    }

    .categories, .content-sections {
        padding: 16px 0px;
    }

    .container .section-title {
        font-size: 32px;
        margin: 0px 0px 0px;
    }

    .content-section .section-title {
        font-size: 24px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        column-gap: 1em;
    }
    
    .content-card {
        width: 180px;
        height: 270px;
    }
  }

@media (max-width: 702px) {
    .nav-actions .search-input {
      width: 86%;
    }
}

@media (max-width: 619px) {
    body {
        padding-top: 64px;
    }

    .nav-actions {
        order: 3;
        display: flex;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        margin-top: -1rem;
    }

    .nav-link {
        font-size: 16px;
    }

    .nav-actions .search-input {
      width: 84%;
    }

    .categories, .content-sections {
        padding: 16px 0px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .category-grid {
        gap: 16px;
    }

    .poster-overlay h3 {
        font-size: 0.8rem;
        margin: 0 0 0em;
    }

    .content-poster .poster-overlay .content-info {
        display: none;
        transition: 0.3s;
    }
    .content-poster:hover .poster-overlay .content-info {
        display: flex;
    }

    .content-card div h3, div {
        font-size: 0.8rem;
    }
}

@media (max-width: 597px) {
    .content-grid {
        column-gap: 1em;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-card {
        width: 160px;
        height: 240px;
    }
}

@media (max-width: 539px) {
    .content-grid {
        column-gap: 1em;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .content-card {
        width: 120px;
        height: 180px;
    }
}

@media (max-width: 535px) {
    .nav-actions .search-input {
      width: 82%;
    }

    .content-grid {
        column-gap: 0.5em;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-card {
        width: 140px;
        height: 210px;
    }
}

@media (max-width: 511px) {
    .container .section-title {
        font-size: 24px;
        margin: 0px 0px 0px;
    }

    .category-grid .category-card {
        padding: 16px;
    }

    .category-grid .category-card h3 {
        font-size: 1.2em !important;
    }

    .category-grid .category-card p {
        font-size: 1em !important;
    }
}

@media (max-width: 479px) {
    .nav-actions .search-input {
      width: 80%;
    }
}

@media (max-width: 471px) {
    .poster-overlay h3 {
        font-size: 0.6rem !important;
    }

    .poster-overlay .rating, .year, .genre {
        font-size: 0.6rem !important;
    }

    .content-card div h3 {
        font-size: 0.6rem !important;
    }

    .content-card div .content-info {
        font-size: 0.6rem !important;
    }

    .content-grid {
        column-gap: 0.5em;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-card {
        width: 120px;
        height: 180px;
    }
}

@media (max-width: 434px) {
    .nav-actions .search-input {
      width: 78%;
    }
}

@media (max-width: 409px) {
    .content-grid {
        column-gap: 0.5em;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-card {
        width: 100px;
        height: 150px;
    }
}

@media (max-width: 398px) {
    .nav-actions .search-input {
      width: 76%;
    }
}

@media (max-width: 367px) {
    .nav-actions .search-input {
      width: 74%;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-description {
        font-size: 16px;
    }

    .featured-card {
        width: 200px;
        height: 300px;
    }

    .category-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0px;
    }
}