.catalogue {
    div h2 {
        text-align: center;
        margin-top: 4rem;
    }
    .container {
        max-width: 1300px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        padding: 0rem;
        position: relative;
        max-height: 80vh;
    }
    #search-results > div {
        padding: 10px;
    }
    .movie-catalogue {
        gap: 1rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0rem 4rem 4rem 4rem;
        text-align: left;
        margin-top: 0rem;
         @media (max-width: 768px) {
            padding: 1rem;
        }
    }
    .search-controls {
        display: flex;
        gap: 2rem;
        padding: 2rem 4rem;
        margin-top: 0rem;
    }
    .search-group {
        display: flex;
        align-items: center;
        gap: 1rem;

        label {
            font-size: 1rem;
            color: #000;
        }

        .search-input {
            border: none;
            border-bottom: 1px solid #000;
            outline: none;
            padding: 5px 0;
            background: transparent;
            width: 200px;
            font-size: 1rem;

            &:focus {
                border-bottom: 1px solid #666;
            }
        }

        .filter-select {
            border: none;
            border-bottom: 1px solid #000;
            outline: none;
            padding: 5px 0;
            background: transparent;
            font-size: 1rem;
            cursor: pointer;

            &:focus {
                border-bottom: 1px solid #666;
            }

            option {
                background: white;
            }
        }
    }
    .form {
        width: 300px;
        gap: 1rem;
        padding: 0rem 4rem 4rem 4rem;
        text-align: center;
        margin-top: 1rem;
        input[type="text"] {
            border: none;
            border-bottom: 1px solid #000;
            outline: none;
            padding: 5px 0;
            background: transparent;
            width: 80%;
            margin-bottom: 1rem;
        }
        input[type="submit"] {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            padding: 0;
            text-transform: lowercase;
        }
        input[type="submit"]:hover {
            color: #666;
        }
    }

    .right-position {
        position: absolute;
        top: 0;
        right: 0;
        padding: 0.85rem;
        margin: 0;
        padding-right: 5rem;
    }
    .links {
        box-sizing: border-box;
        width: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 4rem;
        padding-left: 1.8rem;
        @media (max-width: 768px) {
            justify-content: space-between;
            flex-wrap: nowrap;
            padding: 1rem;
        }
    }
    .links a {
        color: #000;
        text-decoration: none;
        transition: color 0.15s ease-in-out;
        margin-right: 1rem;
    }

    .links a:hover {
        color: #666;
    }
    .nav-svg {
        height: 1.5em;
        margin-left: auto;
        width: 40%;
        object-fit: cover;

        @media (max-width: 768px) {
            position: relative;
            width: 100%;
            order: -1;
            margin: 0 auto;
            display: block;
        }
    }
    .top-svg {
        position: absolute;
        top: 1rem;
        left: 1rem;
        height: 1.5em;
        width: 20%;
        object-fit: cover;

        @media (max-width: 768px) {
            position: relative;
            top: auto;
            left: auto;
            width: 40%;
            margin: 0;
            width: 2rem;
            height: 0rem;
        }
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
        gap: 1rem;
        vertical-align: baseline;

        @media (min-width: 769px) {
            display: block;
            padding: 0;
        }
    }
    .movie-item button {
        border: none;
        margin: 0;
        padding: 0;
        background: none;
        color: inherit;
        font: inherit;
        outline: none;
        cursor: pointer;
        -webkit-appearance: none;
        -moz-appearance: none;
       
    }

    .movie-details {
       text-align: right; 
       padding-top; 100rem;
    }
    .button {
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        font: inherit;
        color: inherit;
        outline: none;
        cursor: pointer;
        text-decoration: underline;
        font-size: 1.2em;
    }
    .button:hover {
        color: #ccc;
        text-decoration: none;
        transition: color 0.15s ease-in-out;
    }
    .movie-item {
        /* Add specific styling for movie items */
        a {
            color: inherit;
            text-decoration: none;
        }

        .movie-link {
            color: #000;
            text-decoration: none;
        }
    }

    @media (max-width: 768px) {
        .container {
            flex-direction: column;
            max-height: none;
        }
        .form {
            width: 100%;
            padding: 1rem;
        }
    }
}
