@media (max-width: 640px) {
    .glass-nav .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #navbar .text-3xl {
        font-size: 1.5rem;
    }

    #mobileMenuPanel {
        background-color: #000000 !important;
    }

    #mobileMenuPanel.active {
        transform: translate(0);
    }

    #mobileMenuPanel button {
        background-color: transparent !important;
    }

    #mobileSearchPanel.active {
        display: block;
    }

    #heroSection {
        min-height: 85vh;
        align-items: center;
    }

    #heroSection .container {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    #heroTitle {
        font-size: 2.5rem !important;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    #heroDesc {
        font-size: 1rem;
        line-clamp: 4;
        -webkit-line-clamp: 4;
        margin-bottom: 1.5rem;
    }

    #heroSection .flex.gap-5 {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    #heroSection button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    #filterSection .flex-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    #filterSection select,
    #filterSection input {
        width: 100% !important;
    }

    #detailsOverlay h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    #detailsOverlay .flex-col {
        gap: 2rem;
    }

    .episode-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .episode-item>div:first-child {
        width: 100%;
    }

    .episode-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    #notifDropdown,
    #settingsDropdown {
        position: fixed;
        top: 80px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) scale(0.95);
        width: 90vw;
        z-index: 60;
    }

    #notifDropdown.active,
    #settingsDropdown.active {
        transform: translateX(-50%) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    #heroTitle {
        font-size: 4rem !important;
    }

    #heroSection .container {
        padding-top: 8rem;
    }
}